10 #ifndef ROOT_TParticlePDG
11 #include "TParticlePDG.h"
13 #ifndef ROOT_TDatabasePDG
14 #include "TDatabasePDG.h"
40 Double_t py, Double_t pz, Double_t
x, Double_t
y,
41 Double_t
z, Double_t
t, Int_t nPoints = 0)
54 if (nPoints >= 0)
fNPoints = nPoints;
64 fPdgCode(track.fPdgCode),
65 fMotherId(track.fMotherId),
69 fStartX(track.fStartX),
70 fStartY(track.fStartY),
71 fStartZ(track.fStartZ),
72 fStartT(track.fStartT),
73 fNPoints(track.fNPoints)
84 fPdgCode(part->GetPdgCode()),
85 fMotherId(part->GetMother(0)),
92 fStartT(part->
T()*1e09),
109 <<
", Type " <<
fPdgCode <<
", momentum (" <<
fPx <<
", "
127 if ( TDatabasePDG::Instance() ) {
129 if ( particle )
return particle->Mass();
142 Double_t
y = 0.5 * TMath::Log( (e+
fPz) / (e-
fPz) );
153 else if ( detId ==
kMVD )
return ( (
fNPoints & ( 7 << 1) ) >> 1);
154 else if ( detId ==
kSTS )
return ( (
fNPoints & (31 << 4) ) >> 4);
155 else if ( detId ==
kRICH )
return ( (
fNPoints & ( 1 << 9) ) >> 9);
156 else if ( detId ==
kMUCH )
return ( (
fNPoints & (31 << 10) ) >> 10);
157 else if ( detId ==
kTRD )
return ( (
fNPoints & (31 << 15) ) >> 15);
158 else if ( detId ==
kTOF )
return ( (
fNPoints & (15 << 20) ) >> 20);
159 else if ( detId ==
kECAL )
return ( (
fNPoints & ( 1 << 24) ) >> 24);
160 else if ( detId ==
kPSD )
return ( (
fNPoints & ( 1 << 25) ) >> 25);
162 LOG(
ERROR) <<
"GetNPoints: Unknown detector ID "
174 if ( iDet ==
kREF ) {
175 if ( nPoints < 0 ) nPoints = 0;
176 else if ( nPoints > 1 ) nPoints = 1;
180 else if ( iDet ==
kMVD ) {
181 if ( nPoints < 0 ) nPoints = 0;
182 else if ( nPoints > 7 ) nPoints = 7;
186 else if ( iDet ==
kSTS ) {
187 if ( nPoints < 0 ) nPoints = 0;
188 else if ( nPoints > 31 ) nPoints = 31;
192 else if ( iDet ==
kRICH ) {
193 if ( nPoints < 0 ) nPoints = 0;
194 else if ( nPoints > 1 ) nPoints = 1;
198 else if ( iDet ==
kMUCH ) {
199 if ( nPoints < 0 ) nPoints = 0;
200 else if ( nPoints > 31 ) nPoints = 31;
204 else if ( iDet ==
kTRD ) {
205 if ( nPoints < 0 ) nPoints = 0;
206 else if ( nPoints > 31 ) nPoints = 31;
210 else if ( iDet ==
kTOF ) {
211 if ( nPoints < 0 ) nPoints = 0;
212 else if ( nPoints > 15 ) nPoints = 15;
216 else if ( iDet ==
kECAL ) {
217 if ( nPoints < 0 ) nPoints = 0;
218 else if ( nPoints > 1 ) nPoints = 1;
222 else if ( iDet ==
kPSD ) {
223 if ( nPoints < 0 ) nPoints = 0;
224 else if ( nPoints > 1 ) nPoints = 1;
228 else LOG(
ERROR) <<
"Unknown detector ID "