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.3 by lethuill, Thu Apr 16 16:50:21 2009 UTC

# Line 22 | Line 22 | public:
22                  ,ndof_(-1.)
23                  ,ntracks_(-1)
24                  ,higherTrackPt_(-1.)
25 <                ,scalarEt_(-1.)
25 >                ,scalarSumPt_(-1.)
26 >                ,recoIndex_(-1)
27                  {;}
28                          
29          TRootVertex(const TRootVertex& vertex) :
# Line 32 | Line 33 | public:
33                  ,ndof_(vertex.ndof_)
34                  ,ntracks_(vertex.ntracks_)
35                  ,higherTrackPt_(vertex.higherTrackPt_)
36 <                ,scalarEt_(vertex.scalarEt_)
36 >                ,scalarSumPt_(vertex.scalarSumPt_)
37 >                ,recoIndex_(vertex.recoIndex_)
38                  {;}
39          
40          TRootVertex(Double_t vx, Double_t vy, Double_t vz) :
# Line 42 | Line 44 | public:
44                  ,ndof_(-1.)
45                  ,ntracks_(-1)
46                  ,higherTrackPt_(-1.)
47 <                ,scalarEt_(-1.)
47 >                ,scalarSumPt_(-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 52 | Line 55 | public:
55                  ,ndof_(-1.)
56                  ,ntracks_(-1)
57                  ,higherTrackPt_(-1.)
58 <                ,scalarEt_(-1.)
58 >                ,scalarSumPt_(-1.)
59 >                ,recoIndex_(-1)
60                  {;}
61          
62          
# Line 63 | Line 67 | public:
67                  ,ndof_(-1.)
68                  ,ntracks_(-1)
69                  ,higherTrackPt_(-1.)
70 <                ,scalarEt_(-1.)
70 >                ,scalarSumPt_(-1.)
71 >                ,recoIndex_(-1)
72                  {;}
73          
74          TRootVertex( const TVector3 &vertex, const TVector3 &vertex_error) :
# Line 73 | Line 78 | public:
78                  ,ndof_(-1.)
79                  ,ntracks_(-1)
80                  ,higherTrackPt_(-1.)
81 <                ,scalarEt_(-1.)
81 >                ,scalarSumPt_(-1.)
82 >                ,recoIndex_(-1)
83                  {;}
84                          
85          ~TRootVertex() {;}
# Line 87 | Line 93 | public:
93          Float_t ndof() const { return ndof_;}
94          Float_t ntracks() const { return ntracks_;}
95          Float_t higherTrackPt() const { return higherTrackPt_;}
96 <        Float_t scalarEt() const { return scalarEt_;}
96 >        Float_t scalarSumPt() const { return scalarSumPt_;}
97 >        Int_t recoIndex() const { return recoIndex_;}
98  
99          TString typeName() const { return "TRootVertex"; }
100  
# Line 99 | Line 106 | public:
106          void setNdof(Float_t ndof) { ndof_ = ndof; }
107          void setNtracks(Float_t ntracks) { ntracks_ = ntracks; }
108          void setHigherTrackPt(Float_t higherTrackPt) { higherTrackPt_ = higherTrackPt; }
109 <        void setScalarEt(Float_t scalarEt) { scalarEt_ = scalarEt; }
109 >        void setScalarSumPt(Float_t scalarSumPt) { scalarSumPt_ = scalarSumPt; }
110 >        void setRecoIndex(Int_t recoIndex) { recoIndex_ = recoIndex; }
111  
112  
113          friend std::ostream& operator<< (std::ostream& stream, const TRootVertex& vertex) {
114                  stream << "TRootVertex - (x,y,z)=("<< setw(9) << vertex.x() <<","<< setw(9) << vertex.y() <<","<< setw(9) << vertex.z() << ")"
115                                  << " error(dx,dy,dz)=("<< setw(11) << vertex.xerr() <<","<< setw(11) << vertex.yerr() <<","<< setw(11) << vertex.zerr() << ")"
116                                  << "  chi2="<< setw(8) << vertex.chi2() <<"  ndof="<< setw(6) << vertex.ndof() <<"  nTracks="<< setw(4) << vertex.ntracks()
117 <                                << "  higherTrackPt="<< setw(7) << vertex.higherTrackPt() <<"  scalarEt="<< setw(7) << vertex.scalarEt();
117 >                                << "  higherTrackPt="<< setw(7) << vertex.higherTrackPt() <<"  scalarSumPt="<< setw(7) << vertex.scalarSumPt();
118                  return stream;
119          };
120  
# Line 118 | Line 126 | private:
126          Float_t ndof_;
127          Float_t ntracks_;
128          Float_t higherTrackPt_;
129 <        Float_t scalarEt_;
129 >        Float_t scalarSumPt_;
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