CMS 3D CMS Logo

L1GtExternalTemplate.cc
Go to the documentation of this file.
1 
22 // this class header
24 
25 // system include files
26 
27 #include <iostream>
28 #include <iomanip>
29 
30 // user include files
31 
32 // base class
33 
36 
37 // forward declarations
38 
39 // constructors
43 }
44 
48 }
49 
51  : L1GtCondition(cName, CondEnergySum, cType) {
54 
55  // actually no objects are sent by External, only the result of the condition
56  int nObjects = nrObjects();
57 
58  if (nObjects > 0) {
59  m_objectType.reserve(nObjects);
60  }
61 }
62 
63 // copy constructor
65 
66 // destructor
68  // empty now
69 }
70 
71 // assign operator
73  copy(cp);
74  return *this;
75 }
76 
77 void L1GtExternalTemplate::print(std::ostream& myCout) const {
78  myCout << "\n L1GtExternalTemplate print..." << std::endl;
79 
80  L1GtCondition::print(myCout);
81 
82  // reset to decimal output
83  myCout << std::dec << std::endl;
84 }
85 
87  m_condName = cp.condName();
88  m_condCategory = cp.condCategory();
89  m_condType = cp.condType();
90  m_objectType = cp.objectType();
91  m_condGEq = cp.condGEq();
92  m_condChipNr = cp.condChipNr();
93 }
94 
95 // output stream operator
96 std::ostream& operator<<(std::ostream& os, const L1GtExternalTemplate& result) {
97  result.print(os);
98  return os;
99 }
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
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
L1GtExternalTemplate::operator=
L1GtExternalTemplate & operator=(const L1GtExternalTemplate &)
Definition: L1GtExternalTemplate.cc:72
L1GlobalTriggerReadoutSetupFwd.h
hgcal_conditions::parameters
Definition: HGCConditions.h:86
CondEnergySum
Definition: L1GtDefinitions.h:30
operator<<
std::ostream & operator<<(std::ostream &os, const L1GtExternalTemplate &result)
Definition: L1GtExternalTemplate.cc:96
CondExternal
Definition: L1GtDefinitions.h:37
TypeExternal
Definition: L1GtDefinitions.h:21
L1GtConditionType
L1GtConditionType
Definition: L1GtDefinitions.h:4
L1GtExternalTemplate::~L1GtExternalTemplate
~L1GtExternalTemplate() override
Definition: L1GtExternalTemplate.cc:67
L1GtFwd.h
L1GtExternalTemplate
Definition: L1GtExternalTemplate.h:39
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
L1GtExternalTemplate::print
void print(std::ostream &myCout) const override
print the condition
Definition: L1GtExternalTemplate.cc:77
L1GtExternalTemplate.h
L1GtCondition::print
virtual void print(std::ostream &myCout) const
print condition
Definition: L1GtCondition.cc:133
L1GtExternalTemplate::L1GtExternalTemplate
L1GtExternalTemplate()
Definition: L1GtExternalTemplate.cc:40
L1GtExternalTemplate::copy
void copy(const L1GtExternalTemplate &cp)
copy function for copy constructor and operator=
Definition: L1GtExternalTemplate.cc:86
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