CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
ExternalTemplate Class Reference

#include <ExternalTemplate.h>

Inheritance diagram for ExternalTemplate:
GtCondition

Public Member Functions

const unsigned int & extChannel () const
 get external channel number More...
 
 ExternalTemplate ()
 
 ExternalTemplate (const std::string &)
 
 ExternalTemplate (const std::string &, const l1t::GtConditionType &)
 
 ExternalTemplate (const ExternalTemplate &)
 
ExternalTemplateoperator= (const ExternalTemplate &)
 
virtual void print (std::ostream &myCout) const
 print the condition More...
 
void setExternalChannel (unsigned int extCh)
 set functions More...
 
virtual ~ExternalTemplate ()
 
- Public Member Functions inherited from GtCondition
const l1t::GtConditionCategorycondCategory () const
 get / set the category of the condition More...
 
const int & condChipNr () const
 get / set the condition-chip number the condition is located on More...
 
const bool condGEq () const
 get / set condition GEq flag More...
 
const std::string & condName () const
 get / set condition name More...
 
const int & condRelativeBx () const
 get / set the condition relative bx More...
 
const l1t::GtConditionTypecondType () const
 get / set the type of the condition (1s, etc) More...
 
const bool corr () const
 
 GtCondition ()
 
 GtCondition (const std::string &)
 constructor from condition name More...
 
 GtCondition (const std::string &, const l1t::GtConditionCategory &, const l1t::GtConditionType &)
 constructor from condition name, category and type More...
 
const int nrObjects () const
 get number of trigger objects More...
 
const std::vector< L1GtObject > & objectType () const
 get / set the trigger object type(s) in the condition More...
 
void setCondCategory (const l1t::GtConditionCategory &cCategory)
 
void setCondChipNr (const int &cChipNr)
 
void setCondGEq (const bool &cGEq)
 
void setCondName (const std::string &cName)
 
void setCondRelativeBx (const int &cRelativeBx)
 
void setCondType (const l1t::GtConditionType &cType)
 
void setObjectType (const std::vector< L1GtObject > &objType)
 
const bool wsc () const
 
virtual ~GtCondition ()
 destructor More...
 

Private Member Functions

void copy (const ExternalTemplate &cp)
 copy function for copy constructor and operator= More...
 

Private Attributes

unsigned int m_extChannel
 

Friends

std::ostream & operator<< (std::ostream &, const ExternalTemplate &)
 output stream operator More...
 

Additional Inherited Members

- Protected Attributes inherited from GtCondition
l1t::GtConditionCategory m_condCategory
 the category of the condition More...
 
int m_condChipNr
 condition is located on condition chip m_condChipNr More...
 
bool m_condGEq
 the operator used for the condition (>=, =): true for >= More...
 
std::string m_condName
 the name of the condition More...
 
int m_condRelativeBx
 
l1t::GtConditionType m_condType
 the type of the condition (1s, etc) More...
 
std::vector< L1GtObjectm_objectType
 the trigger object type(s) More...
 

Detailed Description

Description: L1 Global Trigger energy-sum template.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 32 of file ExternalTemplate.h.

Constructor & Destructor Documentation

ExternalTemplate::ExternalTemplate ( )

Definition at line 34 of file ExternalTemplate.cc.

References l1t::CondExternal, and GtCondition::m_condCategory.

35  : GtCondition()
36 {
37 
39 
40 }
l1t::GtConditionCategory m_condCategory
the category of the condition
Definition: GtCondition.h:159
ExternalTemplate::ExternalTemplate ( const std::string &  cName)

Definition at line 42 of file ExternalTemplate.cc.

References l1t::CondExternal, and GtCondition::m_condCategory.

43  : GtCondition(cName)
44 {
45 
47 
48 }
l1t::GtConditionCategory m_condCategory
the category of the condition
Definition: GtCondition.h:159
ExternalTemplate::ExternalTemplate ( const std::string &  cName,
const l1t::GtConditionType cType 
)

Definition at line 50 of file ExternalTemplate.cc.

References l1t::CondExternal, and GtCondition::m_condCategory.

51  : GtCondition(cName, l1t::CondExternal, cType)
52 {
53 
55 
56 }
l1t::GtConditionCategory m_condCategory
the category of the condition
Definition: GtCondition.h:159
ExternalTemplate::ExternalTemplate ( const ExternalTemplate cp)

Definition at line 59 of file ExternalTemplate.cc.

References copy().

61 {
62  copy(cp);
63 }
std::string m_condName
the name of the condition
Definition: GtCondition.h:156
void copy(const ExternalTemplate &cp)
copy function for copy constructor and operator=
ExternalTemplate::~ExternalTemplate ( )
virtual

Definition at line 66 of file ExternalTemplate.cc.

67 {
68  // empty now
69 }

Member Function Documentation

void ExternalTemplate::copy ( const ExternalTemplate cp)
private

copy function for copy constructor and operator=

Definition at line 94 of file ExternalTemplate.cc.

References GtCondition::condCategory(), GtCondition::condChipNr(), GtCondition::condGEq(), GtCondition::condName(), GtCondition::condRelativeBx(), GtCondition::condType(), extChannel(), GtCondition::m_condCategory, GtCondition::m_condChipNr, GtCondition::m_condGEq, GtCondition::m_condName, GtCondition::m_condRelativeBx, GtCondition::m_condType, m_extChannel, GtCondition::m_objectType, and GtCondition::objectType().

Referenced by ExternalTemplate(), and operator=().

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 }
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
int m_condChipNr
condition is located on condition chip m_condChipNr
Definition: GtCondition.h:171
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
const l1t::GtConditionType & condType() const
get / set the type of the condition (1s, etc)
Definition: GtCondition.h:79
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
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
const unsigned int& ExternalTemplate::extChannel ( ) const
inline

get external channel number

Definition at line 63 of file ExternalTemplate.h.

References m_extChannel.

Referenced by copy().

64  {
65  return m_extChannel;
66  }
unsigned int m_extChannel
ExternalTemplate & ExternalTemplate::operator= ( const ExternalTemplate cp)

Definition at line 72 of file ExternalTemplate.cc.

References copy().

73 {
74 
75  copy(cp);
76  return *this;
77 }
void copy(const ExternalTemplate &cp)
copy function for copy constructor and operator=
void ExternalTemplate::print ( std::ostream &  myCout) const
virtual

print the condition

Reimplemented from GtCondition.

Definition at line 80 of file ExternalTemplate.cc.

References TauDecayModes::dec, m_extChannel, and GtCondition::print().

Referenced by operator<<().

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 }
virtual void print(std::ostream &myCout) const
print condition
Definition: GtCondition.cc:154
unsigned int m_extChannel
void ExternalTemplate::setExternalChannel ( unsigned int  extCh)
inline

set functions

Definition at line 69 of file ExternalTemplate.h.

References m_extChannel.

Referenced by l1t::TriggerMenuParser::parseExternal(), and l1t::TriggerMenuXmlParser::parseExternalV2().

69 { m_extChannel = extCh; }
unsigned int m_extChannel

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const ExternalTemplate result 
)
friend

output stream operator

Definition at line 109 of file ExternalTemplate.cc.

110 {
111  result.print(os);
112  return os;
113 
114 }
virtual void print(std::ostream &myCout) const
print the condition

Member Data Documentation

unsigned int ExternalTemplate::m_extChannel
private

Definition at line 85 of file ExternalTemplate.h.

Referenced by copy(), extChannel(), print(), and setExternalChannel().