CMS 3D CMS Logo

L1GtBptxTemplate.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 BPTX, 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 L1GtBptxTemplate::print(std::ostream& myCout) const {
78  myCout << "\n L1GtBptxTemplate 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 L1GtBptxTemplate& result) {
97  result.print(os);
98  return os;
99 }
L1GtBptxTemplate::~L1GtBptxTemplate
~L1GtBptxTemplate() override
Definition: L1GtBptxTemplate.cc:67
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
CondBptx
Definition: L1GtDefinitions.h:36
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
TypeBptx
Definition: L1GtDefinitions.h:20
L1GlobalTriggerReadoutSetupFwd.h
L1GtBptxTemplate::L1GtBptxTemplate
L1GtBptxTemplate()
Definition: L1GtBptxTemplate.cc:40
L1GtBptxTemplate
Definition: L1GtBptxTemplate.h:39
hgcal_conditions::parameters
Definition: HGCConditions.h:86
CondEnergySum
Definition: L1GtDefinitions.h:30
L1GtBptxTemplate::print
void print(std::ostream &myCout) const override
print the condition
Definition: L1GtBptxTemplate.cc:77
L1GtBptxTemplate::operator=
L1GtBptxTemplate & operator=(const L1GtBptxTemplate &)
Definition: L1GtBptxTemplate.cc:72
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1GtConditionType
L1GtConditionType
Definition: L1GtDefinitions.h:4
L1GtBptxTemplate::copy
void copy(const L1GtBptxTemplate &cp)
copy function for copy constructor and operator=
Definition: L1GtBptxTemplate.cc:86
L1GtFwd.h
L1GtCondition::m_condChipNr
int m_condChipNr
condition is located on condition chip m_condChipNr
Definition: L1GtCondition.h:116
L1GtCondition::print
virtual void print(std::ostream &myCout) const
print condition
Definition: L1GtCondition.cc:133
L1GtBptxTemplate.h
operator<<
std::ostream & operator<<(std::ostream &os, const L1GtBptxTemplate &result)
Definition: L1GtBptxTemplate.cc:96
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:143
L1GtCondition::m_condName
std::string m_condName
the name of the condition
Definition: L1GtCondition.h:101