CMS 3D CMS Logo

L1GtCastorCondition.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)
39  static_cast<const L1GtCastorTemplate *>(castorTemplate)),
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 L1GtCastorTemplate *castorTemplate) {
82 
83  m_gtCastorTemplate = castorTemplate;
84 }
85 
87 
88  // clear the m_combinationsInCond vector
90 
91  //
92  return m_conditionResult;
93 }
94 
95 void L1GtCastorCondition::print(std::ostream &myCout) const {
96 
97  m_gtCastorTemplate->print(myCout);
99 }
bool m_conditionResult
condition result
const L1GtCastorTemplate * m_gtCastorTemplate
pointer to a L1GtCastorTemplate
bool m_condLastResult
the last result of evaluateCondition()
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...)
void copy(const L1GtCastorCondition &cp)
copy function for copy constructor and operator=
void print(std::ostream &myCout) const override
print condition
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:167
const L1GtCastorTemplate * gtCastorTemplate() const
get / set the pointer to a L1GtCondition
L1GtCastorCondition & operator=(const L1GtCastorCondition &)
void setGtCastorTemplate(const L1GtCastorTemplate *)
const bool evaluateCondition() const override
the core function to check if the condition matches
void print(std::ostream &myCout) const override
print the condition
virtual void print(std::ostream &myCout) const
print condition
const bool conditionResult() const
get / set the result
CombinationsInCond const & getCombinationsInCond() const
get all the object combinations evaluated to true in the condition
bool condLastResult() const
get the latest result for the condition