library: libRooFit #include "RooAbsCategoryLValue.h"

# RooAbsCategoryLValue

class description - source file - inheritance tree (.pdf)

## class RooAbsCategoryLValue : public RooAbsCategory, public RooAbsLValue

| Inheritance Chart:
`TObject`
| <- | `TNamed`
`RooPrintable`
| <- | `RooAbsArg`
| <- | `RooAbsCategory`
`RooAbsLValue`
| <- | `RooAbsCategoryLValue` |
<- |
`RooCategory` |
`RooSuperCategory` |

This is an abstract class, constructors will not be documented.
Look at the header to check for available constructors.

        protected:

          virtual void copyCache(const RooAbsArg* source)
                Bool_t setOrdinal(UInt_t index)

        public:

                   virtual ~RooAbsCategoryLValue()
            static TClass* Class()
             virtual Int_t getBin() const
          virtual Double_t getBinWidth(Int_t) const
           virtual TClass* IsA() const
            virtual Bool_t isLValue() const
             virtual Int_t numBins() const
                RooAbsArg& operator=(int index)
                RooAbsArg& operator=(const char* label)
                RooAbsArg& operator=(const RooAbsCategory& other)
              virtual void randomize()
            virtual Bool_t readFromStream(istream& is, Bool_t compact, Bool_t verbose = kFALSE)
              virtual void setBin(Int_t ibin)
                      void setConstant(Bool_t value = kTRUE)
            virtual Bool_t setIndex(Int_t index, Bool_t printError = kTRUE)
            virtual Bool_t setLabel(const char* label, Bool_t printError = kTRUE)
              virtual void ShowMembers(TMemberInspector& insp, char* parent)
              virtual void Streamer(TBuffer& b)
                      void StreamerNVirtual(TBuffer& b)
              virtual void writeToStream(ostream& os, Bool_t compact) const

### Data Members

## Class Description

~RooAbsCategoryLValue()

     Destructor

Bool_t setOrdinal(UInt_t n)

     Set our state to our n'th defined type and return kTRUE.
     Return kFALSE if n is out of range.

void copyCache(const RooAbsArg* source)

     copy cached value from another object

Bool_t readFromStream(istream&, Bool_t, Bool_t)

     Read object contents from given stream

void writeToStream(ostream&, Bool_t) const

     Write object contents to given stream

void randomize()

     Randomize current value

void setBin(Int_t ibin)

     Set category to i-th fit bin, which is the i-th registered state.

Int_t getBin() const

     Get index of plot bin for current value this category.

Int_t numBins() const

     Returm the number of fit bins ( = number of types )

### Inline Functions

                 Bool_t setIndex(Int_t index, Bool_t printError = kTRUE)
                 Bool_t setLabel(const char* label, Bool_t printError = kTRUE)
             RooAbsArg& operator=(int index)
             RooAbsArg& operator=(const char* label)
             RooAbsArg& operator=(const RooAbsCategory& other)
               Double_t getBinWidth(Int_t) const
                   void setConstant(Bool_t value = kTRUE)
                 Bool_t isLValue() const
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)

Last update: Tue Jun 28 18:09:03 2005
Copyright (c) 2000-2005, Regents of the University of California *