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

Comparing UserCode/Morgan/interface/TRootVertex.h (file contents):
Revision 1.1 by lethuill, Tue Apr 14 16:45:42 2009 UTC vs.
Revision 1.2 by lethuill, Thu Apr 16 14:49:13 2009 UTC

# Line 23 | Line 23 | public:
23                  ,ntracks_(-1)
24                  ,higherTrackPt_(-1.)
25                  ,scalarEt_(-1.)
26 +                ,recoIndex_(-1)
27                  {;}
28                          
29          TRootVertex(const TRootVertex& vertex) :
# Line 33 | Line 34 | public:
34                  ,ntracks_(vertex.ntracks_)
35                  ,higherTrackPt_(vertex.higherTrackPt_)
36                  ,scalarEt_(vertex.scalarEt_)
37 +                ,recoIndex_(vertex.recoIndex_)
38                  {;}
39          
40          TRootVertex(Double_t vx, Double_t vy, Double_t vz) :
# Line 43 | Line 45 | public:
45                  ,ntracks_(-1)
46                  ,higherTrackPt_(-1.)
47                  ,scalarEt_(-1.)
48 +                ,recoIndex_(-1)
49                  {;}
50          
51          TRootVertex(Double_t vx, Double_t vy, Double_t vz, Double_t evx, Double_t evy, Double_t evz) :
# Line 53 | Line 56 | public:
56                  ,ntracks_(-1)
57                  ,higherTrackPt_(-1.)
58                  ,scalarEt_(-1.)
59 +                ,recoIndex_(-1)
60                  {;}
61          
62          
# Line 64 | Line 68 | public:
68                  ,ntracks_(-1)
69                  ,higherTrackPt_(-1.)
70                  ,scalarEt_(-1.)
71 +                ,recoIndex_(-1)
72                  {;}
73          
74          TRootVertex( const TVector3 &vertex, const TVector3 &vertex_error) :
# Line 74 | Line 79 | public:
79                  ,ntracks_(-1)
80                  ,higherTrackPt_(-1.)
81                  ,scalarEt_(-1.)
82 +                ,recoIndex_(-1)
83                  {;}
84                          
85          ~TRootVertex() {;}
# Line 88 | Line 94 | public:
94          Float_t ntracks() const { return ntracks_;}
95          Float_t higherTrackPt() const { return higherTrackPt_;}
96          Float_t scalarEt() const { return scalarEt_;}
97 +        Int_t recoIndex() const { return recoIndex_;}
98  
99          TString typeName() const { return "TRootVertex"; }
100  
# Line 100 | Line 107 | public:
107          void setNtracks(Float_t ntracks) { ntracks_ = ntracks; }
108          void setHigherTrackPt(Float_t higherTrackPt) { higherTrackPt_ = higherTrackPt; }
109          void setScalarEt(Float_t scalarEt) { scalarEt_ = scalarEt; }
110 +        void setRecoIndex(Int_t recoIndex) { recoIndex_ = recoIndex; }
111  
112  
113          friend std::ostream& operator<< (std::ostream& stream, const TRootVertex& vertex) {
# Line 119 | Line 127 | private:
127          Float_t ntracks_;
128          Float_t higherTrackPt_;
129          Float_t scalarEt_;
130 +        Int_t recoIndex_; // corresponding index in std::vector< reco::Vertex > collection
131          
132 <        ClassDef (TRootVertex,1);
132 >        ClassDef (TRootVertex,2);
133   };
134  
135   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines