CMS 3D CMS Logo

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 ExternalTemplate &)
 
 ExternalTemplate (const std::string &)
 
 ExternalTemplate (const std::string &, const l1t::GtConditionType &)
 
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
 
 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
 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 ( )

◆ ExternalTemplate() [2/4]

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

Definition at line 34 of file ExternalTemplate.cc.

34  : GlobalCondition(cName) {
36 }

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

◆ ExternalTemplate() [3/4]

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

Definition at line 38 of file ExternalTemplate.cc.

39  : GlobalCondition(cName, l1t::CondExternal, cType) {
41 }

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

◆ ExternalTemplate() [4/4]

ExternalTemplate::ExternalTemplate ( const ExternalTemplate cp)

Definition at line 44 of file ExternalTemplate.cc.

44 : GlobalCondition(cp.m_condName) { copy(cp); }

References copy().

◆ ~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.

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 }

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=().

◆ extChannel()

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

get external channel number

Definition at line 55 of file ExternalTemplate.h.

55 { return m_extChannel; }

References m_extChannel.

◆ operator=()

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

Definition at line 52 of file ExternalTemplate.cc.

52  {
53  copy(cp);
54  return *this;
55 }

References copy().

◆ print()

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

print the condition

Reimplemented from GlobalCondition.

Definition at line 57 of file ExternalTemplate.cc.

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 }

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

◆ setExternalChannel()

void ExternalTemplate::setExternalChannel ( unsigned int  extCh)
inline

set functions

Definition at line 58 of file ExternalTemplate.h.

58 { m_extChannel = extCh; }

References m_extChannel.

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

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().

GlobalCondition::print
virtual void print(std::ostream &myCout) const
print condition
Definition: GlobalCondition.cc:156
hgcal_conditions::parameters
Definition: HGCConditions.h:86
GlobalCondition::m_condRelativeBx
int m_condRelativeBx
Definition: GlobalCondition.h:122
GlobalCondition::m_condChipNr
int m_condChipNr
condition is located on condition chip m_condChipNr
Definition: GlobalCondition.h:119
GlobalCondition::m_condCategory
l1t::GtConditionCategory m_condCategory
the category of the condition
Definition: GlobalCondition.h:107
GlobalCondition::GlobalCondition
GlobalCondition()
Definition: GlobalCondition.cc:28
GlobalCondition::m_objectType
std::vector< l1t::GlobalObject > m_objectType
the trigger object type(s)
Definition: GlobalCondition.h:113
GlobalCondition::m_condGEq
bool m_condGEq
the operator used for the condition (>=, =): true for >=
Definition: GlobalCondition.h:116
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:104
ExternalTemplate::m_extChannel
unsigned int m_extChannel
Definition: ExternalTemplate.h:72
GlobalCondition::m_condType
l1t::GtConditionType m_condType
the type of the condition (1s, etc)
Definition: GlobalCondition.h:110
l1t::CondExternal
Definition: GlobalDefinitions.h:98
mps_fire.result
result
Definition: mps_fire.py:311
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143