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" |
29 |
|
,nBasicClusters_() |
30 |
|
,nSuperClusters_() |
31 |
|
,primaryVertex_(0) |
29 |
– |
,metCalo_() |
32 |
|
{;} |
33 |
|
|
34 |
|
~TRootEvent() {;} |
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()); |
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 |
|
*/ |
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 |