#include <RooAbsCategory.h>
Inheritance diagram for RooAbsCategory:
Public Member Functions | |
RooAbsCategory () | |
RooAbsCategory (const char *name, const char *title) | |
RooAbsCategory (const RooAbsCategory &other, const char *name=0) | |
virtual | ~RooAbsCategory () |
virtual Int_t | getIndex () const |
virtual const char * | getLabel () const |
Bool_t | operator== (Int_t index) const |
Bool_t | operator!= (Int_t index) |
Bool_t | operator== (const char *label) const |
Bool_t | operator!= (const char *label) |
virtual Bool_t | operator== (const RooAbsArg &other) |
Bool_t | operator!= (const RooAbsArg &other) |
Bool_t | isValidIndex (Int_t index) const |
Bool_t | isValidLabel (const char *label) const |
const RooCatType * | lookupType (Int_t index, Bool_t printError=kFALSE) const |
const RooCatType * | lookupType (const char *label, Bool_t printError=kFALSE) const |
const RooCatType * | lookupType (const RooCatType &type, Bool_t printError=kFALSE) const |
TIterator * | typeIterator () const |
Int_t | numTypes (const char *=0) const |
Bool_t | isSignType (Bool_t mustHaveZero=kFALSE) const |
Roo1DTable * | createTable (const char *label) const |
virtual Bool_t | readFromStream (istream &is, Bool_t compact, Bool_t verbose=kFALSE) |
virtual void | writeToStream (ostream &os, Bool_t compact) const |
virtual void | printValue (ostream &os) const |
virtual void | printMultiline (ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const |
virtual Bool_t | isIntegrationSafeLValue (const RooArgSet *) const |
RooAbsArg * | createFundamental (const char *newname=0) const |
RooAbsCategory () | |
RooAbsCategory (const char *name, const char *title) | |
RooAbsCategory (const RooAbsCategory &other, const char *name=0) | |
virtual | ~RooAbsCategory () |
virtual Int_t | getIndex () const |
virtual const char * | getLabel () const |
Bool_t | operator== (Int_t index) const |
Bool_t | operator!= (Int_t index) |
Bool_t | operator== (const char *label) const |
Bool_t | operator!= (const char *label) |
virtual Bool_t | operator== (const RooAbsArg &other) |
Bool_t | operator!= (const RooAbsArg &other) |
Bool_t | isValidIndex (Int_t index) const |
Bool_t | isValidLabel (const char *label) const |
const RooCatType * | lookupType (Int_t index, Bool_t printError=kFALSE) const |
const RooCatType * | lookupType (const char *label, Bool_t printError=kFALSE) const |
const RooCatType * | lookupType (const RooCatType &type, Bool_t printError=kFALSE) const |
TIterator * | typeIterator () const |
Int_t | numTypes (const char *=0) const |
Bool_t | isSignType (Bool_t mustHaveZero=kFALSE) const |
Roo1DTable * | createTable (const char *label) const |
virtual Bool_t | readFromStream (istream &is, Bool_t compact, Bool_t verbose=kFALSE) |
virtual void | writeToStream (ostream &os, Bool_t compact) const |
virtual void | printValue (ostream &os) const |
virtual void | printMultiline (ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const |
virtual Bool_t | isIntegrationSafeLValue (const RooArgSet *) const |
RooAbsArg * | createFundamental (const char *newname=0) const |
Protected Member Functions | |
RooCatType | traceEval () const |
virtual Bool_t | traceEvalHook (RooCatType) const |
virtual RooCatType | evaluate () const=0 |
const RooCatType * | defineType (const char *label) |
const RooCatType * | defineType (const char *label, Int_t index) |
const RooCatType * | defineTypeUnchecked (const char *label, Int_t index) |
const RooCatType * | getOrdinal (UInt_t n, const char *rangeName=0) const |
void | clearTypes () |
virtual Bool_t | isValid () const |
virtual Bool_t | isValid (const RooCatType &value) const |
virtual void | syncCache (const RooArgSet *set=0) |
virtual void | copyCache (const RooAbsArg *source, Bool_t valueOnly=kFALSE) |
virtual void | attachToTree (TTree &t, Int_t bufSize=32000) |
virtual void | setTreeBranchStatus (TTree &t, Bool_t active) |
virtual void | fillTreeBranch (TTree &t) |
RooCatType | traceEval () const |
virtual Bool_t | traceEvalHook (RooCatType) const |
virtual RooCatType | evaluate () const=0 |
const RooCatType * | defineType (const char *label) |
const RooCatType * | defineType (const char *label, Int_t index) |
const RooCatType * | defineTypeUnchecked (const char *label, Int_t index) |
const RooCatType * | getOrdinal (UInt_t n, const char *rangeName=0) const |
void | clearTypes () |
virtual Bool_t | isValid () const |
virtual Bool_t | isValid (const RooCatType &value) const |
virtual void | syncCache (const RooArgSet *set=0) |
virtual void | copyCache (const RooAbsArg *source, Bool_t valueOnly=kFALSE) |
virtual void | attachToTree (TTree &t, Int_t bufSize=32000) |
virtual void | setTreeBranchStatus (TTree &t, Bool_t active) |
virtual void | fillTreeBranch (TTree &t) |
Protected Attributes | |
UChar_t | _byteValue |
RooCatType | _value |
Transient cache for byte values from tree branches. | |
TObjArray | _types |
TIterator * | _typeIter |
Bool_t | _treeVar |
TIterator * | _typeIter |
Definition at line 29 of file RooAbsCategory.h.
RooAbsCategory::RooAbsCategory | ( | ) | [inline] |
Definition at line 32 of file RooAbsCategory.h.
References _treeVar, _typeIter, _types, kFALSE, and TObjArray::MakeIterator().
RooAbsCategory::RooAbsCategory | ( | const char * | name, | |
const char * | title | |||
) |
Definition at line 51 of file RooAbsCategory.cxx.
References _typeIter, _types, TObjArray::MakeIterator(), RooAbsArg::setShapeDirty(), and RooAbsArg::setValueDirty().
RooAbsCategory::RooAbsCategory | ( | const RooAbsCategory & | other, | |
const char * | name = 0 | |||
) |
Definition at line 64 of file RooAbsCategory.cxx.
References _typeIter, _types, TObjArray::Add(), TObjArray::MakeIterator(), TIterator::Next(), TIterator::Reset(), RooAbsArg::setShapeDirty(), and RooAbsArg::setValueDirty().
RooAbsCategory::~RooAbsCategory | ( | ) | [virtual] |
Definition at line 84 of file RooAbsCategory.cxx.
References _typeIter, _types, and TObjArray::Delete().
RooAbsCategory::RooAbsCategory | ( | ) | [inline] |
Definition at line 32 of file RooAbsCategory.h.
References _treeVar, _typeIter, _types, kFALSE, and TObjArray::MakeIterator().
RooAbsCategory::RooAbsCategory | ( | const char * | name, | |
const char * | title | |||
) |
RooAbsCategory::RooAbsCategory | ( | const RooAbsCategory & | other, | |
const char * | name = 0 | |||
) |
virtual RooAbsCategory::~RooAbsCategory | ( | ) | [virtual] |
Int_t RooAbsCategory::getIndex | ( | ) | const [virtual] |
Definition at line 96 of file RooAbsCategory.cxx.
References _value, RooAbsArg::clearShapeDirty(), RooAbsArg::clearValueDirty(), RooCatType::getVal(), RooAbsArg::isShapeDirty(), RooAbsArg::isValueDirty(), and traceEval().
Referenced by RooFormula::DefinedValue(), RooProduct::evaluate(), RooExpensiveObjectCache::ExpensiveObject::ExpensiveObject(), Roo1DTable::fill(), RooAbsCategoryLValue::getBin(), RooArgSet::getCatIndex(), RooChangeTracker::hasChanged(), RooAbsHiddenReal::isHidden(), RooExpensiveObjectCache::ExpensiveObject::matches(), operator==(), RooAbsReal::plotAsymOn(), RooAbsReal::plotOn(), RooSimultaneous::plotOn(), printMultiline(), RooChangeTracker::RooChangeTracker(), RooSuperCategory::RooSuperCategory(), syncCache(), and RooGenCategory::updateIndexList().
const char * RooAbsCategory::getLabel | ( | ) | const [virtual] |
Definition at line 113 of file RooAbsCategory.cxx.
References _value, RooAbsArg::clearShapeDirty(), RooAbsArg::clearValueDirty(), RooCatType::GetName(), RooAbsArg::isShapeDirty(), RooAbsArg::isValueDirty(), and traceEval().
Referenced by RooSimPdfBuilder::buildPdf(), RooMultiCategory::currentLabel(), RooSuperCategory::currentLabel(), RooCustomizer::doBuild(), RooSimWSTool::executeBuild(), RooSimultaneous::genContext(), RooSimGenContext::generateEvent(), RooArgSet::getCatLabel(), RooSimultaneous::initialize(), RooAbsCategoryLValue::operator=(), operator==(), RooSimultaneous::plotOn(), printMultiline(), printValue(), RooAbsData::split(), RooThresholdCategory::writeToStream(), writeToStream(), RooMappedCategory::writeToStream(), and RooGenCategory::writeToStream().
Definition at line 158 of file RooAbsCategory.cxx.
References getIndex().
Referenced by operator!=(), and operator==().
Bool_t RooAbsCategory::operator== | ( | const char * | label | ) | const |
Bool_t RooAbsCategory::operator!= | ( | const char * | label | ) | [inline] |
Implements RooAbsArg.
Definition at line 178 of file RooAbsCategory.cxx.
References getIndex(), kFALSE, and operator==().
Definition at line 190 of file RooAbsCategory.cxx.
References kFALSE, kTRUE, and lookupType().
Referenced by defineType(), and isValid().
Bool_t RooAbsCategory::isValidLabel | ( | const char * | label | ) | const |
Definition at line 200 of file RooAbsCategory.cxx.
References kFALSE, kTRUE, and lookupType().
Referenced by defineType().
const RooCatType * RooAbsCategory::lookupType | ( | Int_t | index, | |
Bool_t | printError = kFALSE | |||
) | const |
Definition at line 299 of file RooAbsCategory.cxx.
References _typeIter, TObject::ClassName(), coutE, TNamed::GetName(), RooFit::InputArguments, TIterator::Next(), TIterator::Reset(), and type.
Referenced by RooThresholdCategory::addThreshold(), RooCategory::addToRange(), RooSimPdfBuilder::buildPdf(), copyCache(), RooFormula::DefinedValue(), RooFormula::DefinedVariable(), defineType(), RooMultiCategory::evaluate(), RooBinningCategory::evaluate(), RooSuperCategory::evaluate(), RooGenCategory::evaluate(), RooSimWSTool::executeBuild(), RooDataHist::importDHistSet(), isValidIndex(), isValidLabel(), RooMappedCategory::map(), RooAbsCategoryLValue::operator=(), RooAbsData::plotEffOn(), RooDataSet::RooDataSet(), RooMappedCategory::RooMappedCategory(), RooThresholdCategory::RooThresholdCategory(), RooCategory::setIndex(), RooSuperCategory::setIndex(), RooCategory::setLabel(), RooSuperCategory::setLabel(), RooGenCategory::updateIndexList(), and RooSimWSTool::validateConfig().
const RooCatType * RooAbsCategory::lookupType | ( | const char * | label, | |
Bool_t | printError = kFALSE | |||
) | const |
Definition at line 318 of file RooAbsCategory.cxx.
References _typeIter, TObject::ClassName(), coutE, TNamed::GetName(), RooFit::InputArguments, TIterator::Next(), TIterator::Reset(), strtol(), and type.
const RooCatType * RooAbsCategory::lookupType | ( | const RooCatType & | type, | |
Bool_t | printError = kFALSE | |||
) | const |
Definition at line 277 of file RooAbsCategory.cxx.
References _typeIter, ccoutE, TObject::ClassName(), coutE, dologE, TNamed::GetName(), RooFit::InputArguments, RooPrintable::kName, RooPrintable::kSingleLine, RooPrintable::kValue, TIterator::Next(), RooPrintable::printStream(), TIterator::Reset(), and type.
TIterator * RooAbsCategory::typeIterator | ( | ) | const |
Definition at line 149 of file RooAbsCategory.cxx.
References _types, and TObjArray::MakeIterator().
Referenced by RooSimPdfBuilder::buildPdf(), createFundamental(), RooSimWSTool::executeBuild(), RooMultiCatIter::initialize(), RooSimultaneous::initialize(), RooAbsTestStatistic::initSimMode(), isSignType(), RooDataProjBinding::operator()(), RooDataSet::read(), RooSimultaneous::RooSimultaneous(), RooAbsData::split(), and RooGenCategory::updateIndexList().
Int_t RooAbsCategory::numTypes | ( | const char * | = 0 |
) | const [inline] |
Definition at line 57 of file RooAbsCategory.h.
References _types, and TObjArray::GetEntries().
Referenced by isSignType(), RooAbsCategoryLValue::numBins(), RooAbsCategoryLValue::randomize(), RooAcceptReject::RooAcceptReject(), RooSimultaneous::RooSimultaneous(), RooHistFunc::totVolume(), RooHistPdf::totVolume(), RooGenCategory::updateIndexList(), and RooAbsCategoryLValue::volume().
Definition at line 646 of file RooAbsCategory.cxx.
References kFALSE, kTRUE, TIterator::Next(), numTypes(), type, and typeIterator().
Referenced by RooAbsReal::plotAsymOn().
Roo1DTable * RooAbsCategory::createTable | ( | const char * | label | ) | const |
Definition at line 368 of file RooAbsCategory.cxx.
References TNamed::GetName().
Referenced by RooAbsData::table().
void RooAbsCategory::writeToStream | ( | ostream & | os, | |
Bool_t | compact | |||
) | const [virtual] |
Implements RooAbsArg.
Definition at line 388 of file RooAbsCategory.cxx.
References getLabel().
Referenced by RooMultiCategory::writeToStream(), and RooSuperCategory::writeToStream().
void RooAbsCategory::printValue | ( | ostream & | os | ) | const [virtual] |
Reimplemented from RooPrintable.
Definition at line 402 of file RooAbsCategory.cxx.
References getLabel().
void RooAbsCategory::printMultiline | ( | ostream & | os, | |
Int_t | contents, | |||
Bool_t | verbose = kFALSE , |
|||
TString | indent = "" | |||
) | const [virtual] |
Reimplemented from RooAbsArg.
Definition at line 411 of file RooAbsCategory.cxx.
References _typeIter, _types, TString::Append(), TObjArray::GetEntries(), getIndex(), getLabel(), RooPrintable::kName, RooPrintable::kSingleLine, RooPrintable::kValue, TIterator::Next(), RooAbsArg::printMultiline(), TIterator::Reset(), and type.
Referenced by RooThresholdCategory::printMultiline(), RooBinningCategory::printMultiline(), RooMappedCategory::printMultiline(), RooSuperCategory::printMultiline(), RooGenCategory::printMultiline(), and RooMultiCategory::printMultiline().
RooAbsArg * RooAbsCategory::createFundamental | ( | const char * | newname = 0 |
) | const [virtual] |
Implements RooAbsArg.
Definition at line 625 of file RooAbsCategory.cxx.
References TNamed::GetName(), TNamed::GetTitle(), TIterator::Next(), type, and typeIterator().
RooCatType RooAbsCategory::traceEval | ( | ) | const [protected] |
Definition at line 130 of file RooAbsCategory.cxx.
References evaluate(), isValid(), traceEvalHook(), and value.
Referenced by getIndex(), and getLabel().
virtual Bool_t RooAbsCategory::traceEvalHook | ( | RooCatType | ) | const [inline, protected, virtual] |
virtual RooCatType RooAbsCategory::evaluate | ( | ) | const [protected, pure virtual] |
Referenced by traceEval().
const RooCatType * RooAbsCategory::defineType | ( | const char * | label | ) | [protected] |
Definition at line 210 of file RooAbsCategory.cxx.
References kFALSE, and lookupType().
Referenced by RooThresholdCategory::addThreshold(), RooCategory::defineType(), RooBinningCategory::evaluate(), RooBinningCategory::initialize(), RooMappedCategory::map(), RooMappedCategory::readFromStream(), RooMultiCategory::updateIndexList(), and RooGenCategory::updateIndexList().
const RooCatType * RooAbsCategory::defineType | ( | const char * | label, | |
Int_t | index | |||
) | [protected] |
Definition at line 243 of file RooAbsCategory.cxx.
References coutE, defineTypeUnchecked(), TNamed::GetName(), RooFit::InputArguments, isValidIndex(), and isValidLabel().
const RooCatType * RooAbsCategory::defineTypeUnchecked | ( | const char * | label, | |
Int_t | index | |||
) | [protected] |
Definition at line 225 of file RooAbsCategory.cxx.
References _types, _value, TObjArray::Add(), TObjArray::GetEntries(), kFALSE, kTRUE, and RooAbsArg::setShapeDirty().
Referenced by defineType(), and RooSuperCategory::updateIndexList().
const RooCatType * RooAbsCategory::getOrdinal | ( | UInt_t | n, | |
const char * | rangeName = 0 | |||
) | const [protected] |
Definition at line 614 of file RooAbsCategory.cxx.
References _types, and TObjArray::At().
Referenced by RooAbsCategoryLValue::setBin(), and RooAbsCategoryLValue::setOrdinal().
void RooAbsCategory::clearTypes | ( | ) | [protected] |
Definition at line 265 of file RooAbsCategory.cxx.
References _types, _value, TObjArray::Delete(), and RooAbsArg::setShapeDirty().
Referenced by RooCategory::clearTypes(), RooMappedCategory::readFromStream(), RooMultiCategory::updateIndexList(), RooGenCategory::updateIndexList(), and RooSuperCategory::updateIndexList().
Bool_t RooAbsCategory::isValid | ( | ) | const [protected, virtual] |
Reimplemented from RooAbsArg.
Definition at line 348 of file RooAbsCategory.cxx.
References _value.
Referenced by RooAbsCategoryLValue::copyCache(), and traceEval().
Bool_t RooAbsCategory::isValid | ( | const RooCatType & | value | ) | const [protected, virtual] |
void RooAbsCategory::syncCache | ( | const RooArgSet * | set = 0 |
) | [protected, virtual] |
void RooAbsCategory::copyCache | ( | const RooAbsArg * | source, | |
Bool_t | valueOnly = kFALSE | |||
) | [protected, virtual] |
Implements RooAbsArg.
Definition at line 570 of file RooAbsCategory.cxx.
References _byteValue, _treeVar, RooCatType::_value, _value, coutE, RooFit::DataHandling, TNamed::GetName(), lookupType(), RooAbsArg::setValueDirty(), and type.
Referenced by RooAbsCategoryLValue::copyCache().
Implements RooAbsArg.
Definition at line 439 of file RooAbsCategory.cxx.
References _byteValue, RooCatType::_label, _treeVar, RooCatType::_value, _value, TString::Append(), TObjArray::At(), RooAbsArg::cleanBranchName(), RooFit::Contents, coutI, cxcoutD, RooFit::DataHandling, TBranch::GetCompressionLevel(), TBranch::GetListOfLeaves(), TNamed::GetName(), kTRUE, ptr, RooAbsArg::setAttribute(), TBranch::SetCompressionLevel(), and t.
Implements RooAbsArg.
Definition at line 546 of file RooAbsCategory.cxx.
References Form(), TNamed::GetName(), and t.
void RooAbsCategory::fillTreeBranch | ( | TTree & | t | ) | [protected, virtual] |
Implements RooAbsArg.
Definition at line 522 of file RooAbsCategory.cxx.
References TString::Append(), coutF, RooFit::DataHandling, TBranch::Fill(), TNamed::GetName(), and t.
virtual Int_t RooAbsCategory::getIndex | ( | ) | const [virtual] |
virtual const char* RooAbsCategory::getLabel | ( | ) | const [virtual] |
Bool_t RooAbsCategory::operator== | ( | const char * | label | ) | const |
Bool_t RooAbsCategory::operator!= | ( | const char * | label | ) | [inline] |
Implements RooAbsArg.
Bool_t RooAbsCategory::isValidLabel | ( | const char * | label | ) | const |
const RooCatType* RooAbsCategory::lookupType | ( | Int_t | index, | |
Bool_t | printError = kFALSE | |||
) | const |
const RooCatType* RooAbsCategory::lookupType | ( | const char * | label, | |
Bool_t | printError = kFALSE | |||
) | const |
const RooCatType* RooAbsCategory::lookupType | ( | const RooCatType & | type, | |
Bool_t | printError = kFALSE | |||
) | const |
TIterator* RooAbsCategory::typeIterator | ( | ) | const |
Int_t RooAbsCategory::numTypes | ( | const char * | = 0 |
) | const [inline] |
Roo1DTable* RooAbsCategory::createTable | ( | const char * | label | ) | const |
virtual Bool_t RooAbsCategory::readFromStream | ( | istream & | is, | |
Bool_t | compact, | |||
Bool_t | verbose = kFALSE | |||
) | [virtual] |
Implements RooAbsArg.
virtual void RooAbsCategory::writeToStream | ( | ostream & | os, | |
Bool_t | compact | |||
) | const [virtual] |
Implements RooAbsArg.
virtual void RooAbsCategory::printValue | ( | ostream & | os | ) | const [virtual] |
Reimplemented from RooPrintable.
virtual void RooAbsCategory::printMultiline | ( | ostream & | os, | |
Int_t | contents, | |||
Bool_t | verbose = kFALSE , |
|||
TString | indent = "" | |||
) | const [virtual] |
Reimplemented from RooAbsArg.
RooAbsArg* RooAbsCategory::createFundamental | ( | const char * | newname = 0 |
) | const [virtual] |
Implements RooAbsArg.
RooCatType RooAbsCategory::traceEval | ( | ) | const [protected] |
virtual Bool_t RooAbsCategory::traceEvalHook | ( | RooCatType | ) | const [inline, protected, virtual] |
virtual RooCatType RooAbsCategory::evaluate | ( | ) | const [protected, pure virtual] |
const RooCatType* RooAbsCategory::defineType | ( | const char * | label | ) | [protected] |
const RooCatType* RooAbsCategory::defineType | ( | const char * | label, | |
Int_t | index | |||
) | [protected] |
const RooCatType* RooAbsCategory::defineTypeUnchecked | ( | const char * | label, | |
Int_t | index | |||
) | [protected] |
const RooCatType* RooAbsCategory::getOrdinal | ( | UInt_t | n, | |
const char * | rangeName = 0 | |||
) | const [protected] |
void RooAbsCategory::clearTypes | ( | ) | [protected] |
virtual Bool_t RooAbsCategory::isValid | ( | const RooCatType & | value | ) | const [protected, virtual] |
virtual void RooAbsCategory::syncCache | ( | const RooArgSet * | set = 0 |
) | [protected, virtual] |
Implements RooAbsArg.
virtual void RooAbsCategory::copyCache | ( | const RooAbsArg * | source, | |
Bool_t | valueOnly = kFALSE | |||
) | [protected, virtual] |
Implements RooAbsArg.
Implements RooAbsArg.
Implements RooAbsArg.
virtual void RooAbsCategory::fillTreeBranch | ( | TTree & | t | ) | [protected, virtual] |
Implements RooAbsArg.
UChar_t RooAbsCategory::_byteValue [mutable, protected] |
RooCatType RooAbsCategory::_value [mutable, protected] |
Transient cache for byte values from tree branches.
Definition at line 107 of file RooAbsCategory.h.
Referenced by attachToTree(), clearTypes(), copyCache(), RooAbsCategoryLValue::copyCache(), defineTypeUnchecked(), RooAbsCategoryLValue::getBin(), getIndex(), RooCategory::getIndex(), RooCategory::getLabel(), getLabel(), isValid(), RooAbsCategoryLValue::operator=(), RooCategory::setIndex(), and RooCategory::setLabel().
TObjArray RooAbsCategory::_types [protected] |
Definition at line 108 of file RooAbsCategory.h.
Referenced by clearTypes(), defineTypeUnchecked(), RooAbsCategoryLValue::getBin(), getOrdinal(), numTypes(), printMultiline(), RooAbsCategory(), typeIterator(), and ~RooAbsCategory().
TIterator* RooAbsCategory::_typeIter [protected] |
Definition at line 109 of file RooAbsCategory.h.
Referenced by lookupType(), printMultiline(), RooAbsCategory(), and ~RooAbsCategory().
Bool_t RooAbsCategory::_treeVar [protected] |
Definition at line 111 of file RooAbsCategory.h.
Referenced by attachToTree(), copyCache(), and RooAbsCategory().
TIterator* RooAbsCategory::_typeIter [protected] |
Definition at line 109 of file RooAbsCategory.h.