#ifndef HPIDPARTICLESIM_H
#define HPIDPARTICLESIM_H
#include "hpidparticle.h"
#include "hpidgeanttrackset.h"
#include "hpidtrackcandsim.h"
class HGeantKine;
class HPidGeantTrackSet;
class HPidParticleSim: public HPidParticle
{
public:
HPidParticleSim(HPidCandidate* pCandidate, Float_t* assignedWeights,
Bool_t useMassIdeal=kTRUE, Int_t userDefSpecies=-99, Float_t userWeight=0.0);
HPidParticleSim(void) {};
HPidParticleSim(const HPidParticleSim& source);
~HPidParticleSim(void) {};
void Clear(Option_t *opt = "");
void print(void) const;
HPidTrackCandSim* getTrackCandSim(void) const;
HPidTrackCand* getTrackCand(void) const {return getTrackCandSim();}
const HPidGeantTrackSet* getGeantTrackSet(void) const {return &itsGeantTrackSet;}
static HCategory* buildPidParticleSimCategory(void);
Int_t getValidCommonTracks(void) const {return getGeantTrackSet()->getNCorrelatedTrackIds();}
inline Char_t getGeantTrackDetectors(UInt_t iPos = 0) const {return getGeantTrackSet()->getCorrelationFlag(iPos);}
inline UInt_t getGeantTrackProcess(UInt_t iPos = 0) const {return getGeantTrackSet()->getGeantProcessID(iPos);}
inline Short_t getGeantTrackID(UInt_t iPos = 0) const {return getGeantTrackSet()->getGeantTrackID(iPos);}
inline Short_t getGeantPID(UInt_t iPos = 0) const {return getGeantTrackSet()->getGeantPID(iPos);}
inline Double_t getTrackMomX(UInt_t iPos = 0) const {return getGeantTrackSet()->getGeantMomX(iPos);}
inline Double_t getTrackMomY(UInt_t iPos = 0) const {return getGeantTrackSet()->getGeantMomY(iPos);}
inline Double_t getTrackMomZ(UInt_t iPos = 0) const {return getGeantTrackSet()->getGeantMomZ(iPos);}
inline const TVector3* getGeantMomentum(UInt_t iPos = 0) const;
inline const TLorentzVector* getGeantLorentzVector(UInt_t iPos = 0) const;
HPidGeantTrackSet itsGeantTrackSet;
protected:
ClassDef(HPidParticleSim, 3)
};
inline const TVector3* HPidParticleSim::getGeantMomentum(UInt_t iPos) const
{
return (getGeantTrackSet()->buildGeantMomentumVector(iPos));
}
inline const TLorentzVector* HPidParticleSim::getGeantLorentzVector(UInt_t iPos) const
{
return (getGeantTrackSet()->buildGeantLorentzVector(iPos));
}
#endif /* HPIDPARTICLESIM_H */
Last change: Sat May 22 13:07:18 2010
Last generated: 2010-05-22 13:07
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.