#include <RooMappedCategory.h>
Inheritance diagram for RooMappedCategory:
Public Types | |
enum | CatIdx |
enum | CatIdx |
Public Member Functions | |
RooMappedCategory () | |
RooMappedCategory (const char *name, const char *title, RooAbsCategory &inputCat, const char *defCatName="NotMapped", Int_t defCatIdx=NoCatIdx) | |
RooMappedCategory (const RooMappedCategory &other, const char *name=0) | |
virtual TObject * | clone (const char *newname) const |
virtual | ~RooMappedCategory () |
Bool_t | map (const char *inKeyRegExp, const char *outKeyName, Int_t outKeyNum=NoCatIdx) |
void | printMultiline (ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const |
void | printMetaArgs (ostream &os) const |
virtual Bool_t | readFromStream (istream &is, Bool_t compact, Bool_t verbose=kFALSE) |
virtual void | writeToStream (ostream &os, Bool_t compact) const |
RooMappedCategory () | |
RooMappedCategory (const char *name, const char *title, RooAbsCategory &inputCat, const char *defCatName="NotMapped", Int_t defCatIdx=NoCatIdx) | |
RooMappedCategory (const RooMappedCategory &other, const char *name=0) | |
virtual TObject * | clone (const char *newname) const |
virtual | ~RooMappedCategory () |
Bool_t | map (const char *inKeyRegExp, const char *outKeyName, Int_t outKeyNum=NoCatIdx) |
void | printMultiline (ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const |
void | printMetaArgs (ostream &os) 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 | |
virtual RooCatType | evaluate () const |
virtual RooCatType | evaluate () const |
Protected Attributes | |
RooCatType * | _defCat |
RooCategoryProxy | _inputCat |
std::map< std::string, RooMappedCategory::Entry > | _mapArray |
RooCatType * | _defCat |
std::map< std::string, RooMappedCategory::Entry > | _mapArray |
Classes | |
class | Entry |
Definition at line 27 of file RooMappedCategory.h.
Definition at line 30 of file RooMappedCategory.h.
Definition at line 30 of file RooMappedCategory.h.
RooMappedCategory::RooMappedCategory | ( | ) | [inline] |
RooMappedCategory::RooMappedCategory | ( | const char * | name, | |
const char * | title, | |||
RooAbsCategory & | inputCat, | |||
const char * | defCatName = "NotMapped" , |
|||
Int_t | defCatIdx = NoCatIdx | |||
) |
RooMappedCategory::RooMappedCategory | ( | const RooMappedCategory & | other, | |
const char * | name = 0 | |||
) |
Definition at line 55 of file RooMappedCategory.cxx.
References _defCat, RooCatType::GetName(), and RooAbsCategory::lookupType().
RooMappedCategory::~RooMappedCategory | ( | ) | [virtual] |
Definition at line 63 of file RooMappedCategory.cxx.
RooMappedCategory::RooMappedCategory | ( | ) | [inline] |
Definition at line 31 of file RooMappedCategory.h.
RooMappedCategory::RooMappedCategory | ( | const char * | name, | |
const char * | title, | |||
RooAbsCategory & | inputCat, | |||
const char * | defCatName = "NotMapped" , |
|||
Int_t | defCatIdx = NoCatIdx | |||
) |
RooMappedCategory::RooMappedCategory | ( | const RooMappedCategory & | other, | |
const char * | name = 0 | |||
) |
virtual RooMappedCategory::~RooMappedCategory | ( | ) | [virtual] |
virtual TObject* RooMappedCategory::clone | ( | const char * | newname | ) | const [inline, virtual] |
Implements RooAbsArg.
Definition at line 34 of file RooMappedCategory.h.
References RooMappedCategory().
Bool_t RooMappedCategory::map | ( | const char * | inKeyRegExp, | |
const char * | outKeyName, | |||
Int_t | outKeyNum = NoCatIdx | |||
) |
Definition at line 70 of file RooMappedCategory.cxx.
References _mapArray, coutE, RooAbsCategory::defineType(), TNamed::GetName(), RooFit::InputArguments, kFALSE, kTRUE, RooAbsCategory::lookupType(), NoCatIdx, and RooMappedCategory::Entry::ok().
Referenced by readFromStream(), rf406_cattocatfuncs(), and TestBasic406::testCode().
void RooMappedCategory::printMultiline | ( | ostream & | os, | |
Int_t | content, | |||
Bool_t | verbose = kFALSE , |
|||
TString | indent = "" | |||
) | const [virtual] |
Reimplemented from RooAbsCategory.
Definition at line 133 of file RooMappedCategory.cxx.
References _defCat, _inputCat, _mapArray, RooCategoryProxy::arg(), RooPrintable::kName, RooPrintable::kSingleLine, RooPrintable::kStandard, RooPrintable::kValue, RooAbsCategory::printMultiline(), and RooPrintable::printStream().
void RooMappedCategory::printMetaArgs | ( | ostream & | os | ) | const [virtual] |
Reimplemented from RooAbsArg.
Definition at line 215 of file RooMappedCategory.cxx.
References _defCat, _mapArray, RooCatType::GetName(), RooCatType::getVal(), kFALSE, and kTRUE.
Bool_t RooMappedCategory::readFromStream | ( | istream & | is, | |
Bool_t | compact, | |||
Bool_t | verbose = kFALSE | |||
) | [virtual] |
Reimplemented from RooAbsCategory.
Definition at line 160 of file RooMappedCategory.cxx.
References _defCat, _mapArray, TString::Append(), RooAbsCategory::clearTypes(), TString::CompareTo(), coutE, RooAbsCategory::defineType(), RooStreamParser::expectToken(), TNamed::GetName(), RooCatType::GetName(), RooFit::InputArguments, TString::IsNull(), kFALSE, kTRUE, map(), RooStreamParser::readToken(), and RooStreamParser::setPunctuation().
void RooMappedCategory::writeToStream | ( | ostream & | os, | |
Bool_t | compact | |||
) | const [virtual] |
Reimplemented from RooAbsCategory.
Definition at line 245 of file RooMappedCategory.cxx.
References _defCat, _mapArray, RooAbsCategory::getLabel(), RooCatType::GetName(), RooCatType::getVal(), kFALSE, and kTRUE.
RooCatType RooMappedCategory::evaluate | ( | ) | const [protected, virtual] |
Implements RooAbsCategory.
Definition at line 116 of file RooMappedCategory.cxx.
References _defCat, _inputCat, _mapArray, and RooCategoryProxy::label().
virtual TObject* RooMappedCategory::clone | ( | const char * | newname | ) | const [inline, virtual] |
Implements RooAbsArg.
Definition at line 34 of file RooMappedCategory.h.
References RooMappedCategory().
Bool_t RooMappedCategory::map | ( | const char * | inKeyRegExp, | |
const char * | outKeyName, | |||
Int_t | outKeyNum = NoCatIdx | |||
) |
void RooMappedCategory::printMultiline | ( | ostream & | os, | |
Int_t | content, | |||
Bool_t | verbose = kFALSE , |
|||
TString | indent = "" | |||
) | const [virtual] |
Reimplemented from RooAbsCategory.
void RooMappedCategory::printMetaArgs | ( | ostream & | os | ) | const [virtual] |
Reimplemented from RooAbsArg.
virtual Bool_t RooMappedCategory::readFromStream | ( | istream & | is, | |
Bool_t | compact, | |||
Bool_t | verbose = kFALSE | |||
) | [virtual] |
Reimplemented from RooAbsCategory.
virtual void RooMappedCategory::writeToStream | ( | ostream & | os, | |
Bool_t | compact | |||
) | const [virtual] |
Reimplemented from RooAbsCategory.
virtual RooCatType RooMappedCategory::evaluate | ( | ) | const [protected, virtual] |
Implements RooAbsCategory.
RooCatType* RooMappedCategory::_defCat [protected] |
Definition at line 74 of file RooMappedCategory.h.
Referenced by evaluate(), printMetaArgs(), printMultiline(), readFromStream(), RooMappedCategory(), and writeToStream().
RooCategoryProxy RooMappedCategory::_inputCat [protected] |
std::map<std::string,RooMappedCategory::Entry> RooMappedCategory::_mapArray [protected] |
Definition at line 76 of file RooMappedCategory.h.
Referenced by evaluate(), map(), printMetaArgs(), printMultiline(), readFromStream(), and writeToStream().
RooCatType* RooMappedCategory::_defCat [protected] |
Definition at line 74 of file RooMappedCategory.h.
std::map<std::string,RooMappedCategory::Entry> RooMappedCategory::_mapArray [protected] |
Definition at line 76 of file RooMappedCategory.h.