RooCategory Class Reference

#include <RooCategory.h>

Inheritance diagram for RooCategory:

RooAbsCategoryLValue RooAbsCategoryLValue RooAbsLValue RooAbsCategory RooAbsLValue RooAbsCategory RooAbsLValue RooAbsCategory RooAbsLValue RooAbsCategory List of all members.

Public Member Functions

 RooCategory ()
 RooCategory (const char *name, const char *title)
 RooCategory (const RooCategory &other, const char *name=0)
virtual ~RooCategory ()
virtual TObjectclone (const char *newname) const
virtual Int_t getIndex () const
virtual const char * getLabel () const
virtual Bool_t setIndex (Int_t index, Bool_t printError=kTRUE)
virtual Bool_t setLabel (const char *label, Bool_t printError=kTRUE)
virtual Bool_t readFromStream (istream &is, Bool_t compact, Bool_t verbose=kFALSE)
virtual void writeToStream (ostream &os, Bool_t compact) const
virtual Bool_t isFundamental () const
Bool_t defineType (const char *label)
Bool_t defineType (const char *label, Int_t index)
void clearTypes ()
void clearRange (const char *name, Bool_t silent)
void setRange (const char *rangeName, const char *stateNameList)
void addToRange (const char *rangeName, const char *stateNameList)
Bool_t isStateInRange (const char *rangeName, const char *stateName) const
virtual Bool_t inRange (const char *rangeName) const
virtual Bool_t hasRange (const char *rangeName) const
 RooCategory ()
 RooCategory (const char *name, const char *title)
 RooCategory (const RooCategory &other, const char *name=0)
virtual ~RooCategory ()
virtual TObjectclone (const char *newname) const
virtual Int_t getIndex () const
virtual const char * getLabel () const
virtual Bool_t setIndex (Int_t index, Bool_t printError=kTRUE)
virtual Bool_t setLabel (const char *label, Bool_t printError=kTRUE)
virtual Bool_t readFromStream (istream &is, Bool_t compact, Bool_t verbose=kFALSE)
virtual void writeToStream (ostream &os, Bool_t compact) const
virtual Bool_t isFundamental () const
Bool_t defineType (const char *label)
Bool_t defineType (const char *label, Int_t index)
void clearTypes ()
void clearRange (const char *name, Bool_t silent)
void setRange (const char *rangeName, const char *stateNameList)
void addToRange (const char *rangeName, const char *stateNameList)
Bool_t isStateInRange (const char *rangeName, const char *stateName) const
virtual Bool_t inRange (const char *rangeName) const
virtual Bool_t hasRange (const char *rangeName) const

Protected Member Functions

virtual RooCatType evaluate () const
 Shared properties associated with this instance.
virtual RooCatType evaluate () const
 Shared properties associated with this instance.

Protected Attributes

RooCategorySharedProperties_sharedProp
RooCategorySharedProperties_sharedProp

Static Protected Attributes

static RooSharedPropertiesList _sharedPropList
static RooCategorySharedProperties _nullProp

Detailed Description

Definition at line 25 of file RooCategory.h.


Constructor & Destructor Documentation

RooCategory::RooCategory (  ) 

Definition at line 47 of file RooCategory.cxx.

Referenced by clone().

RooCategory::RooCategory ( const char *  name,
const char *  title 
)

Definition at line 54 of file RooCategory.cxx.

References _sharedProp, _sharedPropList, RooSharedPropertiesList::registerProperties(), RooAbsArg::setShapeDirty(), and RooAbsArg::setValueDirty().

RooCategory::RooCategory ( const RooCategory other,
const char *  name = 0 
)

Definition at line 68 of file RooCategory.cxx.

References _sharedProp, _sharedPropList, and RooSharedPropertiesList::registerProperties().

RooCategory::~RooCategory (  )  [virtual]

Definition at line 79 of file RooCategory.cxx.

References _sharedProp, _sharedPropList, and RooSharedPropertiesList::unregisterProperties().

RooCategory::RooCategory (  ) 

RooCategory::RooCategory ( const char *  name,
const char *  title 
)

RooCategory::RooCategory ( const RooCategory other,
const char *  name = 0 
)

virtual RooCategory::~RooCategory (  )  [virtual]


Member Function Documentation

virtual TObject* RooCategory::clone ( const char *  newname  )  const [inline, virtual]

Implements RooAbsArg.

Definition at line 32 of file RooCategory.h.

References RooCategory().

virtual Int_t RooCategory::getIndex (  )  const [inline, virtual]

Reimplemented from RooAbsCategory.

Definition at line 35 of file RooCategory.h.

References RooAbsCategory::_value, and RooCatType::getVal().

Referenced by RooNumIntConfig::operator=(), RooNumGenConfig::operator=(), RooNumGenConfig::printMultiline(), RooNumIntConfig::printMultiline(), and writeToStream().

virtual const char* RooCategory::getLabel (  )  const [inline, virtual]

Reimplemented from RooAbsCategory.

Definition at line 39 of file RooCategory.h.

References RooAbsCategory::_value, and RooCatType::GetName().

Referenced by RooCompositeDataStore::fill(), inRange(), RooNumGenConfig::printMultiline(), RooNumIntConfig::printMultiline(), RooDataSet::RooDataSet(), and writeToStream().

Bool_t RooCategory::setIndex ( Int_t  index,
Bool_t  printError = kTRUE 
) [virtual]

Implements RooAbsCategoryLValue.

Definition at line 89 of file RooCategory.cxx.

References RooAbsCategory::_value, kFALSE, kTRUE, RooAbsCategory::lookupType(), RooAbsArg::setValueDirty(), and type.

Referenced by RooAbsHiddenReal::dummyBlindState(), RooStats::HLFactory::GetTotDataSet(), RooNumIntConfig::operator=(), RooNumGenConfig::operator=(), RooDataSet::read(), RooMCIntegrator::registerIntegrator(), rs602_HLFactoryCombinationexample(), and rs603_HLFactoryElaborateExample().

Bool_t RooCategory::setLabel ( const char *  label,
Bool_t  printError = kTRUE 
) [virtual]

Implements RooAbsCategoryLValue.

Definition at line 105 of file RooCategory.cxx.

References RooAbsCategory::_value, kFALSE, kTRUE, RooAbsCategory::lookupType(), RooAbsArg::setValueDirty(), and type.

Referenced by RooCompositeDataStore::get(), RooDataHist::importDHistSet(), RooXYChi2Var::initialize(), RooAbsReal::plotOn(), RooSimultaneous::plotOn(), readFromStream(), RooIntegrator2D::registerIntegrator(), RooIntegrator1D::registerIntegrator(), RooMCIntegrator::registerIntegrator(), rf901_numintconfig(), rf902_numgenconfig(), RooDataSet::RooDataSet(), RooNumConvolution::RooNumConvolution(), RooNumGenFactory::RooNumGenFactory(), RooNumIntFactory::RooNumIntFactory(), TestBasic111::testCode(), and TestBasic599::testCode().

Bool_t RooCategory::readFromStream ( istream &  is,
Bool_t  compact,
Bool_t  verbose = kFALSE 
) [virtual]

Reimplemented from RooAbsCategoryLValue.

Definition at line 158 of file RooCategory.cxx.

References RooStreamParser::readToken(), and setLabel().

void RooCategory::writeToStream ( ostream &  os,
Bool_t  compact 
) const [virtual]

Reimplemented from RooAbsCategoryLValue.

Definition at line 172 of file RooCategory.cxx.

References getIndex(), and getLabel().

virtual Bool_t RooCategory::isFundamental (  )  const [inline, virtual]

Reimplemented from RooAbsArg.

Definition at line 51 of file RooCategory.h.

References kTRUE.

Bool_t RooCategory::defineType ( const char *  label  ) 

Reimplemented from RooAbsCategory.

Definition at line 121 of file RooCategory.cxx.

References coutE, RooAbsCategory::defineType(), TNamed::GetName(), RooFit::InputArguments, kFALSE, and kTRUE.

Referenced by RooNumGenConfig::addConfigSection(), RooNumIntConfig::addConfigSection(), RooFactoryWSTool::createCategory(), RooAbsHiddenReal::dummyBlindState(), RooStats::HLFactory::fCreateCategory(), RooDataHist::importDHistSet(), RooDataSet::read(), RooIntegrator1D::registerIntegrator(), RooMCIntegrator::registerIntegrator(), rf108_plotbinning(), rf310_sliceplot(), rf401_importttreethx(), rf404_categories(), rf406_cattocatfuncs(), rf501_simultaneouspdf(), rf508_listsetmanip(), rf701_efficiencyfit(), rf702_efficiencyfit_2D(), rf708_bphysics(), RooDataSet::RooDataSet(), RooNumGenConfig::RooNumGenConfig(), RooNumIntConfig::RooNumIntConfig(), TestBasic404::testCode(), TestBasic310::testCode(), TestBasic406::testCode(), TestBasic701::testCode(), TestBasic108::testCode(), TestBasic702::testCode(), TestBasic501::testCode(), TestBasic708::testCode(), and TestBasic599::testCode().

Bool_t RooCategory::defineType ( const char *  label,
Int_t  index 
)

Reimplemented from RooAbsCategory.

Definition at line 140 of file RooCategory.cxx.

References coutE, RooAbsCategory::defineType(), TNamed::GetName(), RooFit::InputArguments, kFALSE, and kTRUE.

void RooCategory::clearTypes (  )  [inline]

Reimplemented from RooAbsCategory.

Definition at line 58 of file RooCategory.h.

References RooAbsCategory::clearTypes().

void RooCategory::clearRange ( const char *  name,
Bool_t  silent 
)

Definition at line 184 of file RooCategory.cxx.

References RooCategorySharedProperties::_altRanges, _sharedProp, coutE, RooLinkedList::FindObject(), TNamed::GetName(), and RooFit::InputArguments.

Referenced by setRange().

void RooCategory::setRange ( const char *  rangeName,
const char *  stateNameList 
)

Definition at line 205 of file RooCategory.cxx.

References addToRange(), clearRange(), and kTRUE.

Referenced by rf404_categories(), rf405_realtocatfuncs(), TestBasic404::testCode(), and TestBasic405::testCode().

void RooCategory::addToRange ( const char *  rangeName,
const char *  stateNameList 
)

Definition at line 214 of file RooCategory.cxx.

References RooCategorySharedProperties::_altRanges, _sharedProp, RooLinkedList::Add(), TList::Add(), buf, RooFit::Contents, coutE, coutI, coutW, TList::FindObject(), RooLinkedList::FindObject(), TNamed::GetName(), RooFit::InputArguments, kFALSE, kTRUE, RooAbsCategory::lookupType(), TCollection::SetName(), TCollection::SetOwner(), and strlcpy().

Referenced by rf404_categories(), setRange(), and TestBasic404::testCode().

Bool_t RooCategory::isStateInRange ( const char *  rangeName,
const char *  stateName 
) const

Definition at line 257 of file RooCategory.cxx.

References RooCategorySharedProperties::_altRanges, _sharedProp, coutE, RooLinkedList::FindObject(), TNamed::GetName(), RooFit::InputArguments, kFALSE, and kTRUE.

Referenced by inRange().

virtual Bool_t RooCategory::inRange ( const char *  rangeName  )  const [inline, virtual]

Reimplemented from RooAbsArg.

Definition at line 64 of file RooCategory.h.

References getLabel(), and isStateInRange().

virtual Bool_t RooCategory::hasRange ( const char *  rangeName  )  const [inline, virtual]

Reimplemented from RooAbsArg.

Definition at line 68 of file RooCategory.h.

References RooCategorySharedProperties::_altRanges, _sharedProp, RooLinkedList::FindObject(), kFALSE, and kTRUE.

virtual RooCatType RooCategory::evaluate (  )  const [inline, protected, virtual]

Shared properties associated with this instance.

Implements RooAbsCategory.

Definition at line 79 of file RooCategory.h.

virtual TObject* RooCategory::clone ( const char *  newname  )  const [inline, virtual]

Implements RooAbsArg.

Definition at line 32 of file RooCategory.h.

References RooCategory().

virtual Int_t RooCategory::getIndex (  )  const [inline, virtual]

Reimplemented from RooAbsCategory.

Definition at line 35 of file RooCategory.h.

References RooAbsCategory::_value, and RooCatType::getVal().

virtual const char* RooCategory::getLabel (  )  const [inline, virtual]

Reimplemented from RooAbsCategory.

Definition at line 39 of file RooCategory.h.

References RooAbsCategory::_value, and RooCatType::GetName().

virtual Bool_t RooCategory::setIndex ( Int_t  index,
Bool_t  printError = kTRUE 
) [virtual]

Implements RooAbsCategoryLValue.

virtual Bool_t RooCategory::setLabel ( const char *  label,
Bool_t  printError = kTRUE 
) [virtual]

Implements RooAbsCategoryLValue.

virtual Bool_t RooCategory::readFromStream ( istream &  is,
Bool_t  compact,
Bool_t  verbose = kFALSE 
) [virtual]

Reimplemented from RooAbsCategoryLValue.

virtual void RooCategory::writeToStream ( ostream &  os,
Bool_t  compact 
) const [virtual]

Reimplemented from RooAbsCategoryLValue.

virtual Bool_t RooCategory::isFundamental (  )  const [inline, virtual]

Reimplemented from RooAbsArg.

Definition at line 51 of file RooCategory.h.

References kTRUE.

Bool_t RooCategory::defineType ( const char *  label  ) 

Reimplemented from RooAbsCategory.

Bool_t RooCategory::defineType ( const char *  label,
Int_t  index 
)

Reimplemented from RooAbsCategory.

void RooCategory::clearTypes (  )  [inline]

Reimplemented from RooAbsCategory.

Definition at line 58 of file RooCategory.h.

References RooAbsCategory::clearTypes().

void RooCategory::clearRange ( const char *  name,
Bool_t  silent 
)

void RooCategory::setRange ( const char *  rangeName,
const char *  stateNameList 
)

void RooCategory::addToRange ( const char *  rangeName,
const char *  stateNameList 
)

Bool_t RooCategory::isStateInRange ( const char *  rangeName,
const char *  stateName 
) const

virtual Bool_t RooCategory::inRange ( const char *  rangeName  )  const [inline, virtual]

Reimplemented from RooAbsArg.

Definition at line 64 of file RooCategory.h.

References getLabel(), and isStateInRange().

virtual Bool_t RooCategory::hasRange ( const char *  rangeName  )  const [inline, virtual]

Reimplemented from RooAbsArg.

Definition at line 68 of file RooCategory.h.

References RooCategorySharedProperties::_altRanges, _sharedProp, RooLinkedList::FindObject(), kFALSE, and kTRUE.

virtual RooCatType RooCategory::evaluate (  )  const [inline, protected, virtual]

Shared properties associated with this instance.

Implements RooAbsCategory.

Definition at line 79 of file RooCategory.h.


Member Data Documentation

RooSharedPropertiesList RooCategory::_sharedPropList [static, protected]

Definition at line 75 of file RooCategory.h.

Referenced by RooCategory(), and ~RooCategory().

RooCategorySharedProperties RooCategory::_nullProp [static, protected]

Definition at line 76 of file RooCategory.h.

RooCategorySharedProperties* RooCategory::_sharedProp [protected]

Definition at line 77 of file RooCategory.h.

Referenced by addToRange(), clearRange(), hasRange(), isStateInRange(), RooCategory(), and ~RooCategory().

RooCategorySharedProperties* RooCategory::_sharedProp [protected]

Definition at line 77 of file RooCategory.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:33:11 2011 for ROOT_528-00b_version by  doxygen 1.5.1