test
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:
GlobalCondition

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 GlobalCondition
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
 
 GlobalCondition ()
 
 GlobalCondition (const std::string &)
 constructor from condition name More...
 
 GlobalCondition (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< GlobalObject > & 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< GlobalObject > &objType)
 
const bool wsc () const
 
virtual ~GlobalCondition ()
 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 GlobalCondition
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< GlobalObjectm_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 33 of file ExternalTemplate.cc.

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

34  : GlobalCondition()
35 {
36 
38 
39 }
l1t::GtConditionCategory m_condCategory
the category of the condition
ExternalTemplate::ExternalTemplate ( const std::string &  cName)

Definition at line 41 of file ExternalTemplate.cc.

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

42  : GlobalCondition(cName)
43 {
44 
46 
47 }
l1t::GtConditionCategory m_condCategory
the category of the condition
ExternalTemplate::ExternalTemplate ( const std::string &  cName,
const l1t::GtConditionType cType 
)

Definition at line 49 of file ExternalTemplate.cc.

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

50  : GlobalCondition(cName, l1t::CondExternal, cType)
51 {
52 
54 
55 }
l1t::GtConditionCategory m_condCategory
the category of the condition
ExternalTemplate::ExternalTemplate ( const ExternalTemplate cp)

Definition at line 58 of file ExternalTemplate.cc.

References copy().

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

Definition at line 65 of file ExternalTemplate.cc.

66 {
67  // empty now
68 }

Member Function Documentation

void ExternalTemplate::copy ( const ExternalTemplate cp)
private

copy function for copy constructor and operator=

Definition at line 93 of file ExternalTemplate.cc.

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

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

94 {
95 
96  m_condName = cp.condName();
98  m_condType = cp.condType();
99  m_objectType = cp.objectType();
100  m_condGEq = cp.condGEq();
101  m_condChipNr = cp.condChipNr();
103  m_extChannel = cp.extChannel();
104 
105 }
bool m_condGEq
the operator used for the condition (&gt;=, =): true for &gt;=
std::vector< GlobalObject > m_objectType
the trigger object type(s)
const bool condGEq() const
get / set condition GEq flag
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< 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
const unsigned int & extChannel() const
get external channel number
l1t::GtConditionType m_condType
the type of the condition (1s, etc)
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 71 of file ExternalTemplate.cc.

References copy().

72 {
73 
74  copy(cp);
75  return *this;
76 }
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 GlobalCondition.

Definition at line 79 of file ExternalTemplate.cc.

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

Referenced by operator<<().

80 {
81 
82  myCout << "\n ExternalTemplate print..." << std::endl;
83 
84  GlobalCondition::print(myCout);
85 
86 
87  myCout << " External Channel " << m_extChannel << std::endl;
88 
89  // reset to decimal output
90  myCout << std::dec << std::endl;
91 }
unsigned int m_extChannel
virtual void print(std::ostream &myCout) const
print condition
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().

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 108 of file ExternalTemplate.cc.

109 {
110  result.print(os);
111  return os;
112 
113 }
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().