ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/Track.h
(Generate patch)

Comparing UserCode/MitAna/DataTree/interface/Track.h (file contents):
Revision 1.18 by loizides, Wed Sep 17 04:16:25 2008 UTC vs.
Revision 1.48 by bendavid, Tue Mar 23 16:52:46 2010 UTC

# Line 19 | Line 19
19   // There is a one to one mapping between bits and tracker layers, where layers are enumerated
20   // seperately in the PXB, PXF, TIB, TID, TOB, TEC and r-phi and stereo modules are treated as
21   // seperate layers in those detectors which have them
22 < // (TIB L1,L2, TID L1,L2, TOB L1,L2, TEC L1,L2,L5).
22 > // (TIB L1,L2, TID L1,L2,L3, TOB L1,L2, TEC L1,L2,L3,L4,L5,L6,L7,L8,L9).
23   //
24   // A bit value of 1 indicates a hit in the corresponding layer, and 0 indicates no hit.
25   //
# Line 43 | Line 43
43   // Bit 13: TID L2 r-phi
44   // Bit 14: TID L2 stereo
45   // Bit 15: TID L3 r-phi
46 < // Bit 16: TOB L1 r-phi
47 < // Bit 17: TOB L1 stereo
48 < // Bit 18: TOB L2 r-phi
49 < // Bit 19: TOB L2 stereo
50 < // Bit 20: TOB L3 r-phi
51 < // Bit 21: TOB L4 r-phi
52 < // Bit 22: TOB L5 r-phi
53 < // Bit 23: TOB L6 r-phi
54 < // Bit 24: TEC L1 r-phi
55 < // Bit 25: TEC L1 stereo
56 < // Bit 26: TEC L2 r-phi
57 < // Bit 27: TEC L2 stereo
58 < // Bit 28: TEC L3 r-phi
59 < // Bit 29: TEC L4 r-phi
60 < // Bit 30: TEC L5 r-phi
61 < // Bit 31: TEC L5 stereo
62 < // Bit 32: TEC L6 r-phi
63 < // Bit 33: TEC L7 r-phi
64 < // Bit 34: TEC L8 r-phi
65 < // Bit 35: TEC L9 r-phi
46 > // Bit 16: TID L3 stereo
47 > // Bit 17: TOB L1 r-phi
48 > // Bit 18: TOB L1 stereo
49 > // Bit 19: TOB L2 r-phi
50 > // Bit 20: TOB L2 stereo
51 > // Bit 21: TOB L3 r-phi
52 > // Bit 22: TOB L4 r-phi
53 > // Bit 23: TOB L5 r-phi
54 > // Bit 24: TOB L6 r-phi
55 > // Bit 25: TEC L1 r-phi
56 > // Bit 26: TEC L1 stereo
57 > // Bit 27: TEC L2 r-phi
58 > // Bit 28: TEC L2 stereo
59 > // Bit 29: TEC L3 r-phi
60 > // Bit 30: TEC L3 stereo
61 > // Bit 31: TEC L4 r-phi
62 > // Bit 32: TEC L4 stereo
63 > // Bit 33: TEC L5 r-phi
64 > // Bit 34: TEC L5 stereo
65 > // Bit 35: TEC L6 r-phi
66 > // Bit 36: TEC L6 stereo
67 > // Bit 37: TEC L7 r-phi
68 > // Bit 38: TEC L7 stereo
69 > // Bit 39: TEC L8 r-phi
70 > // Bit 40: TEC L8 stereo
71 > // Bit 41: TEC L9 r-phi
72 > // Bit 42: TEC L9 stereo
73   //
74   // Authors: C.Loizides, J.Bendavid, C.Paus
75   //--------------------------------------------------------------------------------------------------
# Line 70 | Line 77
77   #ifndef MITANA_DATATREE_TRACK_H
78   #define MITANA_DATATREE_TRACK_H
79  
80 + #include "MitAna/DataCont/interface/BitMask.h"
81 + #include "MitAna/DataTree/interface/TrackQuality.h"
82 + #include "MitAna/DataTree/interface/BaseVertex.h"
83   #include "MitAna/DataTree/interface/DataObject.h"
84   #include "MitAna/DataTree/interface/MCParticle.h"
85 < #include "MitAna/DataTree/interface/BitMask.h"
76 < #include "MitAna/DataTree/interface/Types.h"
85 > #include "MitAna/DataTree/interface/SuperCluster.h"
86  
87   namespace mithep
88   {
# Line 97 | Line 106 | namespace mithep
106          TID2,
107          TID2S,
108          TID3,
109 +        TID3S,
110          TOB1,
111          TOB1S,
112          TOB2,
# Line 110 | Line 120 | namespace mithep
120          TEC2,
121          TEC2S,
122          TEC3,
123 +        TEC3S,
124          TEC4,
125 +        TEC4S,
126          TEC5,
127          TEC5S,
128          TEC6,
129 +        TEC6S,
130          TEC7,
131 +        TEC7S,
132          TEC8,
133 <        TEC9
133 >        TEC8S,
134 >        TEC9,
135 >        TEC9S
136        };
137  
138 <      Track() : fQOverP(0), fQOverPErr(0), fLambda(0), fLambdaErr(0),
139 <                fPhi0(0), fPhi0Err(0), fDxy(0), fDxyErr(0), fDsz(0), fDszErr(0),
140 <                fChi2(0), fNdof(0) {}
138 >      enum ETrackAlgorithm { //taken from DataFormats/TrackReco/interface/TrackBase.h
139 >        undefAlgorithm=0,
140 >        ctf=1,
141 >        rs=2,
142 >        cosmics=3,
143 >        iter0=4,
144 >        iter1=5,
145 >        iter2=6,
146 >        iter3=7,
147 >        iter4=8,
148 >        iter5=9,
149 >        iter6=10,
150 >        iter7=11,
151 >        iter8=12,
152 >        iter9=13,
153 >        iter10=14,
154 >        outInEcalSeededConv=15,
155 >        inOutEcalSeededConv=16,
156 >        nuclInter=17,
157 >        standAloneMuon=18,
158 >        globalMuon=19,
159 >        cosmicStandAloneMuon=20,
160 >        cosmicGlobalMuon=21,
161 >        iter1LargeD0=22,
162 >        iter2LargeD0=23,
163 >        iter3LargeD0=24,
164 >        iter4LargeD0=25,
165 >        iter5LargeD0=26,
166 >        bTagGhostTracks=27,
167 >        beamhalo=28,
168 >        algoSize=29
169 >      };
170 >
171 >
172 >      Track() : fAlgo(undefAlgorithm), fIsGsf(0), fQOverP(0), fQOverPErr(0),
173 >                fLambda(0), fLambdaErr(0), fPhi0(0), fPhi0Err(0),
174 >                fDxy(0), fDxyErr(0), fDsz(0), fDszErr(0), fChi2(0),
175 >                fNdof(0), fEtaEcal(0), fPhiEcal(0) {}
176        Track(Double_t qOverP, Double_t lambda, Double_t phi0, Double_t dxy, Double_t dsz) :
177 <                fQOverP(qOverP), fQOverPErr(0), fLambda(lambda), fLambdaErr(0),
178 <                fPhi0(phi0), fPhi0Err(0), fDxy(dxy), fDxyErr(0), fDsz(dsz), fDszErr(0),
179 <                fChi2(0), fNdof(0) {}
177 >                fAlgo(undefAlgorithm), fIsGsf(0), fQOverP(qOverP), fQOverPErr(0),
178 >                fLambda(lambda), fLambdaErr(0), fPhi0(phi0), fPhi0Err(0),
179 >                fDxy(dxy), fDxyErr(0), fDsz(dsz), fDszErr(0), fChi2(0),
180 >                fNdof(0), fEtaEcal(0), fPhiEcal(0) {}
181        ~Track() {}
182  
183 <      Int_t              Charge()         const { return (fQOverP>0) ? 1 : -1; }
184 <      Double_t           Chi2()           const { return fChi2; }
185 <      void               ClearHit(EHitLayer l)  { fHits.ClearBit(l); }
186 <      Double_t           D0()             const { return -fDxy; }
187 <      Double_t           D0Err()          const { return fDxyErr; }
188 <      Double_t           Dsz()            const { return fDsz; }
189 <      Double_t           DszErr()         const { return fDszErr; }
190 <      Double_t           Dxy()            const { return fDxy; }
191 <      Double_t           DxyErr()         const { return fDxyErr; }
192 <      Double_t           E(Double_t m)    const { return TMath::Sqrt(E2(m)); }
193 <      Double_t           E2(Double_t m)   const { return P2()+m*m; }
194 <      Bool_t             Hit(EHitLayer l) const { return fHits.TestBit(l); }
195 <      Double_t           Lambda()         const { return fLambda; }
196 <      Double_t           LambdaErr()      const { return fLambdaErr; }
197 <      const MCParticle  *MCPart()         const;
198 <      ThreeVector        Mom()            const { return ThreeVector(Px(),Py(),Pz()); }
199 <      FourVector         Mom4(Double_t m) const { return FourVector(Px(),Py(),Pz(),E(m)); }
200 <      UInt_t             Ndof()           const { return fNdof; }
201 <      UInt_t             NHits()          const { return fHits.NBitsSet(); }
202 <      Double_t           P2()             const { return P()*P(); }
203 <      Double_t           P()              const { return TMath::Abs(1./fQOverP); }
204 <      Double_t           Phi()            const { return fPhi0; }
205 <      Double_t           Phi0()           const { return fPhi0; }
206 <      Double_t           Phi0Err()        const { return fPhi0Err; }
207 <      Double_t           Pt()             const { return TMath::Abs(TMath::Cos(fLambda)/fQOverP); }
208 <      Double_t           Px()             const { return Pt()*TMath::Cos(fPhi0); }      
209 <      Double_t           Py()             const { return Pt()*TMath::Sin(fPhi0); }
210 <      Double_t           Pz()             const { return P()*TMath::Sin(fLambda); }
211 <      Double_t           QOverP()         const { return fQOverP; }
212 <      Double_t           QOverPErr()      const { return fQOverPErr; }
213 <      Double_t           Theta()          const { return (TMath::PiOver2() - fLambda); }
214 <      Double_t           Z0()             const { return fDsz/TMath::Cos(fLambda); }
215 <      void               SetChi2(Double_t chi2) { fChi2 = chi2; }
216 <      void               SetErrors(Double_t qOverPErr, Double_t lambdaErr, Double_t phi0Err,
217 <                                   Double_t dXyErr, Double_t dSzErr);
218 <      void               SetHelix (Double_t qOverP, Double_t lambda, Double_t phi0,
219 <                                   Double_t dXy, Double_t dSz);
220 <      void               SetHit(EHitLayer l)      { fHits.SetBit(l); }
221 <      void               SetNdof(UInt_t dof)      { fNdof = dof; }
222 <      void               SetMCPart(MCParticle *p) { fMCParticleRef = p; }
183 >      ETrackAlgorithm      Algo()           const { return fAlgo;                 }
184 >      Int_t                Charge()         const { return (fQOverP>0) ? 1 : -1;  }
185 >      Double_t             Chi2()           const { return fChi2;                 }
186 >      void                 ClearHit(EHitLayer l)  { fHits.ClearBit(l);            }
187 >      Double_t             D0()             const { return -fDxy;                 }
188 >      Double_t             D0Corrected(const BaseVertex &iVertex) const;
189 >      Double_t             D0Err()          const { return fDxyErr;               }
190 >      Double_t             Dsz()            const { return fDsz;                  }
191 >      Double_t             DszErr()         const { return fDszErr;               }
192 >      Double_t             Dxy()            const { return fDxy;                  }
193 >      Double_t             DxyErr()         const { return fDxyErr;               }
194 >      Double_t             E(Double_t m)    const { return TMath::Sqrt(E2(m));    }
195 >      Double_t             E2(Double_t m)   const { return P2()+m*m;              }
196 >      Double_t             Eta()            const { return Mom().Eta();           }
197 >      Double_t             EtaEcal()        const { return fEtaEcal;              }
198 >      Bool_t               Hit(EHitLayer l) const { return fHits.TestBit(l);      }
199 >      const BitMask48     &Hits()           const { return fHits;                 }
200 >      const BitMask48     &MissingHits()    const { return fMissingHits;          }
201 >      const BitMask48     &ExpectedHitsInner() const { return fExpectedHitsInner; }
202 >      const BitMask48     &ExpectedHitsOuter() const { return fExpectedHitsOuter; }
203 >      Bool_t               IsGsf()          const { return fIsGsf;                }
204 >      Double_t             Lambda()         const { return fLambda;               }
205 >      Double_t             LambdaErr()      const { return fLambdaErr;            }
206 >      const MCParticle    *MCPart()         const { return fMCParticleRef.Obj();  }
207 >      const ThreeVectorC  &Mom()            const;
208 >      FourVectorM          Mom4(Double_t m) const { return FourVectorM(Pt(),Eta(),Phi(),m); }
209 >      UShort_t             Ndof()           const { return fNdof;                              }
210 >      UInt_t               NHits()          const { return fHits.NBitsSet();                   }
211 >      UInt_t               NMissingHits()   const { return fMissingHits.NBitsSet();            }
212 >      UInt_t               NExpectedHitsInner() const { return fExpectedHitsInner.NBitsSet();  }
213 >      UInt_t               NExpectedHitsOuter() const { return fExpectedHitsOuter.NBitsSet();  }
214 >      UInt_t               NStereoHits()    const { return StereoHits().NBitsSet();            }
215 >      UInt_t               NPixelHits()     const { return PixelHits().NBitsSet();             }
216 >      EObjType             ObjType()        const { return kTrack;                             }    
217 >      Double_t             P2()             const { return 1./fQOverP/fQOverP;                 }
218 >      Double_t             P()              const { return TMath::Abs(1./fQOverP);             }
219 >      Double_t             Phi()            const { return fPhi0;                              }
220 >      Double_t             Phi0()           const { return fPhi0;                              }
221 >      Double_t             Phi0Err()        const { return fPhi0Err;                           }
222 >      Double_t             PhiEcal()        const { return fPhiEcal;                           }
223 >      Double_t             Prob()           const { return TMath::Prob(fChi2,fNdof);           }
224 >      Double_t             Pt()             const { return Mom().Rho();                        }
225 >      Double_t             Px()             const { return Mom().X();                          }
226 >      Double_t             Py()             const { return Mom().Y();                          }
227 >      Double_t             Pz()             const { return Mom().Z();                          }
228 >      Double_t             QOverP()         const { return fQOverP;                            }
229 >      Double_t             QOverPErr()      const { return fQOverPErr;                         }
230 >      Double_t             RChi2()          const { return fChi2/(Double_t)fNdof; }
231 >      Double_t             Theta()          const { return (TMath::PiOver2() - fLambda);       }
232 >      const SuperCluster  *SCluster()       const { return fSuperClusterRef.Obj();             }
233 >      const BitMask48      PixelHits()      const { return (fHits & PixelLayers());            }
234 >      const TrackQuality  &Quality()        const { return fQuality;                           }
235 >      TrackQuality        &Quality()              { return fQuality;                           }
236 >      const BitMask48      StereoHits()     const { return (fHits & StereoLayers());           }
237 >      void                 SetAlgo(ETrackAlgorithm e)          { fAlgo = e;                    }
238 >      void                 SetChi2(Double_t chi2)              { fChi2 = chi2;                 }
239 >      void                 SetErrors(Double_t qOverPErr, Double_t lambdaErr, Double_t phi0Err,
240 >                                     Double_t dXyErr, Double_t dSzErr);
241 >      void                 SetEtaEcal(Double_t eta)            { fEtaEcal = eta;               }
242 >      void                 SetHelix (Double_t qOverP, Double_t lambda, Double_t phi0,
243 >                                     Double_t dXy, Double_t dSz);
244 >      void                 SetHit(EHitLayer l)                 { fHits.SetBit(l);              }
245 >      void                 SetHits(const BitMask48 &hits)      { fHits = hits;                 }
246 >      void                 SetMissingHits(const BitMask48 &h)  { fMissingHits = h;             }
247 >      void                 SetExpectedHitsInner(const BitMask48 &h) { fExpectedHitsInner = h;  }
248 >      void                 SetExpectedHitsOuter(const BitMask48 &h) { fExpectedHitsInner = h;  }
249 >      void                 SetIsGsf(Bool_t b)                  { fIsGsf = b;                   }
250 >      void                 SetNdof(UShort_t dof)               { fNdof = dof;                  }
251 >      void                 SetMCPart(const MCParticle *p)      { fMCParticleRef = p;           }
252 >      void                 SetPhiEcal(Double_t phi)            { fPhiEcal = phi;               }
253 >      void                 SetSCluster(const SuperCluster* sc) { fSuperClusterRef = sc;        }
254 >      Double_t             Z0()             const { return fDsz/TMath::Cos(fLambda);           }
255 >
256 >      
257 >      static const BitMask48      StereoLayers();
258 >      static const BitMask48      PixelLayers();
259  
260      protected:
261 <      BitMask64          fHits;                //storage for mostly hit information
262 <      Double_t           fQOverP;              //signed inverse of momentum [1/GeV]
263 <      Double_t           fQOverPErr;           //error of q/p
264 <      Double_t           fLambda;              //pi/2 - polar angle at the reference point
265 <      Double_t           fLambdaErr;           //error of lambda
266 <      Double_t           fPhi0;                //azimuth angle at the given point
267 <      Double_t           fPhi0Err;             //error of azimuthal angle
268 <      Double_t           fDxy;                 //transverse distance to reference point [cm]
269 <      Double_t           fDxyErr;              //error of transverse distance
270 <      Double_t           fDsz;                 //longitudinal distance to reference point [cm]
271 <      Double_t           fDszErr;              //error of longitudinal distance
272 <      Double_t           fChi2;                //chi squared of track fit
273 <      UInt_t             fNdof;                //degree-of-freedom of track fit
274 <      TRef               fMCParticleRef;       //reference to sim particle (for monte carlo)
261 >      void                 ClearMom()    const { fCacheMomFlag.ClearCache(); }
262 >      void                 GetMom()      const;
263 >
264 >      BitMask48            fHits;                //storage for mostly hit information
265 >      BitMask48            fMissingHits;         //missing hits in crossed good modules
266 >      BitMask48            fExpectedHitsInner;   //expected hits before first hit
267 >      BitMask48            fExpectedHitsOuter;   //expected hits after last hit
268 >      ETrackAlgorithm      fAlgo;                //track algorithm
269 >      TrackQuality         fQuality;             //track quality
270 >      Bool_t               fIsGsf;               //flag to identify gsf tracks
271 >      Double32_t           fQOverP;              //[0,0,14]signed inverse of momentum [1/GeV]
272 >      Double32_t           fQOverPErr;           //[0,0,14]error of q/p
273 >      Double32_t           fLambda;              //[0,0,14]pi/2 - polar angle at the reference point
274 >      Double32_t           fLambdaErr;           //[0,0,14]error of lambda
275 >      Double32_t           fPhi0;                //[0,0,14]azimuth angle at the given point
276 >      Double32_t           fPhi0Err;             //[0,0,14]error of azimuthal angle
277 >      Double32_t           fDxy;                 //[0,0,14]trans. distance to reference point [cm]
278 >      Double32_t           fDxyErr;              //[0,0,14]error of transverse distance
279 >      Double32_t           fDsz;                 //[0,0,14]long. distance to reference point [cm]
280 >      Double32_t           fDszErr;              //[0,0,14]error of longitudinal distance
281 >      Double32_t           fChi2;                //[0,0,12]chi squared of track fit
282 >      UShort_t             fNdof;                //degree-of-freedom of track fit
283 >      Double32_t           fEtaEcal;             //[0,0,12]eta of track at Ecal front face
284 >      Double32_t           fPhiEcal;             //[0,0,12]phi of track at Ecal front face
285 >      Ref<SuperCluster>    fSuperClusterRef;     //superCluster crossed by track
286 >      Ref<MCParticle>      fMCParticleRef;       //reference to sim particle (for monte carlo)
287 >      mutable CacheFlag    fCacheMomFlag;        //||cache validity flag for momentum
288 >      mutable ThreeVectorC fCachedMom;           //!cached momentum vector
289                
290 <    ClassDef(Track, 1) // Track class
290 >    ClassDef(Track, 4) // Track class
291    };
292   }
293  
294   //--------------------------------------------------------------------------------------------------
295 < inline
296 < void mithep::Track::SetHelix(Double_t qOverP, Double_t lambda, Double_t phi0,
297 <                                   Double_t dxy, Double_t dsz)
295 > inline void mithep::Track::GetMom() const
296 > {
297 >  // Compute three momentum.
298 >
299 >  Double_t pt = TMath::Abs(TMath::Cos(fLambda)/fQOverP);
300 >  Double_t eta = - TMath::Log(TMath::Tan(Theta()/2.));
301 >  fCachedMom.SetCoordinates(pt,eta,Phi());
302 > }
303 >
304 > //--------------------------------------------------------------------------------------------------
305 > inline const mithep::ThreeVectorC &mithep::Track::Mom() const
306 > {
307 >  // Return cached momentum value.
308 >
309 >  if (!fCacheMomFlag.IsValid()) {
310 >    GetMom();
311 >    fCacheMomFlag.SetValid();
312 >  }
313 >  return fCachedMom;
314 > }
315 >
316 > //--------------------------------------------------------------------------------------------------
317 > inline Double_t mithep::Track::D0Corrected(const BaseVertex &iVertex) const
318 > {
319 >  // Return corrected d0 with respect to primary vertex or beamspot.
320 >
321 >  Double_t lXM =  -TMath::Sin(Phi()) * D0();
322 >  Double_t lYM =   TMath::Cos(Phi()) * D0();
323 >  Double_t lDX = (lXM + iVertex.X());
324 >  Double_t lDY = (lYM + iVertex.Y());
325 >  Double_t d0Corr = (Px()*lDY - Py()*lDX)/Pt();
326 >  
327 >  return d0Corr;
328 > }
329 >
330 > //--------------------------------------------------------------------------------------------------
331 > inline void mithep::Track::SetHelix(Double_t qOverP, Double_t lambda, Double_t phi0,
332 >                                    Double_t dxy, Double_t dsz)
333   {
334    // Set helix parameters.
335  
# Line 201 | Line 338 | void mithep::Track::SetHelix(Double_t qO
338    fPhi0   = phi0;
339    fDxy    = dxy;
340    fDsz    = dsz;
341 +  ClearMom();
342   }
343  
344   //--------------------------------------------------------------------------------------------------
345 < inline
346 < void mithep::Track::SetErrors(Double_t qOverPErr, Double_t lambdaErr, Double_t phi0Err,
209 <                                   Double_t dxyErr, Double_t dszErr)
345 > inline void mithep::Track::SetErrors(Double_t qOverPErr, Double_t lambdaErr, Double_t phi0Err,
346 >                                     Double_t dxyErr, Double_t dszErr)
347   {
348    // Set helix errors.
349  
# Line 218 | Line 355 | void mithep::Track::SetErrors(Double_t q
355   }
356  
357   //--------------------------------------------------------------------------------------------------
358 < inline
359 < const mithep::MCParticle *mithep::Track::MCPart() const
358 > inline const mithep::BitMask48 mithep::Track::StereoLayers()
359 > {
360 >  // Build and return BitMask of stereo layers.
361 >
362 >  mithep::BitMask48 stereoLayers;
363 >  stereoLayers.SetBit(mithep::Track::TIB1S);
364 >  stereoLayers.SetBit(mithep::Track::TIB2S);
365 >  stereoLayers.SetBit(mithep::Track::TID1S);
366 >  stereoLayers.SetBit(mithep::Track::TID2S);
367 >  stereoLayers.SetBit(mithep::Track::TID3S);
368 >  stereoLayers.SetBit(mithep::Track::TOB1S);
369 >  stereoLayers.SetBit(mithep::Track::TOB2S);
370 >  stereoLayers.SetBit(mithep::Track::TEC1S);
371 >  stereoLayers.SetBit(mithep::Track::TEC2S);
372 >  stereoLayers.SetBit(mithep::Track::TEC3S);
373 >  stereoLayers.SetBit(mithep::Track::TEC4S);
374 >  stereoLayers.SetBit(mithep::Track::TEC5S);
375 >  stereoLayers.SetBit(mithep::Track::TEC6S);
376 >  stereoLayers.SetBit(mithep::Track::TEC7S);
377 >  stereoLayers.SetBit(mithep::Track::TEC8S);
378 >  stereoLayers.SetBit(mithep::Track::TEC9S);
379 >  return stereoLayers;
380 > }
381 >
382 > //--------------------------------------------------------------------------------------------------
383 > inline const mithep::BitMask48 mithep::Track::PixelLayers()
384   {
385 <  // Get reference to simulated particle.
385 >  // Build and return BitMask of stereo layers.
386  
387 <  return static_cast<const MCParticle*>(fMCParticleRef.GetObject());
387 >  mithep::BitMask48 pixelLayers;
388 >  pixelLayers.SetBit(mithep::Track::PXB1);
389 >  pixelLayers.SetBit(mithep::Track::PXB2);
390 >  pixelLayers.SetBit(mithep::Track::PXB3);
391 >  pixelLayers.SetBit(mithep::Track::PXF1);
392 >  pixelLayers.SetBit(mithep::Track::PXF2);
393 >  return pixelLayers;
394   }
395   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines