CMS 3D CMS Logo

L1GtExternalCondition.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 L1GtCondition *externalTemplate, const bool result)
39  static_cast<const L1GtExternalTemplate *>(externalTemplate)),
40  m_conditionResult(result) {
41 
42  // maximum number of objects received for the evaluation of the condition
43  // no object
45 }
46 
47 // copy constructor
49 
52 
56 
58 }
59 
62 
63  copy(cp);
64 }
65 
66 // destructor
68 
69  // empty
70 }
71 
72 // equal operator
75  copy(cp);
76  return *this;
77 }
78 
79 // methods
81  const L1GtExternalTemplate *externalTemplate) {
82 
83  m_gtExternalTemplate = externalTemplate;
84 }
85 
87 
88  // clear the m_combinationsInCond vector
90 
91  //
92  return m_conditionResult;
93 }
94 
95 void L1GtExternalCondition::print(std::ostream &myCout) const {
96 
97  m_gtExternalTemplate->print(myCout);
99 }
const L1GtExternalTemplate * gtExternalTemplate() const
get / set the pointer to a L1GtCondition
bool m_condLastResult
the last result of evaluateCondition()
const bool evaluateCondition() const override
the core function to check if the condition matches
CombinationsInCond m_combinationsInCond
store all the object combinations evaluated to true in the condition
CombinationsInCond & combinationsInCond() const
get all the object combinations (to fill it...)
L1GtExternalCondition & operator=(const L1GtExternalCondition &)
void setGtExternalTemplate(const L1GtExternalTemplate *)
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:167
const L1GtExternalTemplate * m_gtExternalTemplate
pointer to a L1GtExternalTemplate
void print(std::ostream &myCout) const override
print condition
const bool conditionResult() const
get / set the result
void print(std::ostream &myCout) const override
print the condition
virtual void print(std::ostream &myCout) const
print condition
void copy(const L1GtExternalCondition &cp)
copy function for copy constructor and operator=
CombinationsInCond const & getCombinationsInCond() const
get all the object combinations evaluated to true in the condition
bool m_conditionResult
condition result
bool condLastResult() const
get the latest result for the condition