CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
30 
31 // forward declarations
32 
33 // constructors
35  : GtCondition()
36 {
37 
39 
40 }
41 
43  : GtCondition(cName)
44 {
45 
47 
48 }
49 
51  : GtCondition(cName, l1t::CondExternal, cType)
52 {
53 
55 
56 }
57 
58 // copy constructor
60  : GtCondition(cp.m_condName)
61 {
62  copy(cp);
63 }
64 
65 // destructor
67 {
68  // empty now
69 }
70 
71 // assign operator
73 {
74 
75  copy(cp);
76  return *this;
77 }
78 
79 
80 void ExternalTemplate::print(std::ostream& myCout) const
81 {
82 
83  myCout << "\n ExternalTemplate print..." << std::endl;
84 
85  GtCondition::print(myCout);
86 
87 
88  myCout << " External Channel " << m_extChannel << std::endl;
89 
90  // reset to decimal output
91  myCout << std::dec << std::endl;
92 }
93 
95 {
96 
97  m_condName = cp.condName();
99  m_condType = cp.condType();
100  m_objectType = cp.objectType();
101  m_condGEq = cp.condGEq();
102  m_condChipNr = cp.condChipNr();
104  m_extChannel = cp.extChannel();
105 
106 }
107 
108 // output stream operator
109 std::ostream& operator<<(std::ostream& os, const ExternalTemplate& result)
110 {
111  result.print(os);
112  return os;
113 
114 }
115 
116 
bool m_condGEq
the operator used for the condition (&gt;=, =): true for &gt;=
Definition: GtCondition.h:168
const int & condChipNr() const
get / set the condition-chip number the condition is located on
Definition: GtCondition.h:112
l1t::GtConditionType m_condType
the type of the condition (1s, etc)
Definition: GtCondition.h:162
GtConditionType
Definition: GtDefinitions.h:99
int m_condChipNr
condition is located on condition chip m_condChipNr
Definition: GtCondition.h:171
ExternalTemplate & operator=(const ExternalTemplate &)
virtual void print(std::ostream &myCout) const
print condition
Definition: GtCondition.cc:154
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
std::vector< L1GtObject > m_objectType
the trigger object type(s)
Definition: GtCondition.h:165
std::string m_condName
the name of the condition
Definition: GtCondition.h:156
const int & condRelativeBx() const
get / set the condition relative bx
Definition: GtCondition.h:123
l1t::GtConditionCategory m_condCategory
the category of the condition
Definition: GtCondition.h:159
tuple result
Definition: query.py:137
const l1t::GtConditionType & condType() const
get / set the type of the condition (1s, etc)
Definition: GtCondition.h:79
virtual void print(std::ostream &myCout) const
print the condition
const std::vector< L1GtObject > & objectType() const
get / set the trigger object type(s) in the condition
Definition: GtCondition.h:90
unsigned int m_extChannel
const std::string & condName() const
get / set condition name
Definition: GtCondition.h:57
virtual ~ExternalTemplate()
void copy(const ExternalTemplate &cp)
copy function for copy constructor and operator=
const l1t::GtConditionCategory & condCategory() const
get / set the category of the condition
Definition: GtCondition.h:68
int m_condRelativeBx
Definition: GtCondition.h:174
const bool condGEq() const
get / set condition GEq flag
Definition: GtCondition.h:101
const unsigned int & extChannel() const
get external channel number