8 #ifndef CBMLITACCEPTANCEFUNCTION_H_
9 #define CBMLITACCEPTANCEFUNCTION_H_
15 #include "TClonesArray.h"
16 #include "TDatabasePDG.h"
17 #include "TMCProcess.h"
34 if (index < 0)
return false;
37 const TParticlePDG* particle =
38 TDatabasePDG::Instance()->GetParticle(mcTrack->
GetPdgCode());
39 if (particle == NULL)
return false;
40 return particle->Charge() < 0;
46 if (index < 0)
return false;
49 const TParticlePDG* particle =
50 TDatabasePDG::Instance()->GetParticle(mcTrack->
GetPdgCode());
51 if (particle == NULL)
return false;
52 return particle->Charge() > 0;
58 if (index < 0)
return false;
68 if (index < 0)
return false;
77 if (index < 0)
return false;
86 if (index < 0)
return false;
90 return (TMath::Abs(mcTrack->
GetPdgCode()) == 11)
97 if (index < 0)
return false;
101 return (TMath::Abs(mcTrack->
GetPdgCode()) == 13)
108 if (index < 0)
return false;
111 return TMath::Abs(mcTrack->
GetPdgCode()) == 11;
117 if (index < 0)
return false;
120 return TMath::Abs(mcTrack->
GetPdgCode()) == 13;
126 if (index < 0)
return false;
129 return (TMath::Abs(mcTrack->
GetPdgCode()) == 2212);
135 if (index < 0)
return false;
144 if (index < 0)
return false;
147 return (TMath::Abs(mcTrack->
GetPdgCode()) == 211);
153 if (index < 0)
return false;
162 if (index < 0)
return false;
171 if (index < 0)
return false;
174 return (TMath::Abs(mcTrack->
GetPdgCode()) == 321);
180 if (index < 0)
return false;
189 if (index < 0)
return false;
198 Int_t nofHitsInRing) {
205 Int_t nofHitsInRing) {
206 if (index < 0)
return false;
209 return (mcTrack->
GetMotherId() == -1) && (nofHitsInRing >= 15);
215 Int_t nofHitsInRing) {
216 if (index < 0)
return false;
228 Int_t nofHitsInRing) {
229 if (index < 0)
return false;
235 && (nofHitsInRing >= 15);
241 Int_t nofHitsInRing) {
242 if (index < 0)
return false;
245 return (TMath::Abs(mcTrack->
GetPdgCode()) == 211);
251 Int_t nofHitsInRing) {
252 if (index < 0)
return false;
255 return (TMath::Abs(mcTrack->
GetPdgCode()) == 211) && (nofHitsInRing >= 15);
259 const TClonesArray* stsMatches,
260 const TClonesArray* richMatches,
267 const TClonesArray* stsMatches,
268 const TClonesArray* richMatches,
274 if (stsInd == -1 || richInd == -1)
return false;
279 if (NULL == stsMatch || NULL == richMatch)
return false;
289 const TClonesArray* stsMatches,
290 const TClonesArray* richMatches,
293 globalTracks, stsMatches, richMatches, index);