CMS 3D CMS Logo

L1GtCastorTemplate.cc
Go to the documentation of this file.
1 
21 // this class header
23 
24 // system include files
25 
26 #include <iostream>
27 #include <iomanip>
28 
29 // user include files
30 
31 // base class
32 
35 
36 // forward declarations
37 
38 // constructors
42 }
43 
47 }
48 
50  : L1GtCondition(cName, CondEnergySum, cType) {
53 
54  // actually no objects are sent by CASTOR, only the result of the condition
55  int nObjects = nrObjects();
56 
57  if (nObjects > 0) {
58  m_objectType.reserve(nObjects);
59  }
60 }
61 
62 // copy constructor
64 
65 // destructor
67  // empty now
68 }
69 
70 // assign operator
72  copy(cp);
73  return *this;
74 }
75 
76 void L1GtCastorTemplate::print(std::ostream& myCout) const {
77  myCout << "\n L1GtCastorTemplate print..." << std::endl;
78 
79  L1GtCondition::print(myCout);
80 
81  // reset to decimal output
82  myCout << std::dec << std::endl;
83 }
84 
86  m_condName = cp.condName();
87  m_condCategory = cp.condCategory();
88  m_condType = cp.condType();
89  m_objectType = cp.objectType();
90  m_condGEq = cp.condGEq();
91  m_condChipNr = cp.condChipNr();
92 }
93 
94 // output stream operator
95 std::ostream& operator<<(std::ostream& os, const L1GtCastorTemplate& result) {
96  result.print(os);
97  return os;
98 }
L1GtCondition
Definition: L1GtCondition.h:35
L1GtCondition::m_condCategory
L1GtConditionCategory m_condCategory
the category of the condition
Definition: L1GtCondition.h:104
L1GtCondition::m_condType
L1GtConditionType m_condType
the type of the condition (1s, etc)
Definition: L1GtCondition.h:107
L1GtCastorTemplate::copy
void copy(const L1GtCastorTemplate &cp)
copy function for copy constructor and operator=
Definition: L1GtCastorTemplate.cc:85
TypeCastor
Definition: L1GtDefinitions.h:17
L1GtCondition::m_condGEq
bool m_condGEq
the operator used for the condition (>=, =): true for >=
Definition: L1GtCondition.h:113
L1GtCondition::nrObjects
const int nrObjects() const
get number of trigger objects
Definition: L1GtCondition.cc:62
L1GlobalTriggerReadoutSetupFwd.h
hgcal_conditions::parameters
Definition: HGCConditions.h:86
CondEnergySum
Definition: L1GtDefinitions.h:30
L1GtCastorTemplate::L1GtCastorTemplate
L1GtCastorTemplate()
Definition: L1GtCastorTemplate.cc:39
L1GtCastorTemplate.h
L1GtCastorTemplate::~L1GtCastorTemplate
~L1GtCastorTemplate() override
Definition: L1GtCastorTemplate.cc:66
L1GtConditionType
L1GtConditionType
Definition: L1GtDefinitions.h:4
CondCastor
Definition: L1GtDefinitions.h:33
L1GtCastorTemplate::operator=
L1GtCastorTemplate & operator=(const L1GtCastorTemplate &)
Definition: L1GtCastorTemplate.cc:71
L1GtFwd.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1GtCondition::m_condChipNr
int m_condChipNr
condition is located on condition chip m_condChipNr
Definition: L1GtCondition.h:116
L1GtCastorTemplate::print
void print(std::ostream &myCout) const override
print the condition
Definition: L1GtCastorTemplate.cc:76
operator<<
std::ostream & operator<<(std::ostream &os, const L1GtCastorTemplate &result)
Definition: L1GtCastorTemplate.cc:95
L1GtCondition::print
virtual void print(std::ostream &myCout) const
print condition
Definition: L1GtCondition.cc:133
L1GtCondition::m_objectType
std::vector< L1GtObject > m_objectType
the trigger object type(s)
Definition: L1GtCondition.h:110
mps_fire.result
result
Definition: mps_fire.py:311
TauDecayModes.dec
dec
Definition: TauDecayModes.py:142
L1GtCondition::m_condName
std::string m_condName
the name of the condition
Definition: L1GtCondition.h:101
L1GtCastorTemplate
Definition: L1GtCastorTemplate.h:38