CMS 3D CMS Logo

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
30 
31 // from base template condition (from event setup usually)
34  m_gtExternalTemplate(static_cast<const L1GtExternalTemplate *>(externalTemplate)),
35  m_conditionResult(result) {
36  // maximum number of objects received for the evaluation of the condition
37  // no object
39 }
40 
41 // copy constructor
43  m_gtExternalTemplate = cp.gtExternalTemplate();
44  m_conditionResult = cp.conditionResult();
45 
46  m_condMaxNumberObjects = cp.condMaxNumberObjects();
47  m_condLastResult = cp.condLastResult();
48  m_combinationsInCond = cp.getCombinationsInCond();
49 
50  m_verbosity = cp.m_verbosity;
51 }
52 
54 
55 // destructor
57  // empty
58 }
59 
60 // equal operator
62  copy(cp);
63  return *this;
64 }
65 
66 // methods
68  m_gtExternalTemplate = externalTemplate;
69 }
70 
72  // clear the m_combinationsInCond vector
74 
75  //
76  return m_conditionResult;
77 }
78 
79 void L1GtExternalCondition::print(std::ostream &myCout) const {
80  m_gtExternalTemplate->print(myCout);
82 }
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...)
virtual void print(std::ostream &myCout) const
print condition
void print(std::ostream &myCout) const override
print condition
L1GtExternalCondition & operator=(const L1GtExternalCondition &)
void setGtExternalTemplate(const L1GtExternalTemplate *)
const L1GtExternalTemplate * m_gtExternalTemplate
pointer to a L1GtExternalTemplate
const bool evaluateCondition() const override
the core function to check if the condition matches
void clear(HadCaloObj &c)
Definition: data.h:124
void copy(const L1GtExternalCondition &cp)
copy function for copy constructor and operator=
bool m_conditionResult
condition result
void print(std::ostream &myCout) const override
print the condition