CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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 &)
 
void print (std::ostream &myCout) const override
 print the condition More...
 
void setExternalChannel (unsigned int extCh)
 set functions More...
 
 ~ExternalTemplate () override
 
- 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
 
const bool corrThree () const
 get logic flag for three-body conditions, trigger objects are muons More...
 
 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< l1t::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< l1t::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 = false
 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< l1t::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() [1/4]

ExternalTemplate::ExternalTemplate ( )

Definition at line 32 of file ExternalTemplate.cc.

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

l1t::GtConditionCategory m_condCategory
the category of the condition

◆ ExternalTemplate() [2/4]

ExternalTemplate::ExternalTemplate ( const std::string &  cName)

Definition at line 34 of file ExternalTemplate.cc.

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

34  : GlobalCondition(cName) {
36 }
l1t::GtConditionCategory m_condCategory
the category of the condition

◆ ExternalTemplate() [3/4]

ExternalTemplate::ExternalTemplate ( const std::string &  cName,
const l1t::GtConditionType cType 
)

Definition at line 38 of file ExternalTemplate.cc.

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

39  : GlobalCondition(cName, l1t::CondExternal, cType) {
41 }
l1t::GtConditionCategory m_condCategory
the category of the condition

◆ ExternalTemplate() [4/4]

ExternalTemplate::ExternalTemplate ( const ExternalTemplate cp)

Definition at line 44 of file ExternalTemplate.cc.

References copy().

44 : GlobalCondition(cp.m_condName) { copy(cp); }
void copy(const ExternalTemplate &cp)
copy function for copy constructor and operator=

◆ ~ExternalTemplate()

ExternalTemplate::~ExternalTemplate ( )
override

Definition at line 47 of file ExternalTemplate.cc.

47  {
48  // empty now
49 }

Member Function Documentation

◆ copy()

void ExternalTemplate::copy ( const ExternalTemplate cp)
private

copy function for copy constructor and operator=

Definition at line 68 of file ExternalTemplate.cc.

References GlobalCondition::m_condCategory, GlobalCondition::m_condChipNr, GlobalCondition::m_condGEq, GlobalCondition::m_condName, GlobalCondition::m_condRelativeBx, GlobalCondition::m_condType, m_extChannel, and GlobalCondition::m_objectType.

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

68  {
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 }
bool m_condGEq
the operator used for the condition (>=, =): true for >=
std::string m_condName
the name of the condition
int m_condChipNr
condition is located on condition chip m_condChipNr
l1t::GtConditionCategory m_condCategory
the category of the condition
unsigned int m_extChannel
std::vector< l1t::GlobalObject > m_objectType
the trigger object type(s)
l1t::GtConditionType m_condType
the type of the condition (1s, etc)

◆ extChannel()

const unsigned int& ExternalTemplate::extChannel ( ) const
inline

get external channel number

Definition at line 55 of file ExternalTemplate.h.

References m_extChannel.

55 { return m_extChannel; }
unsigned int m_extChannel

◆ operator=()

ExternalTemplate & ExternalTemplate::operator= ( const ExternalTemplate cp)

Definition at line 52 of file ExternalTemplate.cc.

References copy().

52  {
53  copy(cp);
54  return *this;
55 }
void copy(const ExternalTemplate &cp)
copy function for copy constructor and operator=

◆ print()

void ExternalTemplate::print ( std::ostream &  myCout) const
overridevirtual

print the condition

Reimplemented from GlobalCondition.

Definition at line 57 of file ExternalTemplate.cc.

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

57  {
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 }
unsigned int m_extChannel
virtual void print(std::ostream &myCout) const
print condition

◆ setExternalChannel()

void ExternalTemplate::setExternalChannel ( unsigned int  extCh)
inline

set functions

Definition at line 58 of file ExternalTemplate.h.

References m_extChannel.

Referenced by l1t::TriggerMenuParser::parseExternal().

58 { m_extChannel = extCh; }
unsigned int m_extChannel

Friends And Related Function Documentation

◆ operator<<

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

output stream operator

Definition at line 80 of file ExternalTemplate.cc.

80  {
81  result.print(os);
82  return os;
83 }

Member Data Documentation

◆ m_extChannel

unsigned int ExternalTemplate::m_extChannel
private

Definition at line 72 of file ExternalTemplate.h.

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