CMS 3D CMS Logo

L1GtBptxCondition.cc
Go to the documentation of this file.
1 
16 // this class header
18 
19 // system include files
20 #include <iostream>
21 
22 // user include files
23 // base classes
26 
27 // constructors
28 // default
30 
31  m_conditionResult = false;
32 }
33 
34 // from base template condition (from event setup usually)
36  const bool result)
38  m_gtBptxTemplate(static_cast<const L1GtBptxTemplate *>(bptxTemplate)),
39  m_conditionResult(result) {
40 
41  // maximum number of objects received for the evaluation of the condition
42  // no object
44 }
45 
46 // copy constructor
48 
51 
55 
57 }
58 
61 
62  copy(cp);
63 }
64 
65 // destructor
67 
68  // empty
69 }
70 
71 // equal operator
73  copy(cp);
74  return *this;
75 }
76 
77 // methods
79  const L1GtBptxTemplate *bptxTemplate) {
80 
81  m_gtBptxTemplate = bptxTemplate;
82 }
83 
85 
86  // clear the m_combinationsInCond vector
88 
89  //
90  return m_conditionResult;
91 }
92 
93 void L1GtBptxCondition::print(std::ostream &myCout) const {
94 
95  m_gtBptxTemplate->print(myCout);
97 }
const bool conditionResult() const
get / set the result
bool m_condLastResult
the last result of evaluateCondition()
CombinationsInCond m_combinationsInCond
store all the object combinations evaluated to true in the condition
void print(std::ostream &myCout) const override
print condition
const bool evaluateCondition() const override
the core function to check if the condition matches
CombinationsInCond & combinationsInCond() const
get all the object combinations (to fill it...)
bool m_conditionResult
condition result
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:167
L1GtBptxCondition & operator=(const L1GtBptxCondition &)
const L1GtBptxTemplate * m_gtBptxTemplate
pointer to a L1GtBptxTemplate
void setGtBptxTemplate(const L1GtBptxTemplate *)
~L1GtBptxCondition() override
const L1GtBptxTemplate * gtBptxTemplate() const
get / set the pointer to a L1GtCondition
virtual void print(std::ostream &myCout) const
print condition
void print(std::ostream &myCout) const override
print the condition
CombinationsInCond const & getCombinationsInCond() const
get all the object combinations evaluated to true in the condition
void copy(const L1GtBptxCondition &cp)
copy function for copy constructor and operator=
bool condLastResult() const
get the latest result for the condition