CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/FastSimDataFormats/External/interface/FastL1BitInfo.h

Go to the documentation of this file.
00001 #ifndef FastL1_h
00002 #define FastL1_h
00003 
00004 #include <vector>
00005 
00006 // Defining my own  class
00007 class FastL1BitInfo
00008 {
00009 
00010 public:
00011 
00012 FastL1BitInfo(): m_eta(0), m_phi(0), m_energy(0), m_et(0), m_TauVeto(false), m_EmTauVeto(false), m_HadTauVeto(false), m_IsolationVeto(false), m_PartialIsolationVeto(false), m_SumEtBelowThres(false), m_maxEt(false), m_soft(false), m_hard(false)
00013 {
00014 }
00015 
00016 ~FastL1BitInfo()
00017 {
00018 }
00019 
00020 void setEta(double Eta){m_eta = Eta;}
00021 void setPhi(double Phi){m_phi = Phi;}
00022 void setEnergy(double Energy){m_energy = Energy;}
00023 void setEt(double Et){m_et = Et;}
00024 void setTauVeto(bool tauVeto){m_TauVeto = tauVeto;}
00025 void setEmTauVeto(bool emTauVeto){m_EmTauVeto = emTauVeto;}
00026 void setHadTauVeto(bool hadTauVeto){m_HadTauVeto = hadTauVeto;}
00027 void setIsolationVeto(bool isolationVeto){m_IsolationVeto = isolationVeto;}
00028 void setPartialIsolationVeto(bool pisolationVeto){m_PartialIsolationVeto = pisolationVeto;}
00029 void setTauVetoForPartIso(bool tauVeto){m_TauVetoForPartIso = tauVeto;}
00030 void setSumEtBelowThres(bool sumEtBelowThres){m_SumEtBelowThres = sumEtBelowThres;}
00031 void setMaxEt(bool MaxEt){m_maxEt = MaxEt;}
00032 void setSoft(bool Soft){m_soft = Soft;}
00033 void setHard(bool Hard){m_hard = Hard;}
00034 
00035 void setHighestEtTowerID (int id) {m_HighestEtTowerID = id;}
00036 void setHighestEmEtTowerID (int id) {m_HighestEmEtTowerID = id;}
00037 void setHighestHadEtTowerID (int id) {m_HighestHadEtTowerID = id;}
00038 
00039 int getHighestEtTowerID () {return m_HighestEtTowerID;}
00040 int getHighestEmEtTowerID () {return m_HighestEmEtTowerID;}
00041 int getHighestHadEtTowerID () {return m_HighestHadEtTowerID;}
00042 
00043 double getEta() const {return m_eta;}
00044 double getPhi() const {return m_phi;}
00045 double getEnergy() const {return m_energy;}
00046 double getEt() const {return m_et;}
00047 bool getTauVeto() const {return m_TauVeto;}
00048 bool getEmTauVeto() const {return m_EmTauVeto;}
00049 bool getHadTauVeto() const {return m_HadTauVeto;}
00050 bool getIsolationVeto() const {return m_IsolationVeto;}
00051 bool getTauVetoForPartIso() const {return m_TauVetoForPartIso;}
00052 bool getPartialIsolationVeto() const {return m_PartialIsolationVeto;}
00053 bool getSumEtBelowThres() const {return m_SumEtBelowThres;}
00054 bool getMaxEt() const {return m_maxEt;}
00055 bool getSoft() const {return m_soft;}
00056 bool getHard() const {return m_hard;}
00057 
00058 private:
00059   double m_eta;
00060   double m_phi;
00061   double m_energy;
00062   double m_et;
00063 
00064 // ID is defined like this:
00065 //  0  1  2  3
00066 //  4  5  6  7
00067 //  8  9 10 11
00068 // 12 13 14 15
00069   int m_HighestEtTowerID;
00070   int m_HighestEmEtTowerID;
00071   int m_HighestHadEtTowerID;
00072 
00073   bool m_TauVeto;
00074   bool m_EmTauVeto;
00075   bool m_HadTauVeto;
00076   bool m_IsolationVeto;
00077   bool m_TauVetoForPartIso;
00078   bool m_PartialIsolationVeto;
00079   bool m_SumEtBelowThres;
00080   bool m_maxEt;
00081   bool m_soft;
00082   bool m_hard;
00083 };
00084 
00085 // Defining vector of my classs
00086 typedef std::vector<FastL1BitInfo> FastL1BitInfoCollection;
00087 
00088 #endif