#include "hpidalgorithm.h" |
HPidAlgorithm
class description - source file - inheritance tree (.pdf)
protected:
void setReconstructor(HPidReconstructor* pRec)
public:
HPidAlgorithm()
HPidAlgorithm(TString sName, Int_t iAlgId)
HPidAlgorithm(TString sName, Int_t iAlgId, Float_t fWeight)
HPidAlgorithm(const HPidAlgorithm&)
~HPidAlgorithm()
virtual Bool_t calculateCL(HPidTrackCand* pTrack, Float_t* afReturn, Short_t& nCatIndex)
virtual Bool_t calculatePDF(HPidTrackCand* pTrack, Float_t* afReturn, Short_t& nCatIndex)
static TClass* Class()
virtual Bool_t execute(HPidTrackCand* pTrack, Float_t* afReturnPDF, Float_t* afReturnCL, Short_t& nCatIndex)
virtual Bool_t finalize()
Int_t getAlgId() const
const TString& getName() const
HPidReconstructor* getReconstructor() const
Float_t getWeight() const
virtual Bool_t init()
virtual TClass* IsA() const
HPidAlgorithm& operator=(const HPidAlgorithm&)
virtual void print() const
virtual void Print(Option_t* option) const
virtual Bool_t reinit()
void setWeight(Float_t f)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
HPidReconstructor* pRec pointer to the reconstructor-task
TString sName name of the algorithm
Int_t iAlgId unique id of the algorithm
Float_t fWeight weight of the values from algorithm when algorithms are combined
HPidAlgorithm
A base class for all PID algorithms
The algorithms are identified by their id (iAlgId) or/and by their name (sName).
The flag fWeight is not used up to know, but is dedicated for the future
extensions (different weights of algorithms)
HPidAlgorithm(void)
Default constructor
HPidAlgorithm(TString sName, Int_t iAlgId)
Constructor with the name and id of the algorithm
HPidAlgorithm(TString sName, Int_t iAlgId, Float_t fWeight)
Constructor with the name, id and weight of the algorithm
~HPidAlgorithm(void)
Destructor. The algorithm calls pRec->removeAlgorithm(this) to remove
itself from the list of the algorithms.
Bool_t init(void)
Abstract method for initialization. Returns status of the initialization.
Bool_t reinit(void)
Abstract method for reinitialization. Returns status of the reinitialization.
Bool_t finalize(void)
Abstract method for finalizing. Returns status of the finalizing.
Bool_t execute(HPidTrackCand *pTrack,
Float_t afReturnPDF[], Float_t afReturnCL[], Short_t &nCatIndex)
Method for pid finding.
pTrack - pointer to the track candidate for which a statement must be given
afReturnPDF - array for PDF values; the size taken from the PidReconstructor class
afReturnCL - array for CL values; the size taken from the PidReconstructor class
nCatIndex - index of an object in category used by algorithm
(eg. HShowerPid) default set to -1
afReturnPDF and afReturnCL are used to store the result of this algorithms computation for
the outside world
Bool_t calculatePDF(HPidTrackCand *pTrack,
Float_t afReturn[], Short_t &nCatIndex)
pTrack - pointer to the track candidate
afReturn - array for return values; the size taken from the reconstructor
nCatIndex - index of an object in category used by algorithm (eg. HShowerPid)
default set to -1
Returns status of the calculations.
Bool_t calculateCL(HPidTrackCand *pTrack,
Float_t afReturn[], Short_t &nCatIndex)
Abstract method for calculating CL (returns kTRUE)
For description see calculatePDF()
void print(void) const
Empty function for printing info of the algorithm
Inline Functions
HPidReconstructor* getReconstructor() const
const TString& getName() const
Int_t getAlgId() const
Float_t getWeight() const
void setWeight(Float_t f)
void Print(Option_t* option) const
void setReconstructor(HPidReconstructor* pRec)
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
HPidAlgorithm HPidAlgorithm(const HPidAlgorithm&)
HPidAlgorithm& operator=(const HPidAlgorithm&)
Last update: Marcin Jaskula 11/10/2002
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.