#include <RooAbsCategoryLValue.h>
Inheritance diagram for RooAbsCategoryLValue:
Public Member Functions | |
RooAbsCategoryLValue () | |
RooAbsCategoryLValue (const char *name, const char *title) | |
RooAbsCategoryLValue (const RooAbsCategoryLValue &other, const char *name=0) | |
virtual | ~RooAbsCategoryLValue () |
virtual Bool_t | setIndex (Int_t index, Bool_t printError=kTRUE)=0 |
virtual Bool_t | setLabel (const char *label, Bool_t printError=kTRUE)=0 |
RooAbsArg & | operator= (int index) |
RooAbsArg & | operator= (const char *label) |
RooAbsArg & | operator= (const RooAbsCategory &other) |
virtual void | setBin (Int_t ibin, const char *rangeName=0) |
virtual Int_t | getBin (const char *rangeName=0) const |
virtual Int_t | numBins (const char *rangeName) const |
virtual Double_t | getBinWidth (Int_t, const char *=0) const |
virtual Double_t | volume (const char *rangeName) const |
virtual void | randomize (const char *rangeName=0) |
virtual const RooAbsBinning * | getBinningPtr (const char *) const |
virtual Int_t | getBin (const RooAbsBinning *) const |
void | setConstant (Bool_t value=kTRUE) |
virtual Bool_t | isLValue () const |
virtual Bool_t | readFromStream (istream &is, Bool_t compact, Bool_t verbose=kFALSE) |
virtual void | writeToStream (ostream &os, Bool_t compact) const |
RooAbsCategoryLValue () | |
RooAbsCategoryLValue (const char *name, const char *title) | |
RooAbsCategoryLValue (const RooAbsCategoryLValue &other, const char *name=0) | |
virtual | ~RooAbsCategoryLValue () |
virtual Bool_t | setIndex (Int_t index, Bool_t printError=kTRUE)=0 |
virtual Bool_t | setLabel (const char *label, Bool_t printError=kTRUE)=0 |
RooAbsArg & | operator= (int index) |
RooAbsArg & | operator= (const char *label) |
RooAbsArg & | operator= (const RooAbsCategory &other) |
virtual void | setBin (Int_t ibin, const char *rangeName=0) |
virtual Int_t | getBin (const char *rangeName=0) const |
virtual Int_t | numBins (const char *rangeName) const |
virtual Double_t | getBinWidth (Int_t, const char *=0) const |
virtual Double_t | volume (const char *rangeName) const |
virtual void | randomize (const char *rangeName=0) |
virtual const RooAbsBinning * | getBinningPtr (const char *) const |
virtual Int_t | getBin (const RooAbsBinning *) const |
void | setConstant (Bool_t value=kTRUE) |
virtual Bool_t | isLValue () const |
virtual Bool_t | readFromStream (istream &is, Bool_t compact, Bool_t verbose=kFALSE) |
virtual void | writeToStream (ostream &os, Bool_t compact) const |
Protected Member Functions | |
Bool_t | setOrdinal (UInt_t index, const char *rangeName) |
void | copyCache (const RooAbsArg *source, Bool_t valueOnly=kFALSE) |
Bool_t | setOrdinal (UInt_t index, const char *rangeName) |
void | copyCache (const RooAbsArg *source, Bool_t valueOnly=kFALSE) |
Definition at line 23 of file RooAbsCategoryLValue.h.
RooAbsCategoryLValue::RooAbsCategoryLValue | ( | ) | [inline] |
Definition at line 26 of file RooAbsCategoryLValue.h.
RooAbsCategoryLValue::RooAbsCategoryLValue | ( | const char * | name, | |
const char * | title | |||
) |
Definition at line 50 of file RooAbsCategoryLValue.cxx.
References RooAbsArg::setShapeDirty(), and RooAbsArg::setValueDirty().
RooAbsCategoryLValue::RooAbsCategoryLValue | ( | const RooAbsCategoryLValue & | other, | |
const char * | name = 0 | |||
) |
Definition at line 62 of file RooAbsCategoryLValue.cxx.
RooAbsCategoryLValue::~RooAbsCategoryLValue | ( | ) | [virtual] |
Definition at line 71 of file RooAbsCategoryLValue.cxx.
RooAbsCategoryLValue::RooAbsCategoryLValue | ( | ) | [inline] |
Definition at line 26 of file RooAbsCategoryLValue.h.
RooAbsCategoryLValue::RooAbsCategoryLValue | ( | const char * | name, | |
const char * | title | |||
) |
RooAbsCategoryLValue::RooAbsCategoryLValue | ( | const RooAbsCategoryLValue & | other, | |
const char * | name = 0 | |||
) |
virtual RooAbsCategoryLValue::~RooAbsCategoryLValue | ( | ) | [virtual] |
virtual Bool_t RooAbsCategoryLValue::setIndex | ( | Int_t | index, | |
Bool_t | printError = kTRUE | |||
) | [pure virtual] |
Referenced by copyCache(), operator=(), RooCategoryProxy::operator=(), RooAbsReal::plotAsymOn(), setBin(), RooArgSet::setCatIndex(), and setOrdinal().
RooAbsArg & RooAbsCategoryLValue::operator= | ( | int | index | ) |
RooAbsArg & RooAbsCategoryLValue::operator= | ( | const char * | label | ) |
RooAbsArg & RooAbsCategoryLValue::operator= | ( | const RooAbsCategory & | other | ) |
Definition at line 101 of file RooAbsCategoryLValue.cxx.
References RooAbsCategory::_value, RooAbsCategory::getLabel(), kTRUE, RooAbsCategory::lookupType(), RooAbsArg::setValueDirty(), and type.
void RooAbsCategoryLValue::setBin | ( | Int_t | ibin, | |
const char * | rangeName = 0 | |||
) | [virtual] |
Implements RooAbsLValue.
Definition at line 180 of file RooAbsCategoryLValue.cxx.
References coutE, TNamed::GetName(), RooAbsCategory::getOrdinal(), RooFit::InputArguments, numBins(), setIndex(), and type.
Int_t RooAbsCategoryLValue::getBin | ( | const char * | rangeName = 0 |
) | const [virtual] |
Implements RooAbsLValue.
Definition at line 201 of file RooAbsCategoryLValue.cxx.
References RooAbsCategory::_types, RooAbsCategory::_value, TObjArray::FindObject(), RooAbsCategory::getIndex(), RooCatType::GetName(), and TObjArray::IndexOf().
Referenced by getBin().
Int_t RooAbsCategoryLValue::numBins | ( | const char * | rangeName | ) | const [virtual] |
Implements RooAbsLValue.
Definition at line 215 of file RooAbsCategoryLValue.cxx.
References RooAbsCategory::numTypes().
Referenced by setBin().
virtual Double_t RooAbsCategoryLValue::volume | ( | const char * | rangeName | ) | const [inline, virtual] |
Implements RooAbsLValue.
Definition at line 48 of file RooAbsCategoryLValue.h.
References RooAbsCategory::numTypes().
void RooAbsCategoryLValue::randomize | ( | const char * | rangeName = 0 |
) | [virtual] |
Implements RooAbsLValue.
Definition at line 169 of file RooAbsCategoryLValue.cxx.
References RooRandom::integer(), RooAbsCategory::numTypes(), and setOrdinal().
Referenced by RooAcceptReject::addEventToCache().
virtual const RooAbsBinning* RooAbsCategoryLValue::getBinningPtr | ( | const char * | ) | const [inline, virtual] |
virtual Int_t RooAbsCategoryLValue::getBin | ( | const RooAbsBinning * | ) | const [inline, virtual] |
Definition at line 58 of file RooAbsCategoryLValue.h.
References RooAbsArg::setAttribute(), and value.
virtual Bool_t RooAbsCategoryLValue::isLValue | ( | ) | const [inline, virtual] |
Reimplemented from RooAbsArg.
Definition at line 63 of file RooAbsCategoryLValue.h.
References kTRUE.
Bool_t RooAbsCategoryLValue::readFromStream | ( | istream & | is, | |
Bool_t | compact, | |||
Bool_t | verbose = kFALSE | |||
) | [virtual] |
Reimplemented from RooAbsCategory.
Definition at line 151 of file RooAbsCategoryLValue.cxx.
References kTRUE.
void RooAbsCategoryLValue::writeToStream | ( | ostream & | os, | |
Bool_t | compact | |||
) | const [virtual] |
Definition at line 118 of file RooAbsCategoryLValue.cxx.
References RooAbsCategory::getOrdinal(), RooCatType::getVal(), kFALSE, and setIndex().
Referenced by randomize().
void RooAbsCategoryLValue::copyCache | ( | const RooAbsArg * | source, | |
Bool_t | valueOnly = kFALSE | |||
) | [protected, virtual] |
Reimplemented from RooAbsCategory.
Definition at line 135 of file RooAbsCategoryLValue.cxx.
References RooAbsCategory::_value, RooAbsCategory::copyCache(), RooCatType::getVal(), RooAbsCategory::isValid(), and setIndex().
virtual Bool_t RooAbsCategoryLValue::setIndex | ( | Int_t | index, | |
Bool_t | printError = kTRUE | |||
) | [pure virtual] |
virtual Bool_t RooAbsCategoryLValue::setLabel | ( | const char * | label, | |
Bool_t | printError = kTRUE | |||
) | [pure virtual] |
RooAbsArg& RooAbsCategoryLValue::operator= | ( | int | index | ) |
RooAbsArg& RooAbsCategoryLValue::operator= | ( | const char * | label | ) |
RooAbsArg& RooAbsCategoryLValue::operator= | ( | const RooAbsCategory & | other | ) |
virtual void RooAbsCategoryLValue::setBin | ( | Int_t | ibin, | |
const char * | rangeName = 0 | |||
) | [virtual] |
Implements RooAbsLValue.
virtual Int_t RooAbsCategoryLValue::getBin | ( | const char * | rangeName = 0 |
) | const [virtual] |
Implements RooAbsLValue.
virtual Int_t RooAbsCategoryLValue::numBins | ( | const char * | rangeName | ) | const [virtual] |
Implements RooAbsLValue.
virtual Double_t RooAbsCategoryLValue::volume | ( | const char * | rangeName | ) | const [inline, virtual] |
Implements RooAbsLValue.
Definition at line 48 of file RooAbsCategoryLValue.h.
References RooAbsCategory::numTypes().
virtual void RooAbsCategoryLValue::randomize | ( | const char * | rangeName = 0 |
) | [virtual] |
Implements RooAbsLValue.
virtual const RooAbsBinning* RooAbsCategoryLValue::getBinningPtr | ( | const char * | ) | const [inline, virtual] |
virtual Int_t RooAbsCategoryLValue::getBin | ( | const RooAbsBinning * | ) | const [inline, virtual] |
Definition at line 58 of file RooAbsCategoryLValue.h.
References RooAbsArg::setAttribute(), and value.
virtual Bool_t RooAbsCategoryLValue::isLValue | ( | ) | const [inline, virtual] |
Reimplemented from RooAbsArg.
Definition at line 63 of file RooAbsCategoryLValue.h.
References kTRUE.
virtual Bool_t RooAbsCategoryLValue::readFromStream | ( | istream & | is, | |
Bool_t | compact, | |||
Bool_t | verbose = kFALSE | |||
) | [virtual] |
Reimplemented from RooAbsCategory.
virtual void RooAbsCategoryLValue::writeToStream | ( | ostream & | os, | |
Bool_t | compact | |||
) | const [virtual] |
Reimplemented from RooAbsCategory.
void RooAbsCategoryLValue::copyCache | ( | const RooAbsArg * | source, | |
Bool_t | valueOnly = kFALSE | |||
) | [protected, virtual] |
Reimplemented from RooAbsCategory.