CMS 3D CMS Logo

ExternalTemplate.cc
Go to the documentation of this file.
1 
17 // this class header
19 
20 // system include files
21 
22 #include <iostream>
23 #include <iomanip>
24 
25 // user include files
26 
27 // base class
28 
29 
30 // forward declarations
31 
32 // constructors
34  : GlobalCondition()
35 {
36 
38 
39 }
40 
42  : GlobalCondition(cName)
43 {
44 
46 
47 }
48 
50  : GlobalCondition(cName, l1t::CondExternal, cType)
51 {
52 
54 
55 }
56 
57 // copy constructor
60 {
61  copy(cp);
62 }
63 
64 // destructor
66 {
67  // empty now
68 }
69 
70 // assign operator
72 {
73 
74  copy(cp);
75  return *this;
76 }
77 
78 
79 void ExternalTemplate::print(std::ostream& myCout) const
80 {
81 
82  myCout << "\n ExternalTemplate print..." << std::endl;
83 
84  GlobalCondition::print(myCout);
85 
86 
87  myCout << " External Channel " << m_extChannel << std::endl;
88 
89  // reset to decimal output
90  myCout << std::dec << std::endl;
91 }
92 
94 {
95 
96  m_condName = cp.condName();
98  m_condType = cp.condType();
99  m_objectType = cp.objectType();
100  m_condGEq = cp.condGEq();
101  m_condChipNr = cp.condChipNr();
103  m_extChannel = cp.extChannel();
104 
105 }
106 
107 // output stream operator
108 std::ostream& operator<<(std::ostream& os, const ExternalTemplate& result)
109 {
110  result.print(os);
111  return os;
112 
113 }
114 
115 
ExternalTemplate & operator=(const ExternalTemplate &)
friend std::ostream & operator<<(std::ostream &, const ExternalTemplate &)
output stream operator
bool m_condGEq
the operator used for the condition (>=, =): true for >=
const bool condGEq() const
get / set condition GEq flag
delete x;
Definition: CaloConfig.h:22
const l1t::GtConditionCategory & condCategory() const
get / set the category of the condition
const l1t::GtConditionType & condType() const
get / set the type of the condition (1s, etc)
const int & condRelativeBx() const
get / set the condition relative bx
const std::vector< l1t::GlobalObject > & objectType() const
get / set the trigger object type(s) in the condition
std::string m_condName
the name of the condition
const int & condChipNr() const
get / set the condition-chip number the condition is located on
int m_condChipNr
condition is located on condition chip m_condChipNr
l1t::GtConditionCategory m_condCategory
the category of the condition
const std::string & condName() const
get / set condition name
unsigned int m_extChannel
virtual void print(std::ostream &myCout) const
print condition
void copy(const ExternalTemplate &cp)
copy function for copy constructor and operator=
void print(std::ostream &myCout) const override
print the condition
~ExternalTemplate() override
const unsigned int & extChannel() const
get external channel number
std::vector< l1t::GlobalObject > m_objectType
the trigger object type(s)
l1t::GtConditionType m_condType
the type of the condition (1s, etc)