test
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 
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_gtExternalTemplate(static_cast<const L1GtExternalTemplate*>(externalTemplate)),
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 L1GtExternalTemplate* externalTemplate) {
87 
88  m_gtExternalTemplate = externalTemplate;
89 
90 }
91 
93 
94  // clear the m_combinationsInCond vector
96 
97  //
98  return m_conditionResult;
99 
100 }
101 
102 void L1GtExternalCondition::print(std::ostream& myCout) const {
103 
104  m_gtExternalTemplate->print(myCout);
106 
107 }
108 
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
tuple result
Definition: mps_fire.py:84
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
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