CMS 3D CMS Logo

L1GtCaloCondition.h
Go to the documentation of this file.
1 #ifndef GlobalTrigger_L1GtCaloCondition_h
2 #define GlobalTrigger_L1GtCaloCondition_h
3 
18 // system include files
19 #include <iosfwd>
20 #include <string>
21 
22 // user include files
23 // base classes
25 
26 // forward declarations
27 class L1GtCondition;
28 class L1GtCaloTemplate;
29 
30 class L1GctCand;
31 
32 class L1GlobalTriggerPSB;
33 
34 // class declaration
36 public:
40 
43  const L1GlobalTriggerPSB *,
44  const int nrL1NoIsoEG,
45  const int nrL1IsoEG,
46  const int nrL1CenJet,
47  const int nrL1ForJet,
48  const int nrL1TauJet,
49  const int ifCaloEtaNumberBits);
50 
51  // copy constructor
53 
54  // destructor
55  ~L1GtCaloCondition() override;
56 
57  // assign operator
59 
60 public:
62  const bool evaluateCondition() const override;
63 
65  void print(std::ostream &myCout) const override;
66 
67 public:
69  inline const L1GtCaloTemplate *gtCaloTemplate() const { return m_gtCaloTemplate; }
70 
71  void setGtCaloTemplate(const L1GtCaloTemplate *);
72 
74  inline const L1GlobalTriggerPSB *gtPSB() const { return m_gtPSB; }
75 
76  void setGtPSB(const L1GlobalTriggerPSB *);
77 
79  inline const int gtIfCaloEtaNumberBits() const { return m_ifCaloEtaNumberBits; }
80 
81  void setGtIfCaloEtaNumberBits(const int &);
82 
84  inline const int gtCorrParDeltaPhiNrBins() const { return m_corrParDeltaPhiNrBins; }
85 
86  void setGtCorrParDeltaPhiNrBins(const int &);
87 
88 private:
90  void copy(const L1GtCaloCondition &cp);
91 
93  const L1GctCand *getCandidate(const int indexCand) const;
94 
96  const bool checkObjectParameter(const int iCondition, const L1GctCand &cand) const;
97 
98 private:
101 
104 
107 
108  // maximum number of bins for the delta phi scales
110 };
111 
112 #endif
L1GtConditionEvaluation
Definition: L1GtConditionEvaluation.h:37
L1GtCondition
Definition: L1GtCondition.h:35
L1GtCaloCondition::~L1GtCaloCondition
~L1GtCaloCondition() override
Definition: L1GtCaloCondition.cc:113
L1GtCaloCondition::setGtCorrParDeltaPhiNrBins
void setGtCorrParDeltaPhiNrBins(const int &)
Definition: L1GtCaloCondition.cc:135
L1GtCaloCondition::checkObjectParameter
const bool checkObjectParameter(const int iCondition, const L1GctCand &cand) const
function to check a single object if it matches a condition
Definition: L1GtCaloCondition.cc:379
L1GtCaloCondition::m_ifCaloEtaNumberBits
int m_ifCaloEtaNumberBits
number of bits for eta of calorimeter objects
Definition: L1GtCaloCondition.h:106
L1GtCaloCondition
Definition: L1GtCaloCondition.h:35
L1GtCaloCondition::gtCaloTemplate
const L1GtCaloTemplate * gtCaloTemplate() const
get / set the pointer to a L1GtCondition
Definition: L1GtCaloCondition.h:69
L1GtCaloCondition::m_gtPSB
const L1GlobalTriggerPSB * m_gtPSB
pointer to PSB, to be able to get the trigger objects
Definition: L1GtCaloCondition.h:103
L1GtCaloCondition::setGtCaloTemplate
void setGtCaloTemplate(const L1GtCaloTemplate *)
Definition: L1GtCaloCondition.cc:124
L1GtCaloCondition::m_gtCaloTemplate
const L1GtCaloTemplate * m_gtCaloTemplate
pointer to a L1GtCaloTemplate
Definition: L1GtCaloCondition.h:100
L1GtCaloCondition::operator=
L1GtCaloCondition & operator=(const L1GtCaloCondition &)
Definition: L1GtCaloCondition.cc:118
L1GtCaloCondition::evaluateCondition
const bool evaluateCondition() const override
the core function to check if the condition matches
Definition: L1GtCaloCondition.cc:140
L1GtConditionEvaluation.h
L1GtCaloCondition::copy
void copy(const L1GtCaloCondition &cp)
copy function for copy constructor and operator=
Definition: L1GtCaloCondition.cc:96
L1GtCaloCondition::gtCorrParDeltaPhiNrBins
const int gtCorrParDeltaPhiNrBins() const
get / set maximum number of bins for the delta phi scales
Definition: L1GtCaloCondition.h:84
L1GtCaloCondition::setGtIfCaloEtaNumberBits
void setGtIfCaloEtaNumberBits(const int &)
Definition: L1GtCaloCondition.cc:130
L1GtCaloCondition::m_corrParDeltaPhiNrBins
unsigned int m_corrParDeltaPhiNrBins
Definition: L1GtCaloCondition.h:109
L1GtCaloCondition::print
void print(std::ostream &myCout) const override
print condition
Definition: L1GtCaloCondition.cc:419
L1GtCaloTemplate
Definition: L1GtCaloTemplate.h:34
cand
Definition: decayParser.h:32
L1GtCaloCondition::getCandidate
const L1GctCand * getCandidate(const int indexCand) const
load calo candidates
Definition: L1GtCaloCondition.cc:342
L1GtCaloCondition::setGtPSB
void setGtPSB(const L1GlobalTriggerPSB *)
set the pointer to PSB
Definition: L1GtCaloCondition.cc:127
L1GtCaloCondition::gtIfCaloEtaNumberBits
const int gtIfCaloEtaNumberBits() const
get / set the number of bits for eta of calorimeter objects
Definition: L1GtCaloCondition.h:79
L1GctCand
ABC for GCT EM and jet candidates.
Definition: L1GctCand.h:12
L1GlobalTriggerPSB
Definition: L1GlobalTriggerPSB.h:58
L1GtCaloCondition::L1GtCaloCondition
L1GtCaloCondition()
Definition: L1GtCaloCondition.cc:48
CommonMethods.cp
def cp(fromDir, toDir, listOfFiles, overwrite=False, smallList=False)
Definition: CommonMethods.py:192
L1GtCaloCondition::gtPSB
const L1GlobalTriggerPSB * gtPSB() const
get / set the pointer to PSB
Definition: L1GtCaloCondition.h:74