test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTTau.h
Go to the documentation of this file.
1 #ifndef DataFormats_TauReco_HLTTau_h
2 #define DataFormats_TauReco_HLTTau_h
3 
4 /* class HLTTau
5  * authors: Simone Gennai (simone.gennai@cern.ch)
6  * created: Oct 25 2007,
7  */
8 
9 //Very simple class to be used in HLT-Open environment for rate computation.
10 
11 
13 
14 namespace reco {
15 
16  class HLTTau {
17  public:
18  HLTTau() {
19  emIsolation_ = -1000.;
20  sumPtTracksL25_ = -1000.;
21  sumPtTracksL3_ = -1000.;
22  trackIsolationL25_ = -1;
24  leadTrackPtL25_ = 0.;
25  trackIsolationL3_ = -1;
26  nTrackIsolationL3_ = -1;
27  leadTrackPtL3_ = 0.;
28  eta_ = 0.;
29  phi_ = 0.;
30  pt_ = -1.;
31  seedEcalHitEt_ = -1.;
32  ecalClusterShape_.clear();
33  nEcalHits_ = -1;
34  hcalIsolEt_ =-1.;
35  seedHcalHitEt_ =-1.;
36  hcalClusterShape_.clear();
37  nHcalHits_=-1;
38  }
39 
40  HLTTau(float eta, float phi, float pt, float emIsolation, int trackIsolationL25, float leadTrackPtL25, int trackIsolationL3, float leadTrackPtL3) {
41  eta_ = eta;
42  phi_ = phi;
43  pt_ = pt;
44  emIsolation_ = emIsolation;
45  trackIsolationL25_ = trackIsolationL25;
46  leadTrackPtL25_ = leadTrackPtL25;
47  trackIsolationL3_ = trackIsolationL3 ;
48  leadTrackPtL3_ = leadTrackPtL3;
49  }
50 
51  virtual ~HLTTau() { }
52 
53  float getEta() const { return eta_; }
54  float getPhi() const { return phi_; }
55  float getPt() const { return pt_; }
56 
57  float getEMIsolationValue() const { return emIsolation_;}
60  float getL25LeadTrackPtValue() const { return leadTrackPtL25_; }
62  int getNL3TrackIsolation() const { return nTrackIsolationL3_; }
63  float getL3LeadTrackPtValue() const { return leadTrackPtL3_; }
64  float getSumPtTracksL25() const {return sumPtTracksL25_;}
65  float getSumPtTracksL3() const {return sumPtTracksL3_;}
66 
67  double getSeedEcalHitEt() const {return seedEcalHitEt_;} //Lead PF Cluster Et /or simple cluster/or crystal
68  std::vector<double> getEcalClusterShape() const {return ecalClusterShape_;} //cluster shapes eta [0], Phi[0] DeltaR [1]
69  int getNEcalHits() const {return nEcalHits_;} //N Ecal PF Clusters or simple clusters or crystals
70 
71  double getHcalIsolEt() const {return hcalIsolEt_;}
72  double getSeedHcalHitEt() const {return seedHcalHitEt_;}
73  std::vector<double> getHcalClusterShape() const {return hcalClusterShape_;}
74  int getNHcalHits() const {return nHcalHits_;}
75 
76 
79  void setSumPtTracksL25(double sumPt) {sumPtTracksL25_ = sumPt;}
80  void setSumPtTracksL3(double sumPt) {sumPtTracksL3_ = sumPt;}
82  void setEcalClusterShape(const std::vector<double>& clusters) {ecalClusterShape_ = clusters;}
84 
85  void setHcalIsolEt(double hcalIso) { hcalIsolEt_ = hcalIso;}
87  void setHcalClusterShape(const std::vector<double>& clusters) { hcalClusterShape_ = clusters;}
89 
90 
91  private:
92  float eta_, phi_, pt_;
93  float emIsolation_;
101  std::vector<double> ecalClusterShape_;
103  double hcalIsolEt_;
105  std::vector<double> hcalClusterShape_;
109  };
110 
111 }
112 #endif
void setSumPtTracksL3(double sumPt)
Definition: HLTTau.h:80
int nTrackIsolationL3_
Definition: HLTTau.h:98
double getHcalIsolEt() const
Definition: HLTTau.h:71
float getL3LeadTrackPtValue() const
Definition: HLTTau.h:63
const unsigned int nTracks(const reco::Vertex &sv)
float leadTrackPtL25_
Definition: HLTTau.h:95
void setHcalClusterShape(const std::vector< double > &clusters)
Definition: HLTTau.h:87
void setSeedHcalHitEt(double seed)
Definition: HLTTau.h:86
void setNEcalHits(int nhits)
Definition: HLTTau.h:83
int nEcalHits_
Definition: HLTTau.h:102
void setSeedEcalHitEt(double seed)
Definition: HLTTau.h:81
float getEMIsolationValue() const
Definition: HLTTau.h:57
void setEcalClusterShape(const std::vector< double > &clusters)
Definition: HLTTau.h:82
int nHcalHits_
Definition: HLTTau.h:106
double getSeedHcalHitEt() const
Definition: HLTTau.h:72
double seedHcalHitEt_
Definition: HLTTau.h:104
double seedEcalHitEt_
Definition: HLTTau.h:100
int getL25TrackIsolationResponse() const
Definition: HLTTau.h:58
float leadTrackPtL3_
Definition: HLTTau.h:99
float getPhi() const
Definition: HLTTau.h:54
virtual ~HLTTau()
Definition: HLTTau.h:51
int nTrackIsolationL25_
Definition: HLTTau.h:96
int getNHcalHits() const
Definition: HLTTau.h:74
void setNL25TrackIsolation(int nTracks)
Definition: HLTTau.h:77
std::vector< double > ecalClusterShape_
Definition: HLTTau.h:101
int getNL3TrackIsolation() const
Definition: HLTTau.h:62
int trackIsolationL25_
Definition: HLTTau.h:94
double hcalIsolEt_
Definition: HLTTau.h:103
HLTTau(float eta, float phi, float pt, float emIsolation, int trackIsolationL25, float leadTrackPtL25, int trackIsolationL3, float leadTrackPtL3)
Definition: HLTTau.h:40
float getEta() const
Definition: HLTTau.h:53
float eta_
Definition: HLTTau.h:92
void setHcalIsolEt(double hcalIso)
Definition: HLTTau.h:85
int trackIsolationL3_
Definition: HLTTau.h:97
double sumPtTracksL25_
Definition: HLTTau.h:107
float getL25LeadTrackPtValue() const
Definition: HLTTau.h:60
float emIsolation_
Definition: HLTTau.h:93
std::vector< double > getHcalClusterShape() const
Definition: HLTTau.h:73
void setNL3TrackIsolation(int nTracks)
Definition: HLTTau.h:78
float pt_
Definition: HLTTau.h:92
std::vector< double > getEcalClusterShape() const
Definition: HLTTau.h:68
std::vector< double > hcalClusterShape_
Definition: HLTTau.h:105
int getNEcalHits() const
Definition: HLTTau.h:69
float phi_
Definition: HLTTau.h:92
float getSumPtTracksL3() const
Definition: HLTTau.h:65
double getSeedEcalHitEt() const
Definition: HLTTau.h:67
int getNL25TrackIsolation() const
Definition: HLTTau.h:59
float getSumPtTracksL25() const
Definition: HLTTau.h:64
float getPt() const
Definition: HLTTau.h:55
int getL3TrackIsolationResponse() const
Definition: HLTTau.h:61
double sumPtTracksL3_
Definition: HLTTau.h:108
void setNHcalHits(int nhits)
Definition: HLTTau.h:88
void setSumPtTracksL25(double sumPt)
Definition: HLTTau.h:79