RooGenCategory Class Reference

#include <RooGenCategory.h>

Inheritance diagram for RooGenCategory:

RooAbsCategory RooAbsCategory RooAbsArg RooAbsArg RooAbsArg RooAbsArg RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed List of all members.

Public Member Functions

 RooGenCategory ()
 RooGenCategory (const char *name, const char *title, void *userFunc, RooArgSet &catList)
 RooGenCategory (const RooGenCategory &other, const char *name=0)
virtual TObjectclone (const char *newname) const
virtual ~RooGenCategory ()
virtual void printMultiline (ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const
virtual Bool_t readFromStream (istream &is, Bool_t compact, Bool_t verbose=kFALSE)
virtual void writeToStream (ostream &os, Bool_t compact) const
 RooGenCategory ()
 RooGenCategory (const char *name, const char *title, void *userFunc, RooArgSet &catList)
 RooGenCategory (const RooGenCategory &other, const char *name=0)
virtual TObjectclone (const char *newname) const
virtual ~RooGenCategory ()
virtual void printMultiline (ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") 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

void initialize ()
TString evalUserFunc (RooArgSet *vars)
void updateIndexList ()
virtual RooCatType evaluate () const
void initialize ()
TString evalUserFunc (RooArgSet *vars)
void updateIndexList ()
virtual RooCatType evaluate () const

Protected Attributes

RooSuperCategory _superCat
RooCategoryProxy _superCatProxy
Int_t_map
TString _userFuncName
 Super-index to generic-index map.
TMethodCall_userFunc
Long_t _userArgs [1]
Int_t_map
TMethodCall_userFunc

Detailed Description

Definition at line 28 of file RooGenCategory.h.


Constructor & Destructor Documentation

RooGenCategory::RooGenCategory (  )  [inline]

Definition at line 31 of file RooGenCategory.h.

Referenced by clone().

RooGenCategory::RooGenCategory ( const char *  name,
const char *  title,
void *  userFunc,
RooArgSet catList 
)

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

Definition at line 85 of file RooGenCategory.cxx.

References _superCat, initialize(), and RooAbsArg::removeServer().

RooGenCategory::~RooGenCategory (  )  [virtual]

Definition at line 117 of file RooGenCategory.cxx.

References _map, RooAbsArg::_serverList, _superCat, RooLinkedList::FindObject(), and RooAbsArg::removeServer().

RooGenCategory::RooGenCategory (  )  [inline]

Definition at line 31 of file RooGenCategory.h.

RooGenCategory::RooGenCategory ( const char *  name,
const char *  title,
void *  userFunc,
RooArgSet catList 
)

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

virtual RooGenCategory::~RooGenCategory (  )  [virtual]


Member Function Documentation

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

Implements RooAbsArg.

Definition at line 37 of file RooGenCategory.h.

References RooGenCategory().

void RooGenCategory::printMultiline ( ostream &  os,
Int_t  content,
Bool_t  verbose = kFALSE,
TString  indent = "" 
) const [virtual]

Reimplemented from RooAbsCategory.

Definition at line 212 of file RooGenCategory.cxx.

References _superCatProxy, _userFuncName, TString::Append(), RooCategoryProxy::arg(), RooPrintable::kArgs, RooPrintable::kClassName, RooPrintable::kName, RooPrintable::kSingleLine, and RooAbsCategory::printMultiline().

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

Reimplemented from RooAbsCategory.

Definition at line 231 of file RooGenCategory.cxx.

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

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

Reimplemented from RooAbsCategory.

Definition at line 247 of file RooGenCategory.cxx.

References RooAbsCategory::getLabel().

void RooGenCategory::initialize (  )  [protected]

Definition at line 100 of file RooGenCategory.cxx.

References _superCat, _userFunc, _userFuncName, RooAbsArg::addServer(), TString::Data(), TMethodCall::InitWithPrototype(), kTRUE, and updateIndexList().

Referenced by RooGenCategory().

TString RooGenCategory::evalUserFunc ( RooArgSet vars  )  [protected]

Definition at line 132 of file RooGenCategory.cxx.

References _userArgs, _userFunc, TMethodCall::Execute(), result(), TMethodCall::SetParamPtrs(), and text().

Referenced by updateIndexList().

void RooGenCategory::updateIndexList (  )  [protected]

Definition at line 148 of file RooGenCategory.cxx.

References _map, _superCatProxy, RooCategoryProxy::arg(), RooAbsCategory::clearTypes(), coutE, RooAbsCategory::defineType(), evalUserFunc(), RooAbsCollection::find(), RooAbsCategory::getIndex(), TNamed::GetName(), RooAbsArg::getParameters(), RooCatType::getVal(), kFALSE, kTRUE, RooAbsCategory::lookupType(), TIterator::Next(), RooAbsCategory::numTypes(), RooFit::ObjectHandling, RooAbsArg::RooArgSet, RooSuperCategory::setIndex(), type, and RooAbsCategory::typeIterator().

Referenced by evaluate(), and initialize().

RooCatType RooGenCategory::evaluate (  )  const [protected, virtual]

Implements RooAbsCategory.

Definition at line 192 of file RooGenCategory.cxx.

References _map, _superCatProxy, TNamed::GetName(), RooAbsArg::isShapeDirty(), RooAbsCategory::lookupType(), and updateIndexList().

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

Implements RooAbsArg.

Definition at line 37 of file RooGenCategory.h.

References RooGenCategory().

virtual void RooGenCategory::printMultiline ( ostream &  os,
Int_t  content,
Bool_t  verbose = kFALSE,
TString  indent = "" 
) const [virtual]

Reimplemented from RooAbsCategory.

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

Reimplemented from RooAbsCategory.

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

Reimplemented from RooAbsCategory.

void RooGenCategory::initialize (  )  [protected]

TString RooGenCategory::evalUserFunc ( RooArgSet vars  )  [protected]

void RooGenCategory::updateIndexList (  )  [protected]

virtual RooCatType RooGenCategory::evaluate (  )  const [protected, virtual]

Implements RooAbsCategory.


Member Data Documentation

RooSuperCategory RooGenCategory::_superCat [protected]

Definition at line 53 of file RooGenCategory.h.

Referenced by initialize(), RooGenCategory(), and ~RooGenCategory().

RooCategoryProxy RooGenCategory::_superCatProxy [protected]

Definition at line 54 of file RooGenCategory.h.

Referenced by evaluate(), printMultiline(), and updateIndexList().

Int_t* RooGenCategory::_map [protected]

Definition at line 55 of file RooGenCategory.h.

Referenced by evaluate(), updateIndexList(), and ~RooGenCategory().

TString RooGenCategory::_userFuncName [protected]

Super-index to generic-index map.

Definition at line 57 of file RooGenCategory.h.

Referenced by initialize(), and printMultiline().

TMethodCall* RooGenCategory::_userFunc [protected]

Definition at line 58 of file RooGenCategory.h.

Referenced by evalUserFunc(), and initialize().

Long_t RooGenCategory::_userArgs [protected]

Definition at line 59 of file RooGenCategory.h.

Referenced by evalUserFunc().

Int_t* RooGenCategory::_map [protected]

Definition at line 55 of file RooGenCategory.h.

TMethodCall* RooGenCategory::_userFunc [protected]

Definition at line 58 of file RooGenCategory.h.


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