CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GtExternalCondition.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_gtExternalTemplate(static_cast<const L1GtExternalTemplate*>(externalTemplate)),
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 L1GtExternalTemplate* externalTemplate) {
89 
90  m_gtExternalTemplate = externalTemplate;
91 
92 }
93 
95 
96  // clear the m_combinationsInCond vector
98 
99  //
100  return m_conditionResult;
101 
102 }
103 
104 void L1GtExternalCondition::print(std::ostream& myCout) const {
105 
106  m_gtExternalTemplate->print(myCout);
108 
109 }
110 
const L1GtExternalTemplate * gtExternalTemplate() const
get / set the pointer to a L1GtCondition
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...)
const bool evaluateCondition() const
the core function to check if the condition matches
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:168
tuple result
Definition: query.py:137
const L1GtExternalTemplate * m_gtExternalTemplate
pointer to a L1GtExternalTemplate
const bool conditionResult() const
get / set the result
void print(std::ostream &myCout) const
print condition
string const
Definition: compareJSON.py:14
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
virtual void print(std::ostream &myCout) const
print the condition
bool condLastResult() const
get the latest result for the condition