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.22 by bendavid, Mon Oct 13 10:34:00 2008 UTC

# Line 130 | Line 130 | namespace mithep
130  
131        Int_t              Charge()         const { return (fQOverP>0) ? 1 : -1; }
132        Double_t           Chi2()           const { return fChi2; }
133 +      Double_t           RChi2()          const { return fChi2/(Double_t)fNdof; }
134        void               ClearHit(EHitLayer l)  { fHits.ClearBit(l); }
135        Double_t           D0()             const { return -fDxy; }
136        Double_t           D0Err()          const { return fDxyErr; }
# Line 139 | Line 140 | namespace mithep
140        Double_t           DxyErr()         const { return fDxyErr; }
141        Double_t           E(Double_t m)    const { return TMath::Sqrt(E2(m)); }
142        Double_t           E2(Double_t m)   const { return P2()+m*m; }
143 +      Double_t           Eta()            const { return Mom().Eta(); }
144        Bool_t             Hit(EHitLayer l) const { return fHits.TestBit(l); }
145 +      const BitMask64   &Hits()           const { return fHits; }
146        Double_t           Lambda()         const { return fLambda; }
147        Double_t           LambdaErr()      const { return fLambdaErr; }
148        const MCParticle  *MCPart()         const;
# Line 152 | Line 155 | namespace mithep
155        Double_t           Phi()            const { return fPhi0; }
156        Double_t           Phi0()           const { return fPhi0; }
157        Double_t           Phi0Err()        const { return fPhi0Err; }
158 +      Double_t           Prob()           const { return TMath::Prob(fChi2,fNdof); }
159        Double_t           Pt()             const { return TMath::Abs(TMath::Cos(fLambda)/fQOverP); }
160        Double_t           Px()             const { return Pt()*TMath::Cos(fPhi0); }      
161        Double_t           Py()             const { return Pt()*TMath::Sin(fPhi0); }
# Line 166 | Line 170 | namespace mithep
170        void               SetHelix (Double_t qOverP, Double_t lambda, Double_t phi0,
171                                     Double_t dXy, Double_t dSz);
172        void               SetHit(EHitLayer l)      { fHits.SetBit(l); }
173 +      void               SetHits(BitMask64 &hits) { fHits = hits; }
174        void               SetNdof(UInt_t dof)      { fNdof = dof; }
175        void               SetMCPart(MCParticle *p) { fMCParticleRef = p; }
176  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines