CMS 3D CMS Logo

L1GtCastorCondition.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_gtCastorTemplate(static_cast<const L1GtCastorTemplate *>(castorTemplate)),
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_gtCastorTemplate = cp.gtCastorTemplate();
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_gtCastorTemplate = castorTemplate;
69 }
70 
72  // clear the m_combinationsInCond vector
74 
75  //
76  return m_conditionResult;
77 }
78 
79 void L1GtCastorCondition::print(std::ostream &myCout) const {
80  m_gtCastorTemplate->print(myCout);
82 }
L1GtConditionEvaluation
Definition: L1GtConditionEvaluation.h:37
L1GtCondition
Definition: L1GtCondition.h:35
L1GtConditionEvaluation::m_verbosity
int m_verbosity
verbosity level
Definition: L1GtConditionEvaluation.h:105
L1GtCastorCondition::m_gtCastorTemplate
const L1GtCastorTemplate * m_gtCastorTemplate
pointer to a L1GtCastorTemplate
Definition: L1GtCastorCondition.h:74
L1GtConditionEvaluation::combinationsInCond
CombinationsInCond & combinationsInCond() const
get all the object combinations (to fill it...)
Definition: L1GtConditionEvaluation.h:82
L1GtConditionEvaluation::print
virtual void print(std::ostream &myCout) const
print condition
Definition: L1GtConditionEvaluation.cc:34
L1GtConditionEvaluation::m_combinationsInCond
CombinationsInCond m_combinationsInCond
store all the object combinations evaluated to true in the condition
Definition: L1GtConditionEvaluation.h:102
L1GtCastorCondition
Definition: L1GtCastorCondition.h:32
watchdog.const
const
Definition: watchdog.py:83
L1GtConditionEvaluation::m_condLastResult
bool m_condLastResult
the last result of evaluateCondition()
Definition: L1GtConditionEvaluation.h:99
L1GtCastorCondition::~L1GtCastorCondition
~L1GtCastorCondition() override
Definition: L1GtCastorCondition.cc:56
L1GtCastorTemplate.h
L1GtConditionEvaluation.h
L1GtCastorCondition::print
void print(std::ostream &myCout) const override
print condition
Definition: L1GtCastorCondition.cc:79
clear
void clear(HadCaloObj &c)
Definition: data.h:124
L1GtCastorCondition::operator=
L1GtCastorCondition & operator=(const L1GtCastorCondition &)
Definition: L1GtCastorCondition.cc:61
L1GtConditionEvaluation::m_condMaxNumberObjects
int m_condMaxNumberObjects
Definition: L1GtConditionEvaluation.h:96
L1GtCastorCondition::setGtCastorTemplate
void setGtCastorTemplate(const L1GtCastorTemplate *)
Definition: L1GtCastorCondition.cc:67
L1GtCastorCondition::evaluateCondition
const bool evaluateCondition() const override
the core function to check if the condition matches
Definition: L1GtCastorCondition.cc:71
L1GtCastorCondition::copy
void copy(const L1GtCastorCondition &cp)
copy function for copy constructor and operator=
Definition: L1GtCastorCondition.cc:42
L1GtCastorTemplate::print
void print(std::ostream &myCout) const override
print the condition
Definition: L1GtCastorTemplate.cc:76
L1GtCastorCondition::m_conditionResult
bool m_conditionResult
condition result
Definition: L1GtCastorCondition.h:77
L1GtCastorCondition.h
L1GtCastorCondition::L1GtCastorCondition
L1GtCastorCondition()
Definition: L1GtCastorCondition.cc:29
mps_fire.result
result
Definition: mps_fire.py:311
CommonMethods.cp
def cp(fromDir, toDir, listOfFiles, overwrite=False, smallList=False)
Definition: CommonMethods.py:192
L1GtCastorTemplate
Definition: L1GtCastorTemplate.h:38