CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GtBptxCondition.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_gtBptxTemplate(static_cast<const L1GtBptxTemplate*>(bptxTemplate)),
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 L1GtBptxTemplate* bptxTemplate) {
89 
90  m_gtBptxTemplate = bptxTemplate;
91 
92 }
93 
95 
96  // clear the m_combinationsInCond vector
98 
99  //
100  return m_conditionResult;
101 
102 }
103 
104 void L1GtBptxCondition::print(std::ostream& myCout) const {
105 
106  m_gtBptxTemplate->print(myCout);
108 
109 }
110 
const bool conditionResult() const
get / set the result
bool m_condLastResult
the last result of evaluateCondition()
virtual void print(std::ostream &myCout) const
print the 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...)
bool m_conditionResult
condition result
virtual ~L1GtBptxCondition()
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
L1GtBptxCondition & operator=(const L1GtBptxCondition &)
const L1GtBptxTemplate * m_gtBptxTemplate
pointer to a L1GtBptxTemplate
void setGtBptxTemplate(const L1GtBptxTemplate *)
const L1GtBptxTemplate * gtBptxTemplate() const
get / set the pointer to a L1GtCondition
string const
Definition: compareJSON.py:14
void print(std::ostream &myCout) const
print condition
virtual void print(std::ostream &myCout) const
print condition
CombinationsInCond const & getCombinationsInCond() const
get all the object combinations evaluated to true in the condition
void copy(const L1GtBptxCondition &cp)
copy function for copy constructor and operator=
const bool evaluateCondition() const
the core function to check if the condition matches
bool condLastResult() const
get the latest result for the condition