class HPidAlgorithm: public TObject

_HADES_CLASS_DESCRIPTION


 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)


Function Members (Methods)

public:
HPidAlgorithm()
HPidAlgorithm(const HPidAlgorithm&)
HPidAlgorithm(TString sName, Int_t iAlgId)
HPidAlgorithm(TString sName, Int_t iAlgId, Float_t fWeight)
virtual~HPidAlgorithm()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
virtual Bool_tcalculateCL(HPidTrackCand* pTrack, Float_t* afReturn, Short_t& nCatIndex)
virtual Bool_tcalculatePDF(HPidTrackCand* pTrack, Float_t* afReturn, Short_t& nCatIndex)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual Bool_texecute(HPidTrackCand* pTrack, Float_t* afReturnPDF, Float_t* afReturnCL, Short_t& nCatIndex)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual Bool_tfinalize()
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Int_tgetAlgId() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
const TString&getName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
HPidReconstructor*getReconstructor() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Float_tgetWeight() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual Bool_tinit()
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
HPidAlgorithm&operator=(const HPidAlgorithm&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidprint() const
virtual voidPrint(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual Bool_treinit()
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidsetWeight(Float_t f)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
voidsetReconstructor(HPidReconstructor* pRec)

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
Float_tfWeightweight of the values from algorithm when algorithms are combined
Int_tiAlgIdunique id of the algorithm
HPidReconstructor*pRecpointer to the reconstructor-task
TStringsNamename of the algorithm

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

HPidAlgorithm(const HPidAlgorithm& )
 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)
 Empty function for printing info of the algorithm
HPidAlgorithm(const HPidAlgorithm& )
HPidReconstructor* getReconstructor(void)
getters and setters will not be documented unless required
{ return pRec; }
const TString& getName(void)
{ return sName; }
Int_t getAlgId(void)
{ return iAlgId; }
Float_t getWeight(void)
{ return fWeight; }
void setWeight(Float_t f)
    Bool_t              getMerge(void) const         { return bMerge;          }
    void                setMerge(Bool_t b)           { bMerge = b;             }


{ fWeight = f; }
void Print(Option_t* option = "") const
{ print(); }
void setReconstructor(HPidReconstructor* pRec)
Bool_t            bMerge;     // algorithm should be used when merging different algorithms into one decision

{ this->pRec = pRec;}

Author: Marcin Jaskula 27/07/2002
Last change: Marcin Jaskula 11/10/2002
Last generated: 2010-05-22 13:06

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.