CMS 3D CMS Logo

FastL1BitInfo.h
Go to the documentation of this file.
1 #ifndef FastL1_h
2 #define FastL1_h
3 
4 #include <vector>
5 
6 // Defining my own class
7 class FastL1BitInfo {
8 public:
10  : m_eta(0),
11  m_phi(0),
12  m_energy(0),
13  m_et(0),
20  m_maxEt(false),
21  m_soft(false),
22  m_hard(false) {}
23 
25 
26  void setEta(double Eta) { m_eta = Eta; }
27  void setPhi(double Phi) { m_phi = Phi; }
28  void setEnergy(double Energy) { m_energy = Energy; }
29  void setEt(double Et) { m_et = Et; }
30  void setTauVeto(bool tauVeto) { m_TauVeto = tauVeto; }
31  void setEmTauVeto(bool emTauVeto) { m_EmTauVeto = emTauVeto; }
32  void setHadTauVeto(bool hadTauVeto) { m_HadTauVeto = hadTauVeto; }
33  void setIsolationVeto(bool isolationVeto) { m_IsolationVeto = isolationVeto; }
34  void setPartialIsolationVeto(bool pisolationVeto) { m_PartialIsolationVeto = pisolationVeto; }
35  void setTauVetoForPartIso(bool tauVeto) { m_TauVetoForPartIso = tauVeto; }
36  void setSumEtBelowThres(bool sumEtBelowThres) { m_SumEtBelowThres = sumEtBelowThres; }
37  void setMaxEt(bool MaxEt) { m_maxEt = MaxEt; }
38  void setSoft(bool Soft) { m_soft = Soft; }
39  void setHard(bool Hard) { m_hard = Hard; }
40 
44 
48 
49  double getEta() const { return m_eta; }
50  double getPhi() const { return m_phi; }
51  double getEnergy() const { return m_energy; }
52  double getEt() const { return m_et; }
53  bool getTauVeto() const { return m_TauVeto; }
54  bool getEmTauVeto() const { return m_EmTauVeto; }
55  bool getHadTauVeto() const { return m_HadTauVeto; }
56  bool getIsolationVeto() const { return m_IsolationVeto; }
57  bool getTauVetoForPartIso() const { return m_TauVetoForPartIso; }
59  bool getSumEtBelowThres() const { return m_SumEtBelowThres; }
60  bool getMaxEt() const { return m_maxEt; }
61  bool getSoft() const { return m_soft; }
62  bool getHard() const { return m_hard; }
63 
64 private:
65  double m_eta;
66  double m_phi;
67  double m_energy;
68  double m_et;
69 
70  // ID is defined like this:
71  // 0 1 2 3
72  // 4 5 6 7
73  // 8 9 10 11
74  // 12 13 14 15
78 
79  bool m_TauVeto;
86  bool m_maxEt;
87  bool m_soft;
88  bool m_hard;
89 };
90 
91 // Defining vector of my classs
92 typedef std::vector<FastL1BitInfo> FastL1BitInfoCollection;
93 
94 #endif
bool m_TauVetoForPartIso
Definition: FastL1BitInfo.h:83
void setTauVeto(bool tauVeto)
Definition: FastL1BitInfo.h:30
bool getSoft() const
Definition: FastL1BitInfo.h:61
bool getMaxEt() const
Definition: FastL1BitInfo.h:60
int getHighestEtTowerID()
Definition: FastL1BitInfo.h:45
bool getTauVetoForPartIso() const
Definition: FastL1BitInfo.h:57
bool getEmTauVeto() const
Definition: FastL1BitInfo.h:54
void setEt(double Et)
Definition: FastL1BitInfo.h:29
bool getSumEtBelowThres() const
Definition: FastL1BitInfo.h:59
int getHighestEmEtTowerID()
Definition: FastL1BitInfo.h:46
void setHighestEtTowerID(int id)
Definition: FastL1BitInfo.h:41
std::vector< FastL1BitInfo > FastL1BitInfoCollection
Definition: FastL1BitInfo.h:92
bool getTauVeto() const
Definition: FastL1BitInfo.h:53
bool m_PartialIsolationVeto
Definition: FastL1BitInfo.h:84
void setPhi(double Phi)
Definition: FastL1BitInfo.h:27
int m_HighestHadEtTowerID
Definition: FastL1BitInfo.h:77
void setHadTauVeto(bool hadTauVeto)
Definition: FastL1BitInfo.h:32
void setEnergy(double Energy)
Definition: FastL1BitInfo.h:28
bool m_IsolationVeto
Definition: FastL1BitInfo.h:82
void setEta(double Eta)
Definition: FastL1BitInfo.h:26
bool getPartialIsolationVeto() const
Definition: FastL1BitInfo.h:58
void setSoft(bool Soft)
Definition: FastL1BitInfo.h:38
double getEnergy() const
Definition: FastL1BitInfo.h:51
void setSumEtBelowThres(bool sumEtBelowThres)
Definition: FastL1BitInfo.h:36
double getEt() const
Definition: FastL1BitInfo.h:52
double getPhi() const
Definition: FastL1BitInfo.h:50
void setMaxEt(bool MaxEt)
Definition: FastL1BitInfo.h:37
void setHard(bool Hard)
Definition: FastL1BitInfo.h:39
void setIsolationVeto(bool isolationVeto)
Definition: FastL1BitInfo.h:33
void setEmTauVeto(bool emTauVeto)
Definition: FastL1BitInfo.h:31
void setHighestHadEtTowerID(int id)
Definition: FastL1BitInfo.h:43
bool getHard() const
Definition: FastL1BitInfo.h:62
void setPartialIsolationVeto(bool pisolationVeto)
Definition: FastL1BitInfo.h:34
bool getIsolationVeto() const
Definition: FastL1BitInfo.h:56
bool getHadTauVeto() const
Definition: FastL1BitInfo.h:55
int getHighestHadEtTowerID()
Definition: FastL1BitInfo.h:47
double getEta() const
Definition: FastL1BitInfo.h:49
bool m_SumEtBelowThres
Definition: FastL1BitInfo.h:85
int m_HighestEmEtTowerID
Definition: FastL1BitInfo.h:76
void setHighestEmEtTowerID(int id)
Definition: FastL1BitInfo.h:42
void setTauVetoForPartIso(bool tauVeto)
Definition: FastL1BitInfo.h:35
int m_HighestEtTowerID
Definition: FastL1BitInfo.h:75