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();
71  m_condType = cp.condType();
72  m_objectType = cp.objectType();
73  m_condGEq = cp.condGEq();
74  m_condChipNr = cp.condChipNr();
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 &)
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)