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 
18 // this class header
20 
21 // system include files
22 #include <iostream>
23 
24 // user include files
25 // base classes
28 
29 // constructors
30 // default
33 
34  m_conditionResult = false;
35 
36 }
37 
38 // from base template condition (from event setup usually)
40  const bool result) :
42  m_gtCastorTemplate(static_cast<const L1GtCastorTemplate*>(castorTemplate)),
43  m_conditionResult(result) {
44 
45  // maximum number of objects received for the evaluation of the condition
46  // no object
48 
49 }
50 
51 // copy constructor
53 
56 
60 
62 
63 }
64 
67 
68  copy(cp);
69 
70 }
71 
72 // destructor
74 
75  // empty
76 
77 }
78 
79 // equal operator
81 {
82  copy(cp);
83  return *this;
84 }
85 
86 // methods
88  const L1GtCastorTemplate* castorTemplate) {
89 
90  m_gtCastorTemplate = castorTemplate;
91 
92 }
93 
95 
96  // clear the m_combinationsInCond vector
98 
99  //
100  return m_conditionResult;
101 
102 }
103 
104 void L1GtCastorCondition::print(std::ostream& myCout) const {
105 
106  m_gtCastorTemplate->print(myCout);
108 
109 }
110 
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=
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:168
tuple result
Definition: query.py:137
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