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