Docs | All | Real | Category | PDF | DataSet | Plot | Container | Misc | Aux | User |
RooMappedCategoryclass description - source file - inheritance tree (.pdf) class RooMappedCategory : public RooAbsCategory
protected: Data Membersprotected: Class DescriptionRooMappedCategory provides a category-to-category mapping defined by pattern matching on their state labels The mapping function consists of a series of wild card regular expressions. Each expression is matched to the input categories state labels, and an associated output state label. RooMappedCategory(const char *name, const char *title, RooAbsCategory& inputCat, const char* defOut, Int_t defOutIdx) : RooAbsCategory(name, title), _inputCat("inputCat","Input category",this,inputCat) Constructor with input category and name of default output state, which is assigned to all input category states that do not follow any mapping rule. RooMappedCategory(const RooMappedCategory& other, const char *name) : RooAbsCategory(other,name), _inputCat("inputCat",this,other._inputCat) ~RooMappedCategory() Destructor Bool_t map(const char* inKeyRegExp, const char* outKey, Int_t outIdx) Add mapping rule: any input category state label matching the 'inKeyRegExp' wildcard expression will be mapped to an output state with name 'outKey' Rules are evaluated in the order they were added. In case an input state matches more than one rule, the first rules output state will be assigned evaluate() const Calculate the current value of the object void printToStream(ostream& os, PrintOption opt, TString indent) const Print info about this mapped category to the specified stream. In addition to the info from RooAbsCategory::printToStream() we add: Standard : input category Shape : default value Verbose : list of mapping rules Bool_t readFromStream(istream& is, Bool_t compact, Bool_t /*verbose*/) Read object contents from given stream void writeToStream(ostream& os, Bool_t compact) const Write object contents to given stream Inline FunctionsRooMappedCategory RooMappedCategory(const RooMappedCategory& other, const char* name = "0") TObject* clone(const char* newname) const TClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)
|
Page maintained by Wouter Verkerke and David Kirkby |