13 #ifndef PNDMCTRACKINFO_H 14 #define PNDMCTRACKINFO_H 1 16 #include "FairMultiLinkedData_Interface.h" 33 void Print(std::ostream &out = std::cout);
89 if (fTypeCount.count(type) > 0) {
90 return fTypeCount[type];
102 if (fMomentumDifference.count(type) > 0) {
103 return fMomentumDifference[type];
115 if (fPidProb.count(type) > 0) {
116 return fPidProb[type];
128 fStage = fPIDMothers.size();
132 void SetRecoMomentum(
int branchType, TVector3 value) { fMomentumReco[branchType] = value; }
133 void SetDeltaMomentum(
int branchType,
double pt,
double pl) { fMomentumDifference[branchType] = TVector2(pt, pl); };
141 TVector3 fDecayVertex;
144 std::vector<int> fPIDMothers;
145 std::vector<int> fPIDDaughters;
146 std::vector<int> fDaughters;
153 std::map<int, TVector3> fMomentumReco;
154 std::map<int, TVector2> fMomentumDifference;
155 std::map<int, PndPidProbability> fPidProb;
157 std::map<int, int> fTypeCount;
virtual ~PndMCTrackInfo()
PndPidProbability GetPidProbability(int type)
void SetDecayTime(Double_t time)
int GetTotalPoints() const
void SetDeltaMomentum(int branchType, double pt, double pl)
void SetPIDMothers(std::vector< int > pid)
friend std::ostream & operator<<(std::ostream &out, PndMCTrackInfo &track)
void SetRecoMomentum(int branchType, TVector3 value)
std::vector< int > GetPIDDaughters() const
std::vector< int > GetPIDMothers() const
void AddDaughter(FairLink doughter)
int GetTypeCount(int type)
void SetDecayVertex(TVector3 vertex)
void Print(std::ostream &out=std::cout)
Double_t GetDecayTime() const
void AddPIDDaughter(int pid)
TVector3 GetDecayVertex() const
Int_t GetNHits(TString branchName)
TVector2 GetDeltaMomentum(int type)
std::vector< int > GetDaughters()
void SetPidProbability(int branchType, PndPidProbability &value)