CMS 3D CMS Logo

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  ecalClusterShape_.clear();
20  hcalClusterShape_.clear();
21  }
22 
23  HLTTau(float eta, float phi, float pt, float emIsolation, int trackIsolationL25, float leadTrackPtL25, int trackIsolationL3, float leadTrackPtL3) {
24  eta_ = eta;
25  phi_ = phi;
26  pt_ = pt;
27  emIsolation_ = emIsolation;
28  trackIsolationL25_ = trackIsolationL25;
29  leadTrackPtL25_ = leadTrackPtL25;
30  trackIsolationL3_ = trackIsolationL3 ;
31  leadTrackPtL3_ = leadTrackPtL3;
32  }
33 
34  virtual ~HLTTau() { }
35 
36  float getEta() const { return eta_; }
37  float getPhi() const { return phi_; }
38  float getPt() const { return pt_; }
39 
40  float getEMIsolationValue() const { return emIsolation_;}
43  float getL25LeadTrackPtValue() const { return leadTrackPtL25_; }
45  int getNL3TrackIsolation() const { return nTrackIsolationL3_; }
46  float getL3LeadTrackPtValue() const { return leadTrackPtL3_; }
47  float getSumPtTracksL25() const {return sumPtTracksL25_;}
48  float getSumPtTracksL3() const {return sumPtTracksL3_;}
49 
50  double getSeedEcalHitEt() const {return seedEcalHitEt_;} //Lead PF Cluster Et /or simple cluster/or crystal
51  std::vector<double> getEcalClusterShape() const {return ecalClusterShape_;} //cluster shapes eta [0], Phi[0] DeltaR [1]
52  int getNEcalHits() const {return nEcalHits_;} //N Ecal PF Clusters or simple clusters or crystals
53 
54  double getHcalIsolEt() const {return hcalIsolEt_;}
55  double getSeedHcalHitEt() const {return seedHcalHitEt_;}
56  std::vector<double> getHcalClusterShape() const {return hcalClusterShape_;}
57  int getNHcalHits() const {return nHcalHits_;}
58 
59 
65  void setEcalClusterShape(const std::vector<double>& clusters) {ecalClusterShape_ = clusters;}
67 
68  void setHcalIsolEt(double hcalIso) { hcalIsolEt_ = hcalIso;}
70  void setHcalClusterShape(const std::vector<double>& clusters) { hcalClusterShape_ = clusters;}
72 
73 
74  private:
75  float eta_=0., phi_= 0., pt_= -1.;
76  float emIsolation_= -1000.;
78  float leadTrackPtL25_= 0.;
82  float leadTrackPtL3_= 0.;
83  double seedEcalHitEt_= -1;
84  std::vector<double> ecalClusterShape_;
85  int nEcalHits_= -1;
86  double hcalIsolEt_= -1;
87  double seedHcalHitEt_= -1;
88  std::vector<double> hcalClusterShape_;
89  int nHcalHits_= -1;
90  double sumPtTracksL25_= -1000.;
91  double sumPtTracksL3_= -1000.;
92  };
93 
94 }
95 #endif
void setSumPtTracksL3(double sumPt)
Definition: HLTTau.h:63
int nTrackIsolationL3_
Definition: HLTTau.h:81
double getHcalIsolEt() const
Definition: HLTTau.h:54
float getL3LeadTrackPtValue() const
Definition: HLTTau.h:46
const unsigned int nTracks(const reco::Vertex &sv)
float leadTrackPtL25_
Definition: HLTTau.h:78
void setHcalClusterShape(const std::vector< double > &clusters)
Definition: HLTTau.h:70
void setSeedHcalHitEt(double seed)
Definition: HLTTau.h:69
void setNEcalHits(int nhits)
Definition: HLTTau.h:66
int nEcalHits_
Definition: HLTTau.h:85
void setSeedEcalHitEt(double seed)
Definition: HLTTau.h:64
float getEMIsolationValue() const
Definition: HLTTau.h:40
void setEcalClusterShape(const std::vector< double > &clusters)
Definition: HLTTau.h:65
int nHcalHits_
Definition: HLTTau.h:89
double getSeedHcalHitEt() const
Definition: HLTTau.h:55
double seedHcalHitEt_
Definition: HLTTau.h:87
double seedEcalHitEt_
Definition: HLTTau.h:83
int getL25TrackIsolationResponse() const
Definition: HLTTau.h:41
float leadTrackPtL3_
Definition: HLTTau.h:82
float getPhi() const
Definition: HLTTau.h:37
virtual ~HLTTau()
Definition: HLTTau.h:34
int nTrackIsolationL25_
Definition: HLTTau.h:79
int getNHcalHits() const
Definition: HLTTau.h:57
void setNL25TrackIsolation(int nTracks)
Definition: HLTTau.h:60
std::vector< double > ecalClusterShape_
Definition: HLTTau.h:84
int getNL3TrackIsolation() const
Definition: HLTTau.h:45
int trackIsolationL25_
Definition: HLTTau.h:77
double hcalIsolEt_
Definition: HLTTau.h:86
HLTTau(float eta, float phi, float pt, float emIsolation, int trackIsolationL25, float leadTrackPtL25, int trackIsolationL3, float leadTrackPtL3)
Definition: HLTTau.h:23
float getEta() const
Definition: HLTTau.h:36
float eta_
Definition: HLTTau.h:75
void setHcalIsolEt(double hcalIso)
Definition: HLTTau.h:68
int trackIsolationL3_
Definition: HLTTau.h:80
double sumPtTracksL25_
Definition: HLTTau.h:90
float getL25LeadTrackPtValue() const
Definition: HLTTau.h:43
float emIsolation_
Definition: HLTTau.h:76
std::vector< double > getHcalClusterShape() const
Definition: HLTTau.h:56
void setNL3TrackIsolation(int nTracks)
Definition: HLTTau.h:61
float pt_
Definition: HLTTau.h:75
fixed size matrix
std::vector< double > getEcalClusterShape() const
Definition: HLTTau.h:51
std::vector< double > hcalClusterShape_
Definition: HLTTau.h:88
int getNEcalHits() const
Definition: HLTTau.h:52
float phi_
Definition: HLTTau.h:75
float getSumPtTracksL3() const
Definition: HLTTau.h:48
double getSeedEcalHitEt() const
Definition: HLTTau.h:50
int getNL25TrackIsolation() const
Definition: HLTTau.h:42
float getSumPtTracksL25() const
Definition: HLTTau.h:47
float getPt() const
Definition: HLTTau.h:38
int getL3TrackIsolationResponse() const
Definition: HLTTau.h:44
double sumPtTracksL3_
Definition: HLTTau.h:91
void setNHcalHits(int nhits)
Definition: HLTTau.h:71
void setSumPtTracksL25(double sumPt)
Definition: HLTTau.h:62