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.44 by loizides, Mon Jul 20 04:57:27 2009 UTC vs.
Revision 1.45 by bendavid, Thu Dec 10 15:02:59 2009 UTC

# Line 205 | Line 205 | namespace mithep
205        UShort_t             Ndof()           const { return fNdof;                              }
206        UInt_t               NHits()          const { return fHits.NBitsSet();                   }
207        UInt_t               NStereoHits()    const { return StereoHits().NBitsSet();            }
208 +      UInt_t               NPixelHits()    const { return PixelHits().NBitsSet();             }
209        EObjType             ObjType()        const { return kTrack;                             }    
210        Double_t             P2()             const { return 1./fQOverP/fQOverP;                 }
211        Double_t             P()              const { return TMath::Abs(1./fQOverP);             }
# Line 222 | Line 223 | namespace mithep
223        Double_t             RChi2()          const { return fChi2/(Double_t)fNdof; }
224        Double_t             Theta()          const { return (TMath::PiOver2() - fLambda);       }
225        const SuperCluster  *SCluster()       const { return fSuperClusterRef.Obj();             }
226 +      const BitMask48      PixelHits()      const { return (fHits & PixelLayers());            }
227        const BitMask48      StereoHits()     const { return (fHits & StereoLayers());           }
228        void                 SetAlgo(ETrackAlgorithm e)          { fAlgo = e;                    }
229        void                 SetChi2(Double_t chi2)              { fChi2 = chi2;                 }
# Line 239 | Line 241 | namespace mithep
241        void                 SetSCluster(const SuperCluster* sc) { fSuperClusterRef = sc;        }
242        Double_t             Z0()             const { return fDsz/TMath::Cos(fLambda);           }
243  
244 <      static
245 <      const BitMask48      StereoLayers();
244 >      
245 >      static const BitMask48      StereoLayers();
246 >      static const BitMask48      PixelLayers();
247  
248      protected:
249        void                 ClearMom()    const { fCacheMomFlag.ClearCache(); }
# Line 359 | Line 362 | inline const mithep::BitMask48 mithep::T
362    stereoLayers.SetBit(mithep::Track::TEC9S);
363    return stereoLayers;
364   }
365 +
366 + //--------------------------------------------------------------------------------------------------
367 + inline const mithep::BitMask48 mithep::Track::PixelLayers()
368 + {
369 +  // Build and return BitMask of stereo layers.
370 +
371 +  mithep::BitMask48 pixelLayers;
372 +  pixelLayers.SetBit(mithep::Track::PXB1);
373 +  pixelLayers.SetBit(mithep::Track::PXB2);
374 +  pixelLayers.SetBit(mithep::Track::PXB3);
375 +  pixelLayers.SetBit(mithep::Track::PXF1);
376 +  pixelLayers.SetBit(mithep::Track::PXF2);
377 +  return pixelLayers;
378 + }
379   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines