Root::TResult Class Reference

List of all members.

Public Member Functions

 TResult (const char *name="TResult")
 TResult (const TResult &parent)
TResultoperator= (const TResult &rhs)
virtual ~TResult ()
 operator double () const
 operator std::pair< double, double > () const
double getEfficiency () const
double getScaleFactor () const
double getMVAResponse () const
double getTotalUncertainty () const
const char * getName () const
void clear ()
unsigned int getNResults () const
int addResult (const TString &resultName, const TString &resultDescription)
unsigned int getResultPosition (const TString &resultName) const
const TString & getResultName (unsigned int resultPosition) const
const TString & getResultDescription (const TString &resultName) const
const TString & getResultDescription (unsigned int resultPosition) const
double getResult (const TString &resultName) const
double getResult (unsigned int resultPosition) const
std::vector< double > getResults () const
void setResult (const TString &resultName, double resultResult)
void setResult (unsigned int resultPosition, double resultResult)
void setResultDescription (const TString &resultName, const TString &resultDescription)
void setResultDescription (unsigned int resultPosition, const TString &resultDescription)

Protected Attributes

TString m_name

Constructor & Destructor Documentation

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

Standard constructor

TResult::TResult ( const TResult parent  ) 

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

TResult::~TResult (  )  [virtual]

Standard destructor


Member Function Documentation

int TResult::addResult ( const TString &  resultName,
const TString &  resultDescription 
)

Add a result; returning the result position

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

Clear all stored values (not the names and descriptions thought) and assign the default value for each result

double Root::TResult::getEfficiency (  )  const [inline]

Get the zeroth entry, by convention, this is the efficiency or scale factor or MVA response or...

double Root::TResult::getMVAResponse (  )  const [inline]

Get the zeroth entry, by convention, this is the efficiency or scale factor or MVA response or...

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

Get the name of the class instance

unsigned int Root::TResult::getNResults (  )  const [inline]

Get the number of results defined

double Root::TResult::getResult ( unsigned int  resultPosition  )  const [inline]

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

double Root::TResult::getResult ( const TString &  resultName  )  const [inline]

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

const TString & TResult::getResultDescription ( unsigned int  resultPosition  )  const

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

const TString& Root::TResult::getResultDescription ( const TString &  resultName  )  const [inline]

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

const TString & TResult::getResultName ( unsigned int  resultPosition  )  const

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

unsigned int Root::TResult::getResultPosition ( const TString &  resultName  )  const [inline]

Get the position of a result

std::vector<double> Root::TResult::getResults (  )  const [inline]

Get the vector of results (Don't use this as it is slow)

double Root::TResult::getScaleFactor (  )  const [inline]

Get the zeroth entry, by convention, this is the efficiency or scale factor or MVA response or...

double Root::TResult::getTotalUncertainty (  )  const [inline]

Get the first entry, by convention, this is the total uncertainty

Root::TResult::operator double (  )  const [inline]

Overload the double operator; allows for: double myScaleFactor = double(myTResult)

Root::TResult::operator std::pair< double, double > (  )  const [inline]

Overload the double operator; allows for: std::pair<double,double> myScaleFactorAndUncertainty = std::pair<double,double>(myTResult)

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

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

void Root::TResult::setResult ( unsigned int  resultPosition,
double  resultResult 
) [inline]

Set a result, based on the result position (faster)

void Root::TResult::setResult ( const TString &  resultName,
double  resultResult 
) [inline]

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

void TResult::setResultDescription ( unsigned int  resultPosition,
const TString &  resultDescription 
)

Set a result, based on the result position (faster)

void Root::TResult::setResultDescription ( const TString &  resultName,
const TString &  resultDescription 
) [inline]

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


Member Data Documentation

TString Root::TResult::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