Root::TAccept Class Reference

List of all members.

Public Member Functions

 TAccept (const char *name="TAccept")
 TAccept (const TAccept &parent)
TAcceptoperator= (const TAccept &rhs)
virtual ~TAccept ()
 operator bool () const
const char * getName () const
void clear ()
void clearPositive ()
unsigned int getNCuts () const
int addCut (const TString &cutName, const TString &cutDescription)
unsigned int getCutPosition (const TString &cutName) const
const TString & getCutName (unsigned int cutPosition) const
const TString & getCutDescription (const TString &cutName) const
const TString & getCutDescription (unsigned int cutPosition) const
bool getCutResult (const TString &cutName) const
bool getCutResult (unsigned int cutPosition) const
std::bitset< m_nBits > getCutResultBitSet () const
std::bitset< m_nBits > getCutResultInvertedBitSet () const
unsigned int getCutResultInverted () const
void setCutResult (const TString &cutName, bool cutResult)
void setCutResult (unsigned int cutPosition, bool cutResult)
void setCutDescription (const TString &cutName, const TString &cutDescription)
void setCutDescription (unsigned int cutPosition, const TString &cutDescription)

Protected Attributes

TString m_name

Constructor & Destructor Documentation

TAccept::TAccept ( const char *  name = "TAccept"  ) 

Standard constructor

TAccept::TAccept ( const TAccept parent  ) 

Standard copy constructor: DO NOT COPY IT! It is expensive to copy!

TAccept::~TAccept (  )  [virtual]

Standard destructor


Member Function Documentation

int TAccept::addCut ( const TString &  cutName,
const TString &  cutDescription 
)

Add a cut; returning the cut position

void Root::TAccept::clear (  )  [inline]

Clear all bits

void Root::TAccept::clearPositive (  )  [inline]

Set all bits to true

const TString & TAccept::getCutDescription ( unsigned int  cutPosition  )  const

Get the description of a cut, based on the cut position

const TString& Root::TAccept::getCutDescription ( const TString &  cutName  )  const [inline]

Get the description of a cut, based on the cut name

const TString & TAccept::getCutName ( unsigned int  cutPosition  )  const

Get the name of a cut, based on the cut position (slow, avoid usage)

unsigned int Root::TAccept::getCutPosition ( const TString &  cutName  )  const [inline]

Get the bit position of a cut

bool Root::TAccept::getCutResult ( unsigned int  cutPosition  )  const [inline]

Get the result of a cut, based on the cut position (faster)

bool Root::TAccept::getCutResult ( const TString &  cutName  )  const [inline]

Get the result of a cut, based on the cut name (safer)

std::bitset<m_nBits> Root::TAccept::getCutResultBitSet (  )  const [inline]

Get the cut result bitset

unsigned int Root::TAccept::getCutResultInverted (  )  const [inline]

Get an inverted bitset as an unsigned integer of the cut result. This is IsEM-style, i.e, 0 means that all cuts are passed

std::bitset<m_nBits> Root::TAccept::getCutResultInvertedBitSet (  )  const [inline]

Get an inverted bitset of the cut result. This is IsEM-style, i.e, 0 means the cut is passed

const char* Root::TAccept::getName (  )  const [inline]

Get the name of the class instance

unsigned int Root::TAccept::getNCuts (  )  const [inline]

Get the number of cuts defined

Root::TAccept::operator bool ( void   )  const [inline]

Overload the boolean cast; allows for: if(myTAccept)

Root::TAccept & TAccept::operator= ( const TAccept rhs  ) 

Standard assignment operator: DO NOT COPY IT! It is expensive to copy!

void TAccept::setCutDescription ( unsigned int  cutPosition,
const TString &  cutDescription 
)

Get the result of a cut, based on the cut position (faster)

void Root::TAccept::setCutDescription ( const TString &  cutName,
const TString &  cutDescription 
) [inline]

Set the result of a cut, based on the cut name (safer)

void Root::TAccept::setCutResult ( unsigned int  cutPosition,
bool  cutResult 
) [inline]

Get the result of a cut, based on the cut position (faster)

void Root::TAccept::setCutResult ( const TString &  cutName,
bool  cutResult 
) [inline]

Set the result of a cut, based on the cut name (safer)


Member Data Documentation

TString Root::TAccept::m_name [protected]

The name of the class instance


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1