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 }
L1GtConditionType
void copy(const L1GtBptxTemplate &cp)
copy function for copy constructor and operator=
std::vector< L1GtObject > m_objectType
the trigger object type(s)
L1GtConditionType m_condType
the type of the condition (1s, etc)
L1GtConditionCategory m_condCategory
the category of the condition
std::string m_condName
the name of the condition
std::ostream & operator<<(std::ostream &os, const L1GtBptxTemplate &result)
L1GtBptxTemplate & operator=(const L1GtBptxTemplate &)
~L1GtBptxTemplate() override
void print(std::ostream &myCout) const override
print the condition
bool m_condGEq
the operator used for the condition (>=, =): true for >=
const int nrObjects() const
get number of trigger objects
int m_condChipNr
condition is located on condition chip m_condChipNr
virtual void print(std::ostream &myCout) const
print condition