CMS 3D CMS Logo

CorrCondition.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1TGlobal_CorrCondition_h
2 #define L1Trigger_L1TGlobal_CorrCondition_h
3 
18 // system include files
19 #include <iosfwd>
20 #include <string>
21 
22 // user include files
23 // base classes
26 
27 // forward declarations
28 class GlobalCondition;
30 
31 namespace l1t {
32 
33 class L1Candidate;
34 
35 class GlobalBoard;
36 
37 // class declaration
39 {
40 
41 public:
42 
45  CorrCondition();
46 
49  const GlobalCondition*,
50  const GlobalCondition*,
51  const GlobalBoard*
52 
53  );
54 
55  // copy constructor
57 
58  // destructor
59  ~CorrCondition() override;
60 
61  // assign operator
63 
64 public:
65 
67  const bool evaluateCondition(const int bxEval) const override;
68 
70  void print(std::ostream& myCout) const override;
71 
72 public:
73 
77  }
78 
80 
82  inline const GlobalBoard* getuGtB() const {
83  return m_uGtB;
84  }
85 
86  void setuGtB(const GlobalBoard*);
87 
88  void setScales(const GlobalScales*);
89 
90 /* //BLW Comment out for now
92  inline const int gtIfCaloEtaNumberBits() const {
93  return m_ifCaloEtaNumberBits;
94  }
95 
96 
97  void setGtIfCaloEtaNumberBits(const int&);
98 
100  inline const int gtCorrParDeltaPhiNrBins() const {
101  return m_corrParDeltaPhiNrBins;
102  }
103 
104  void setGtCorrParDeltaPhiNrBins(const int&);
105 */
106 private:
107 
109  void copy(const CorrCondition& cp);
110 
112  const l1t::L1Candidate* getCandidate(const int bx, const int indexCand) const;
113 
115  const bool
116  checkObjectParameter(const int iCondition, const l1t::L1Candidate& cand) const;
117 
118 private:
119 
122 
123 
124  // pointer to subconditions
127 
130 
132 
133 
134 /* //BLW comment out for now
136  int m_ifCaloEtaNumberBits;
137 
138  // maximum number of bins for the delta phi scales
139  unsigned int m_corrParDeltaPhiNrBins;
140 */
141 
142 
143 };
144 
145 }
146 #endif
const GlobalCondition * m_gtCond0
void setGtCorrelationTemplate(const CorrelationTemplate *)
const GlobalBoard * m_uGtB
pointer to uGt GlobalBoard, to be able to get the trigger objects
const GlobalCondition * m_gtCond1
void setuGtB(const GlobalBoard *)
set the pointer to uGT GlobalBoard
delete x;
Definition: CaloConfig.h:22
const bool evaluateCondition(const int bxEval) const override
the core function to check if the condition matches
CorrCondition & operator=(const CorrCondition &)
void print(std::ostream &myCout) const override
print condition
void copy(const CorrCondition &cp)
copy function for copy constructor and operator=
const CorrelationTemplate * m_gtCorrelationTemplate
pointer to a CorrelationTemplate
void setScales(const GlobalScales *)
const GlobalScales * m_gtScales
const bool checkObjectParameter(const int iCondition, const l1t::L1Candidate &cand) const
function to check a single object if it matches a condition
~CorrCondition() override
const CorrelationTemplate * gtCorrelationTemplate() const
get / set the pointer to a Condition
Definition: CorrCondition.h:75
const GlobalBoard * getuGtB() const
get / set the pointer to uGt GlobalBoard
Definition: CorrCondition.h:82
const l1t::L1Candidate * getCandidate(const int bx, const int indexCand) const
load candidates