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
FastL1BitInfo::setTauVeto
void setTauVeto(bool tauVeto)
Definition: FastL1BitInfo.h:30
FastL1BitInfo::m_HighestEtTowerID
int m_HighestEtTowerID
Definition: FastL1BitInfo.h:75
FastL1BitInfo::setMaxEt
void setMaxEt(bool MaxEt)
Definition: FastL1BitInfo.h:37
FastL1BitInfo::m_eta
double m_eta
Definition: FastL1BitInfo.h:65
FastL1BitInfo::m_soft
bool m_soft
Definition: FastL1BitInfo.h:87
FastL1BitInfo::setIsolationVeto
void setIsolationVeto(bool isolationVeto)
Definition: FastL1BitInfo.h:33
funct::false
false
Definition: Factorize.h:34
EcalCondDBWriter_cfi.Energy
Energy
Definition: EcalCondDBWriter_cfi.py:152
FastL1BitInfo::FastL1BitInfo
FastL1BitInfo()
Definition: FastL1BitInfo.h:9
FastL1BitInfo::m_hard
bool m_hard
Definition: FastL1BitInfo.h:88
FastL1BitInfo::getSoft
bool getSoft() const
Definition: FastL1BitInfo.h:61
FastL1BitInfo::getHard
bool getHard() const
Definition: FastL1BitInfo.h:62
FastL1BitInfo::getPhi
double getPhi() const
Definition: FastL1BitInfo.h:50
FastL1BitInfo::setHighestEtTowerID
void setHighestEtTowerID(int id)
Definition: FastL1BitInfo.h:41
FastL1BitInfo::m_PartialIsolationVeto
bool m_PartialIsolationVeto
Definition: FastL1BitInfo.h:84
FastL1BitInfo::m_TauVetoForPartIso
bool m_TauVetoForPartIso
Definition: FastL1BitInfo.h:83
FastL1BitInfo::getTauVetoForPartIso
bool getTauVetoForPartIso() const
Definition: FastL1BitInfo.h:57
FastL1BitInfo::getHighestHadEtTowerID
int getHighestHadEtTowerID()
Definition: FastL1BitInfo.h:47
FastL1BitInfo::m_HighestHadEtTowerID
int m_HighestHadEtTowerID
Definition: FastL1BitInfo.h:77
FastL1BitInfo::getMaxEt
bool getMaxEt() const
Definition: FastL1BitInfo.h:60
FastL1BitInfo::getEmTauVeto
bool getEmTauVeto() const
Definition: FastL1BitInfo.h:54
FastL1BitInfo::setEt
void setEt(double Et)
Definition: FastL1BitInfo.h:29
FastL1BitInfoCollection
std::vector< FastL1BitInfo > FastL1BitInfoCollection
Definition: FastL1BitInfo.h:92
FastL1BitInfo::m_et
double m_et
Definition: FastL1BitInfo.h:68
FastL1BitInfo::m_IsolationVeto
bool m_IsolationVeto
Definition: FastL1BitInfo.h:82
FastL1BitInfo::setHadTauVeto
void setHadTauVeto(bool hadTauVeto)
Definition: FastL1BitInfo.h:32
VtxSmearedParameters_cfi.Phi
Phi
Definition: VtxSmearedParameters_cfi.py:112
FastL1BitInfo::setSumEtBelowThres
void setSumEtBelowThres(bool sumEtBelowThres)
Definition: FastL1BitInfo.h:36
FastL1BitInfo::setEmTauVeto
void setEmTauVeto(bool emTauVeto)
Definition: FastL1BitInfo.h:31
FastL1BitInfo::m_phi
double m_phi
Definition: FastL1BitInfo.h:66
FastL1BitInfo::m_TauVeto
bool m_TauVeto
Definition: FastL1BitInfo.h:79
FastL1BitInfo::setTauVetoForPartIso
void setTauVetoForPartIso(bool tauVeto)
Definition: FastL1BitInfo.h:35
FastL1BitInfo
Definition: FastL1BitInfo.h:7
FastL1BitInfo::setPartialIsolationVeto
void setPartialIsolationVeto(bool pisolationVeto)
Definition: FastL1BitInfo.h:34
FastL1BitInfo::getHighestEmEtTowerID
int getHighestEmEtTowerID()
Definition: FastL1BitInfo.h:46
FastL1BitInfo::m_EmTauVeto
bool m_EmTauVeto
Definition: FastL1BitInfo.h:80
FastL1BitInfo::getTauVeto
bool getTauVeto() const
Definition: FastL1BitInfo.h:53
FastL1BitInfo::getEta
double getEta() const
Definition: FastL1BitInfo.h:49
FastL1BitInfo::getHighestEtTowerID
int getHighestEtTowerID()
Definition: FastL1BitInfo.h:45
FastL1BitInfo::m_maxEt
bool m_maxEt
Definition: FastL1BitInfo.h:86
FastL1BitInfo::setHard
void setHard(bool Hard)
Definition: FastL1BitInfo.h:39
FastL1BitInfo::getPartialIsolationVeto
bool getPartialIsolationVeto() const
Definition: FastL1BitInfo.h:58
FastL1BitInfo::setHighestHadEtTowerID
void setHighestHadEtTowerID(int id)
Definition: FastL1BitInfo.h:43
FastL1BitInfo::getIsolationVeto
bool getIsolationVeto() const
Definition: FastL1BitInfo.h:56
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
FastL1BitInfo::m_energy
double m_energy
Definition: FastL1BitInfo.h:67
FastL1BitInfo::setEnergy
void setEnergy(double Energy)
Definition: FastL1BitInfo.h:28
FastL1BitInfo::getHadTauVeto
bool getHadTauVeto() const
Definition: FastL1BitInfo.h:55
FastL1BitInfo::setEta
void setEta(double Eta)
Definition: FastL1BitInfo.h:26
FastL1BitInfo::setSoft
void setSoft(bool Soft)
Definition: FastL1BitInfo.h:38
FastL1BitInfo::setPhi
void setPhi(double Phi)
Definition: FastL1BitInfo.h:27
FastL1BitInfo::m_HighestEmEtTowerID
int m_HighestEmEtTowerID
Definition: FastL1BitInfo.h:76
FastL1BitInfo::getEnergy
double getEnergy() const
Definition: FastL1BitInfo.h:51
FastL1BitInfo::m_SumEtBelowThres
bool m_SumEtBelowThres
Definition: FastL1BitInfo.h:85
FastL1BitInfo::getEt
double getEt() const
Definition: FastL1BitInfo.h:52
FastL1BitInfo::~FastL1BitInfo
~FastL1BitInfo()
Definition: FastL1BitInfo.h:24
FastL1BitInfo::getSumEtBelowThres
bool getSumEtBelowThres() const
Definition: FastL1BitInfo.h:59
FastL1BitInfo::setHighestEmEtTowerID
void setHighestEmEtTowerID(int id)
Definition: FastL1BitInfo.h:42
FastL1BitInfo::m_HadTauVeto
bool m_HadTauVeto
Definition: FastL1BitInfo.h:81