CMS 3D CMS Logo

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
l1t::GlobalBoard
Definition: GlobalBoard.h:52
l1t::CaloCondition::m_gtCaloTemplate
const CaloTemplate * m_gtCaloTemplate
pointer to a CaloTemplate
Definition: CaloCondition.h:101
CaloTemplate
Definition: CaloTemplate.h:33
l1t::CaloCondition::operator=
CaloCondition & operator=(const CaloCondition &)
Definition: CaloCondition.cc:103
l1t::CaloCondition::getuGtB
const GlobalBoard * getuGtB() const
get / set the pointer to uGt GlobalBoard
Definition: CaloCondition.h:75
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
l1t::CaloCondition::gtCorrParDeltaPhiNrBins
const int gtCorrParDeltaPhiNrBins() const
get / set maximum number of bins for the delta phi scales
Definition: CaloCondition.h:85
l1t::CaloCondition
Definition: CaloCondition.h:38
l1t::CaloCondition::gtCaloTemplate
const CaloTemplate * gtCaloTemplate() const
get / set the pointer to a Condition
Definition: CaloCondition.h:70
l1t::CaloCondition::setuGtB
void setuGtB(const GlobalBoard *)
set the pointer to uGT GlobalBoard
Definition: CaloCondition.cc:112
l1t::L1Candidate
Definition: L1Candidate.h:15
l1t::CaloCondition::getCandidate
const l1t::L1Candidate * getCandidate(const int bx, const int indexCand) const
load calo candidates
Definition: CaloCondition.cc:419
l1t::CaloCondition::m_corrParDeltaPhiNrBins
unsigned int m_corrParDeltaPhiNrBins
Definition: CaloCondition.h:110
l1t::CaloCondition::print
void print(std::ostream &myCout) const override
print condition
Definition: CaloCondition.cc:540
l1t::CaloCondition::checkObjectParameter
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
Definition: CaloCondition.cc:452
GlobalBoard
l1t
delete x;
Definition: CaloConfig.h:22
cand
Definition: decayParser.h:32
l1t::CaloCondition::~CaloCondition
~CaloCondition() override
Definition: CaloCondition.cc:98
ConditionEvaluation.h
l1t::CaloCondition::CaloCondition
CaloCondition()
Definition: CaloCondition.cc:39
l1t::CaloCondition::m_uGtB
const GlobalBoard * m_uGtB
pointer to uGt GlobalBoard, to be able to get the trigger objects
Definition: CaloCondition.h:104
l1t::ConditionEvaluation
Definition: ConditionEvaluation.h:39
l1t::CaloCondition::setGtCaloTemplate
void setGtCaloTemplate(const CaloTemplate *)
Definition: CaloCondition.cc:109
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
l1t::CaloCondition::copy
void copy(const CaloCondition &cp)
copy function for copy constructor and operator=
Definition: CaloCondition.cc:81
GlobalCondition
Definition: GlobalCondition.h:33
l1t::CaloCondition::setGtCorrParDeltaPhiNrBins
void setGtCorrParDeltaPhiNrBins(const int &)
Definition: CaloCondition.cc:120
CommonMethods.cp
def cp(fromDir, toDir, listOfFiles, overwrite=False, smallList=False)
Definition: CommonMethods.py:192
l1t::CaloCondition::m_ifCaloEtaNumberBits
int m_ifCaloEtaNumberBits
number of bits for eta of calorimeter objects
Definition: CaloCondition.h:107
l1t::CaloCondition::evaluateCondition
const bool evaluateCondition(const int bxEval) const override
the core function to check if the condition matches
Definition: CaloCondition.cc:125
l1t::CaloCondition::gtIfCaloEtaNumberBits
const int gtIfCaloEtaNumberBits() const
get / set the number of bits for eta of calorimeter objects
Definition: CaloCondition.h:80
l1t::CaloCondition::setGtIfCaloEtaNumberBits
void setGtIfCaloEtaNumberBits(const int &)
Definition: CaloCondition.cc:115