CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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();
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 }
const int nrObjects() const
get number of trigger objects
L1GtConditionType
const std::string & condName() const
get / set condition name
Definition: L1GtCondition.h:52
void copy(const L1GtBptxTemplate &cp)
copy function for copy constructor and operator=
const int & condChipNr() const
get / set the condition-chip number the condition is located on
Definition: L1GtCondition.h:77
const std::vector< L1GtObject > & objectType() const
get / set the trigger object type(s) in the condition
Definition: L1GtCondition.h:67
std::vector< L1GtObject > m_objectType
the trigger object type(s)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
virtual void print(std::ostream &myCout) const
print condition
tuple result
Definition: mps_fire.py:311
L1GtConditionType m_condType
the type of the condition (1s, etc)
L1GtConditionCategory m_condCategory
the category of the condition
const L1GtConditionType & condType() const
get / set the type of the condition (1s, etc)
Definition: L1GtCondition.h:62
std::string m_condName
the name of the condition
const L1GtConditionCategory & condCategory() const
get / set the category of the condition
Definition: L1GtCondition.h:57
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 (&gt;=, =): true for &gt;=
const bool condGEq() const
get / set condition GEq flag
Definition: L1GtCondition.h:72
int m_condChipNr
condition is located on condition chip m_condChipNr