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

Comparing UserCode/Morgan/interface/TRootEvent.h (file contents):
Revision 1.5 by lethuill, Thu Oct 30 16:25:33 2008 UTC vs.
Revision 1.7 by lethuill, Mon Dec 1 15:58:05 2008 UTC

# Line 29 | Line 29 | public:
29                          ,nBasicClusters_()
30                          ,nSuperClusters_()
31                          ,primaryVertex_(0)
32                        ,metCalo_()
32                          {;}
33  
34          ~TRootEvent() {;}
# Line 89 | Line 88 | public:
88          Double_t primaryVertex_y(unsigned i) const { return (primaryVertex_.size()>i ?  primaryVertex_.at(i).x() : 0. ); }
89          Double_t primaryVertex_z(unsigned i) const { return (primaryVertex_.size()>i ?  primaryVertex_.at(i).x() : 0. ); }
90          
92        // Missing Et as 3-vector
93        TVector3 metCaloVect() const { return metCalo_; }
94        // Missing Et magnitude
95        Double_t metCalo() const { return sqrt(metCalo_.Perp2()); }
96        
91          
92          void setNb(Int_t nb) { nb_ = nb; }
93          void setGlobalL1(Int_t passGlobalL1) { passGlobalL1_ = passGlobalL1; }
# Line 114 | Line 108 | public:
108                  
109          void addPrimaryVertex(TVector3 vertex) {  primaryVertex_.push_back(vertex); }
110          void clearPrimaryVertex(TVector3 vertex) {  primaryVertex_.clear(); }
117        void setMetCaloVect(TVector3 metCaloVect) { metCalo_ = metCaloVect; }
118        
111          /*
112          friend std::ostream& operator<< (std::ostream& stream, const TRootEvent& event) {
113                  stream << "Event #"<< event.nb() <<"  L1="<< event.trigL1() <<"  HLT="<< event.trigHLT()
114 <                        << "  Primary vertex x=" << event.primaryVertex_x() << "  y=" << event.primaryVertex_y() << "  z=" << event.primaryVertex_z()
123 <                        << "  CaloMET=" << event.metCalo() << endl;
114 >                        << "  Primary vertex x=" << event.primaryVertex_x() << "  y=" << event.primaryVertex_y() << "  z=" << event.primaryVertex_z();
115                  return stream;
116          };
117          */
# Line 140 | Line 131 | private:
131          map<Int_t,Int_t> nSuperClusters_;
132          std::vector<TVector3> primaryVertex_;
133  
134 <        TVector3 metCalo_;
144 <                
145 <        ClassDef (TRootEvent,2);
134 >        ClassDef (TRootEvent,1);
135   };
136  
137   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines