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=
ExternalTemplate & operator=(const ExternalTemplate &)
Definition: ExternalTemplate.cc:52
GlobalCondition::print
virtual void print(std::ostream &myCout) const
print condition
Definition: GlobalCondition.cc:166
hgcal_conditions::parameters
Definition: HGCConditions.h:86
GlobalCondition::m_condRelativeBx
int m_condRelativeBx
Definition: GlobalCondition.h:126
ExternalTemplate
Definition: ExternalTemplate.h:32
l1t::GtConditionType
GtConditionType
Definition: GlobalDefinitions.h:49
ExternalTemplate.h
CondExternal
Definition: L1GtDefinitions.h:37
GlobalCondition::m_condChipNr
int m_condChipNr
condition is located on condition chip m_condChipNr
Definition: GlobalCondition.h:123
GlobalCondition::m_condCategory
l1t::GtConditionCategory m_condCategory
the category of the condition
Definition: GlobalCondition.h:111
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GlobalCondition::m_objectType
std::vector< l1t::GlobalObject > m_objectType
the trigger object type(s)
Definition: GlobalCondition.h:117
l1t
delete x;
Definition: CaloConfig.h:22
ExternalTemplate::~ExternalTemplate
~ExternalTemplate() override
Definition: ExternalTemplate.cc:47
GlobalCondition::m_condGEq
bool m_condGEq
the operator used for the condition (>=, =): true for >=
Definition: GlobalCondition.h:120
ExternalTemplate::copy
void copy(const ExternalTemplate &cp)
copy function for copy constructor and operator=
Definition: ExternalTemplate.cc:68
GlobalCondition::m_condName
std::string m_condName
the name of the condition
Definition: GlobalCondition.h:108
ExternalTemplate::m_extChannel
unsigned int m_extChannel
Definition: ExternalTemplate.h:72
ExternalTemplate::ExternalTemplate
ExternalTemplate()
Definition: ExternalTemplate.cc:32
ExternalTemplate::print
void print(std::ostream &myCout) const override
print the condition
Definition: ExternalTemplate.cc:57
GlobalCondition::m_condType
l1t::GtConditionType m_condType
the type of the condition (1s, etc)
Definition: GlobalCondition.h:114
l1t::CondExternal
Definition: GlobalDefinitions.h:99
mps_fire.result
result
Definition: mps_fire.py:311
GlobalCondition
Definition: GlobalCondition.h:34
operator<<
std::ostream & operator<<(std::ostream &os, const ExternalTemplate &result)
Definition: ExternalTemplate.cc:80
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143