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

Comparing UserCode/MitAna/DataTree/interface/Vertex.h (file contents):
Revision 1.16 by mhchan, Fri Sep 23 15:38:32 2011 UTC vs.
Revision 1.18 by bendavid, Sun Oct 9 23:27:44 2011 UTC

# Line 27 | Line 27 | namespace mithep
27        Vertex(Double_t x, Double_t y, Double_t z, Double_t xErr, Double_t yErr, Double_t zErr) :
28          BaseVertex(x,y,z,xErr,yErr,zErr), fChi2(0), fIsValid(kFALSE), fNdof(0), fAdaptiveNdof(0), fNTracks(0) {}
29        Vertex(const ThreeVector &pos) :
30 <        BaseVertex(pos), fChi2(0), fNdof(0), fAdaptiveNdof(0), fNTracks(0) {}
30 >        BaseVertex(pos), fChi2(0), fIsValid(kFALSE), fNdof(0), fAdaptiveNdof(0), fNTracks(0) {}
31        
32        void                AddTrack(const Track *t, Double32_t wgt = -1) { fTracks.Add(t); fTrkWeights.Add(wgt); }
33        Double_t            Chi2()      const { return fChi2;                    }
# Line 45 | Line 45 | namespace mithep
45        void                SetNdof(Double_t nDof)     { fAdaptiveNdof = nDof;   }
46        void                SetNTracksFit(UInt_t n)    { fNTracks = n;           }
47        const Track        *Trk(UInt_t i) const        { return fTracks.At(i);   }
48 <      Double32_t          TrackWeight(const Track *t) const;
48 >      Double_t            TrackWeight(UInt_t i) const { return fTrkWeights.At(i); }
49 >      Double_t            TrackWeight(const Track *t) const;
50 >      const FArrDouble32 &GetTrkWeights() const { return fTrkWeights; }
51              
52      protected:
53        Double32_t          fChi2;     //[0,0,12]chi squared of conversion vertex fit
# Line 53 | Line 55 | namespace mithep
55        UShort_t            fNdof;     //number of degrees of freedom of conversion vertex fit
56        Double32_t          fAdaptiveNdof; //number of degrees of freedom of vertex fit (can be non-integer for weighted components)
57        UShort_t            fNTracks;  //number of tracks used for the fit
58 <      FArrDouble32        fTrkWeights; //track weights
58 >      FArrDouble32        fTrkWeights; //||array of track weights
59        RefArray<Track>     fTracks;   //tracks associated with the PV
60          
61      ClassDef(Vertex, 4) // Vertex class

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines