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.3 by mlethuil, Mon Jun 23 13:31:11 2008 UTC vs.
Revision 1.7 by lethuill, Mon Dec 1 15:58:05 2008 UTC

# Line 3 | Line 3
3  
4   #include <string>
5   #include <iostream>
6 + #include <vector>
7 + #include <map>
8 + #include <cmath>
9  
10   #include "Rtypes.h"
11   #include "TObject.h"
# Line 26 | Line 29 | public:
29                          ,nBasicClusters_()
30                          ,nSuperClusters_()
31                          ,primaryVertex_(0)
29                        ,metCalo_()
32                          {;}
33  
34          ~TRootEvent() {;}
# Line 86 | 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          
89        // Missing Et as 3-vector
90        TVector3 metCaloVect() const { return metCalo_; }
91        // Missing Et magnitude
92        Double_t metCalo() const { return sqrt(metCalo_.Perp2()); }
93        
91          
92          void setNb(Int_t nb) { nb_ = nb; }
93          void setGlobalL1(Int_t passGlobalL1) { passGlobalL1_ = passGlobalL1; }
94 <        void setGlobalHLT(Bool_t passGlobalHLT) { passGlobalHLT_ = passGlobalHLT_; }
94 >        void setGlobalHLT(Bool_t passGlobalHLT) { passGlobalHLT_ = passGlobalHLT; }
95          void setTrigHLT(std::vector<Bool_t> trigHLT)
96          {
97                  trigHLT_.resize(trigHLT.size());
# Line 111 | Line 108 | public:
108                  
109          void addPrimaryVertex(TVector3 vertex) {  primaryVertex_.push_back(vertex); }
110          void clearPrimaryVertex(TVector3 vertex) {  primaryVertex_.clear(); }
114        void setMetCaloVect(TVector3 metCaloVect) { metCalo_ = metCaloVect; }
115        
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()
120 <                        << "  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 137 | Line 131 | private:
131          map<Int_t,Int_t> nSuperClusters_;
132          std::vector<TVector3> primaryVertex_;
133  
134 <        TVector3 metCalo_;
141 <                
142 <        ClassDef (TRootEvent,2);
134 >        ClassDef (TRootEvent,1);
135   };
136  
137   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines