#include "hpidparticle.h"

HPidParticle


class description - source file - inheritance tree (.pdf)

class HPidParticle : public TLorentzVector

Inheritance Chart:
TObject
<-
TLorentzVector
<-
HPidParticle
<-
HPidParticleSim

    protected:
void setDefault() public:
HPidParticle(HPidCandidate* pCandidate, Float_t* assignedWeights, Bool_t useMassIdeal = kTRUE, Int_t userDefSpecies = -99, Float_t userDefWeight = 0.0) HPidParticle() HPidParticle(const HPidParticle& source) ~HPidParticle() static HCategory* buildPidParticleCategory() static TClass* Class() virtual void Clear(Option_t* opt) Float_t getBetaExp() const Int_t getCharge() const const HPidHitData* getHitData() const Int_t getIndex(HCategory* pCat = 0) Float_t getMassExp() const Float_t getMassIdeal() const Int_t getMomAlg() const Float_t getMomRescal() const Int_t getMostProbablePID() const Int_t getNPossibleSpecies() Short_t getPid(Short_t n) const Int_t getPid() const HPidCandidate* getPidCandidate(HCategory* pCat = 0) const Short_t getPidCandidateIndex() const Float_t getR() const TLorentzVector getRescaledVector() const Int_t getSpeciesIndex(Short_t pid) const Float_t getSystem() const Float_t getTestVal() const HPidTrackCand* getTrackCand() const const HPidTrackData* getTrackData() const Float_t getWeight(Short_t n) const Float_t getWeight() const Float_t getWeightForPID(Short_t pid) const Float_t getZ() const virtual TClass* IsA() const HPidParticle& operator=(const HPidParticle&) Double_t phiDeg() const virtual void Print(Option_t* option) const virtual void print() const Short_t sector() const void setMomAlg(Int_t i) void setMomRescal(Float_t f) void setPid(Short_t npid) void setPidCandidateIndex(Short_t n) void setPidParams(Float_t fTestVal, Int_t userDefSpecies = -99, Float_t userWeight = 1.0) void setTestVal(Float_t f) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) Double_t thetaDeg() const

Data Members


    protected:
Bool_t kUsesIdealMass kTRUE if the particle stores the ideal mass value of its assigned PID to build the Lorentz Int_t nPossibleSpecies number of possible species (dimension of the vectors possibleSpecies and assignedWeights Short_t momAlgIndex Index indicating which algorithm for momentum computation has been chosen Short_t nPidCandidateIndex index of the HPidCandidate this particle was made from TArrayS possibleSpecies size: nPossibleSpecies TArrayF assignedWeights size: nPossibleSpecies Int_t nAssignedPID A pid assigned to the particle either by an external algorithm or by choosing the Float_t fTestVal test value checked during creation Float_t fWeight statistical weight of the particle (probability of the externally assigned species - if any) Float_t fMomRescal rescaling factor for the momentum which might be applied to compute from the stored HPidHitData itsHitData HPidTrackData itsTrackData public:
static const enum HPidParticle:: kMassExpInTLV static const enum HPidParticle:: kMassExpNoPhy static const enum HPidParticle:: kTrackCandOffset

Class Description

 This class has been redesigned also in the course of adaption to multiple tracking methods
 Documentation is provided at the individual function bodies and in the header file

 Tassilo Christ 05/07/2006


HPidParticle(HPidCandidate* pCandidate,Float_t* VectorOfWeights, Bool_t useMassIdeal, Int_t userDefSpecies, Float_t userWeight): itsHitData(*(pCandidate->getTrackCandidate()->getHitData())), itsTrackData(*(pCandidate->getTrackCandidate()->getTrackData()))

HPidParticle(const HPidParticle& source): TLorentzVector(source), itsHitData(*(source.getHitData())), itsTrackData(*(source.getTrackData()))

void setPidParams(Float_t fTV, Int_t userDefSpecies, Float_t userWeight)//OK

Float_t getWeightForPID(Short_t pid) const //OK

Int_t getSpeciesIndex(Short_t pid) const //OK

void setDefault(void) //OK

void Clear(Option_t *opt) //OK
 Clear all variables and frees dynamic memory!

void print(void) const
 Print info about the particle

HPidCandidate* getPidCandidate(HCategory *pCat) const //OK
 Returns HPidCandidate object corresponding to nPidCandidateIndex (if exists)
 Works when pCat is set or gHades->getCurrentEvent() is accessible

HCategory* buildPidParticleCategory(void) //OK
 Static function for making the category HPidParticle

Int_t getMostProbablePID(void) const //OK

Int_t getIndex(HCategory *pCat) //OK
 Return index of the HPidParticle in the pCat or catPidPart if pCat == NULL

HPidTrackCand* getTrackCand(void) const //OK
 This method returns HPidTrackCand object from the corresponding
 HPidCandidate (when nPidCandidateIndex >= 0) or directly from catPidTrackCand
 when nPidCandidateIndex <= -1000
 (interface for HPidParticleFillerFromTrack)

TLorentzVector getRescaledVector(void) const //OK



Inline Functions


                        void ~HPidParticle()
                HPidParticle HPidParticle(const HPidParticle& source)
                        void setPidCandidateIndex(Short_t n)
                     Short_t getPidCandidateIndex() const
                     Float_t getSystem() const
                     Float_t getR() const
                     Float_t getZ() const
                     Float_t getMassExp() const
                     Float_t getBetaExp() const
                        void setMomAlg(Int_t i)
                       Int_t getMomAlg() const
                       Int_t getCharge() const
                     Short_t getPid(Short_t n) const
                     Float_t getWeight(Short_t n) const
                       Int_t getPid() const
                        void setPid(Short_t npid)
                        void setTestVal(Float_t f)
                     Float_t getTestVal() const
                     Float_t getWeight() const
                     Float_t getMassIdeal() const
                        void setMomRescal(Float_t f)
                     Float_t getMomRescal() const
                        void Print(Option_t* option) const
                    Double_t thetaDeg() const
                    Double_t phiDeg() const
                     Short_t sector() const
          const HPidHitData* getHitData() const
        const HPidTrackData* getTrackData() const
                       Int_t getNPossibleSpecies()
                     TClass* Class()
                     TClass* IsA() const
                        void ShowMembers(TMemberInspector& insp, char* parent)
                        void Streamer(TBuffer& b)
                        void StreamerNVirtual(TBuffer& b)
               HPidParticle& operator=(const HPidParticle&)


Author: Marcin Jaskula 30/11/2002
Last update: Fri Jan 26 12:22:38 2007


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.