19 fStartX(0), fStartY(0), fStartZ(0), fStartT(0),
20 fPx(0), fPy(0), fPz(0), fE(0),
54 fPdgCode(track.fPdgCode),
55 fMotherID(track.fMotherID),
56 fSecondMotherID(track.fSecondMotherID),
57 fPoints(track.fPoints),
58 fStartX(track.fStartX), fStartY(track.fStartY), fStartZ(track.fStartZ), fStartT(track.fStartT),
59 fPx(track.fPx), fPy(track.fPy), fPz(track.fPz), fE(track.fE),
60 fGeneratorFlags(track.fGeneratorFlags)
69 fPdgCode(part->GetPdgCode()),
70 fMotherID(part->GetMother(0)),
71 fSecondMotherID(part->GetMother(1)),
75 fStartT(part->
T()*1e09),
121 if ( detId ==
kDRC )
return ( (
fPoints & (3 << 0) ) >> 0 );
122 else if ( detId ==
kMDT )
return ( (
fPoints & (3 << 2) ) >> 2 );
123 else if ( detId ==
kMVD )
return ( (
fPoints & (3 << 4) ) >> 4 );
124 else if ( detId ==
kRICH)
return ( (
fPoints & (3 << 6) ) >> 6 );
125 else if ( detId ==
kEMC )
return ( (
fPoints & (3 << 8) ) >> 8 );
126 else if ( detId ==
kSTT )
return ( (
fPoints & (3 << 10) ) >> 10 );
127 else if ( detId ==
kFTOF)
return ( (
fPoints & (3 << 12) ) >> 12 );
128 else if ( detId ==
kTOF )
return ( (
fPoints & (3 << 14) ) >> 14 );
129 else if ( detId ==
kGEM )
return ( (
fPoints & (3 << 16) ) >> 16 );
130 else if ( detId ==
kDSK )
return ( (
fPoints & (3 << 18) ) >> 18 );
131 else if ( detId ==
kHYP )
return ( (
fPoints & (3 << 20) ) >> 20 );
132 else if ( detId ==
kRPC )
return ( (
fPoints & (3 << 22) ) >> 22 );
133 else if ( detId ==
kLUMI)
return ( (
fPoints & (3 << 24) ) >> 24 );
134 else if ( detId ==
kHYPG)
return ( (
fPoints & (3 << 26) ) >> 26 );
135 else if ( detId ==
kFTS)
return ( (
fPoints & (3 << 28) ) >> 28 );
138 cout <<
"-E- PndMCTrack::GetNPoints: Unknown detector ID "
145 if ( iDet ==
kDRC ) {
146 if ( nPoints < 0 ) nPoints = 0;
147 else if ( nPoints > 3 ) nPoints = 3;
151 else if ( iDet ==
kMDT ) {
152 if ( nPoints < 0 ) nPoints = 0;
153 else if ( nPoints > 3 ) nPoints = 3;
157 else if ( iDet ==
kMVD ) {
158 if ( nPoints < 0 ) nPoints = 0;
159 else if ( nPoints > 3 ) nPoints = 3;
163 else if ( iDet ==
kRICH ) {
164 if ( nPoints < 0 ) nPoints = 0;
165 else if ( nPoints > 3 ) nPoints = 3;
169 else if ( iDet ==
kEMC ) {
170 if ( nPoints < 0 ) nPoints = 0;
171 else if ( nPoints > 3 ) nPoints = 3;
175 else if ( iDet ==
kSTT ) {
176 if ( nPoints < 0 ) nPoints = 0;
177 else if ( nPoints > 3 ) nPoints = 3;
181 else if ( iDet ==
kFTOF ) {
182 if ( nPoints < 0 ) nPoints = 0;
183 else if ( nPoints > 3 ) nPoints = 3;
187 else if ( iDet ==
kTOF ) {
188 if ( nPoints < 0 ) nPoints = 0;
189 else if ( nPoints > 3 ) nPoints = 3;
193 else if ( iDet ==
kGEM ) {
194 if ( nPoints < 0 ) nPoints = 0;
195 else if ( nPoints > 3 ) nPoints = 3;
198 else if ( iDet ==
kDSK ) {
199 if ( nPoints < 0 ) nPoints = 0;
200 else if ( nPoints > 3 ) nPoints = 3;
204 else if ( iDet ==
kHYP ) {
205 if ( nPoints < 0 ) nPoints = 0;
206 else if ( nPoints > 3 ) nPoints = 3;
209 else if ( iDet ==
kRPC ) {
210 if ( nPoints < 0 ) nPoints = 0;
211 else if ( nPoints > 3 ) nPoints = 3;
215 else if ( iDet ==
kLUMI ) {
216 if ( nPoints < 0 ) nPoints = 0;
217 else if ( nPoints > 3 ) nPoints = 3;
221 else if ( iDet ==
kHYPG ) {
222 if ( nPoints < 0 ) nPoints = 0;
223 else if ( nPoints > 3 ) nPoints = 3;
227 else if ( iDet ==
kFTS ) {
228 if ( nPoints < 0 ) nPoints = 0;
229 else if ( nPoints > 3 ) nPoints = 3;
235 else cout <<
"-E- PndMCTrack::SetNPoints: Unknown detector ID "