CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CaloCondition.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1TGlobal_CaloCondition_h
2 #define L1Trigger_L1TGlobal_CaloCondition_h
3 
19 // system include files
20 #include <iosfwd>
21 #include <string>
22 
23 // user include files
24 // base classes
26 
27 // forward declarations
28 class GlobalCondition;
29 class CaloTemplate;
30 
31 namespace l1t {
32 
33  class L1Candidate;
34 
35  class GlobalBoard;
36 
37  // class declaration
39  public:
42  CaloCondition();
43 
46  const GlobalBoard*,
47  const int nrL1EG,
48  const int nrL1Jet,
49  const int nrL1Tau,
50  const int ifCaloEtaNumberBits);
51 
52  // copy constructor
54 
55  // destructor
56  ~CaloCondition() override;
57 
58  // assign operator
60 
61  public:
63  const bool evaluateCondition(const int bxEval) const override;
64 
66  void print(std::ostream& myCout) const override;
67 
68  public:
70  inline const CaloTemplate* gtCaloTemplate() const { return m_gtCaloTemplate; }
71 
72  void setGtCaloTemplate(const CaloTemplate*);
73 
75  inline const GlobalBoard* getuGtB() const { return m_uGtB; }
76 
77  void setuGtB(const GlobalBoard*);
78 
80  inline const int gtIfCaloEtaNumberBits() const { return m_ifCaloEtaNumberBits; }
81 
82  void setGtIfCaloEtaNumberBits(const int&);
83 
85  inline const int gtCorrParDeltaPhiNrBins() const { return m_corrParDeltaPhiNrBins; }
86 
87  void setGtCorrParDeltaPhiNrBins(const int&);
88 
89  private:
91  void copy(const CaloCondition& cp);
92 
94  const l1t::L1Candidate* getCandidate(const int bx, const int indexCand) const;
95 
97  const bool checkObjectParameter(const int iCondition, const l1t::L1Candidate& cand, const unsigned int index) const;
98 
99  private:
102 
105 
108 
109  // maximum number of bins for the delta phi scales
111  };
112 
113 } // namespace l1t
114 #endif
const CaloTemplate * gtCaloTemplate() const
get / set the pointer to a Condition
Definition: CaloCondition.h:70
unsigned int m_corrParDeltaPhiNrBins
const int gtCorrParDeltaPhiNrBins() const
get / set maximum number of bins for the delta phi scales
Definition: CaloCondition.h:85
void print(std::ostream &myCout) const override
print condition
void setGtCorrParDeltaPhiNrBins(const int &)
const bool checkObjectParameter(const int iCondition, const l1t::L1Candidate &cand, const unsigned int index) const
function to check a single object if it matches a condition
void setGtIfCaloEtaNumberBits(const int &)
void setGtCaloTemplate(const CaloTemplate *)
const int gtIfCaloEtaNumberBits() const
get / set the number of bits for eta of calorimeter objects
Definition: CaloCondition.h:80
const GlobalBoard * m_uGtB
pointer to uGt GlobalBoard, to be able to get the trigger objects
void setuGtB(const GlobalBoard *)
set the pointer to uGT GlobalBoard
~CaloCondition() override
const l1t::L1Candidate * getCandidate(const int bx, const int indexCand) const
load calo candidates
CaloCondition & operator=(const CaloCondition &)
void copy(const CaloCondition &cp)
copy function for copy constructor and operator=
const GlobalBoard * getuGtB() const
get / set the pointer to uGt GlobalBoard
Definition: CaloCondition.h:75
int m_ifCaloEtaNumberBits
number of bits for eta of calorimeter objects
const bool evaluateCondition(const int bxEval) const override
the core function to check if the condition matches
const CaloTemplate * m_gtCaloTemplate
pointer to a CaloTemplate