CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
31 
32  m_conditionResult = false;
33 
34 }
35 
36 // from base template condition (from event setup usually)
38  const bool result) :
40  m_gtCastorTemplate(static_cast<const L1GtCastorTemplate*>(castorTemplate)),
41  m_conditionResult(result) {
42 
43  // maximum number of objects received for the evaluation of the condition
44  // no object
46 
47 }
48 
49 // copy constructor
51 
54 
58 
60 
61 }
62 
65 
66  copy(cp);
67 
68 }
69 
70 // destructor
72 
73  // empty
74 
75 }
76 
77 // equal operator
79 {
80  copy(cp);
81  return *this;
82 }
83 
84 // methods
86  const L1GtCastorTemplate* castorTemplate) {
87 
88  m_gtCastorTemplate = castorTemplate;
89 
90 }
91 
93 
94  // clear the m_combinationsInCond vector
96 
97  //
98  return m_conditionResult;
99 
100 }
101 
102 void L1GtCastorCondition::print(std::ostream& myCout) const {
103 
104  m_gtCastorTemplate->print(myCout);
106 
107 }
108 
bool m_conditionResult
condition result
const bool evaluateCondition() const
the core function to check if the condition matches
const L1GtCastorTemplate * m_gtCastorTemplate
pointer to a L1GtCastorTemplate
bool m_condLastResult
the last result of evaluateCondition()
void print(std::ostream &myCout) const
print condition
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=
tuple result
Definition: mps_fire.py:95
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
virtual void print(std::ostream &myCout) const
print the condition
L1GtCastorCondition & operator=(const L1GtCastorCondition &)
string const
Definition: compareJSON.py:14
void setGtCastorTemplate(const L1GtCastorTemplate *)
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