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 // forward declarations
30 
31 // constructors
33 
36 }
37 
39  : GlobalCondition(cName, l1t::CondExternal, cType) {
41 }
42 
43 // copy constructor
45 
46 // destructor
48  // empty now
49 }
50 
51 // assign operator
53  copy(cp);
54  return *this;
55 }
56 
57 void ExternalTemplate::print(std::ostream& myCout) const {
58  myCout << "\n ExternalTemplate print..." << std::endl;
59 
60  GlobalCondition::print(myCout);
61 
62  myCout << " External Channel " << m_extChannel << std::endl;
63 
64  // reset to decimal output
65  myCout << std::dec << std::endl;
66 }
67 
69  m_condName = cp.condName();
70  m_condCategory = cp.condCategory();
71  m_condType = cp.condType();
72  m_objectType = cp.objectType();
73  m_condGEq = cp.condGEq();
74  m_condChipNr = cp.condChipNr();
75  m_condRelativeBx = cp.condRelativeBx();
76  m_extChannel = cp.extChannel();
77 }
78 
79 // output stream operator
80 std::ostream& operator<<(std::ostream& os, const ExternalTemplate& result) {
81  result.print(os);
82  return os;
83 }
ExternalTemplate & operator=(const ExternalTemplate &)
void print(std::ostream &myCout) const override
print the condition
bool m_condGEq
the operator used for the condition (>=, =): true for >=
delete x;
Definition: CaloConfig.h:22
std::ostream & operator<<(std::ostream &os, const ExternalTemplate &result)
std::string m_condName
the name of the condition
int m_condChipNr
condition is located on condition chip m_condChipNr
l1t::GtConditionCategory m_condCategory
the category of the condition
unsigned int m_extChannel
void copy(const ExternalTemplate &cp)
copy function for copy constructor and operator=
~ExternalTemplate() override
std::vector< l1t::GlobalObject > m_objectType
the trigger object type(s)
l1t::GtConditionType m_condType
the type of the condition (1s, etc)
virtual void print(std::ostream &myCout) const
print condition