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 
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_gtBptxTemplate(static_cast<const L1GtBptxTemplate*>(bptxTemplate)),
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 L1GtBptxTemplate* bptxTemplate) {
87 
88  m_gtBptxTemplate = bptxTemplate;
89 
90 }
91 
93 
94  // clear the m_combinationsInCond vector
96 
97  //
98  return m_conditionResult;
99 
100 }
101 
102 void L1GtBptxCondition::print(std::ostream& myCout) const {
103 
104  m_gtBptxTemplate->print(myCout);
106 
107 }
108 
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
tuple result
Definition: mps_fire.py:84
virtual ~L1GtBptxCondition()
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:167
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