CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends
CICADATemplate Class Reference

#include <CICADATemplate.h>

Inheritance diagram for CICADATemplate:
GlobalCondition

Classes

struct  ObjectParameter
 

Public Member Functions

 CICADATemplate ()
 
 CICADATemplate (const std::string &)
 
 CICADATemplate (const std::string &, const l1t::GtConditionType &)
 
 CICADATemplate (const CICADATemplate &)
 
const std::vector< ObjectParameter > * objectParameter () const
 
CICADATemplateoperator= (const CICADATemplate &)
 
void print (std::ostream &myCout) const override
 print condition More...
 
void setConditionParameter (const std::vector< ObjectParameter > &objParameter)
 
 ~CICADATemplate ()=default
 
- 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 CICADATemplate &cp)
 

Private Attributes

std::vector< ObjectParameterm_objectParameter
 

Friends

std::ostream & operator<< (std::ostream &, const CICADATemplate &)
 

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

Definition at line 9 of file CICADATemplate.h.

Constructor & Destructor Documentation

◆ CICADATemplate() [1/4]

CICADATemplate::CICADATemplate ( )

Definition at line 7 of file CICADATemplate.cc.

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

l1t::GtConditionCategory m_condCategory
the category of the condition

◆ CICADATemplate() [2/4]

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

Definition at line 9 of file CICADATemplate.cc.

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

l1t::GtConditionCategory m_condCategory
the category of the condition

◆ CICADATemplate() [3/4]

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

Definition at line 11 of file CICADATemplate.cc.

References l1t::CondCICADA, GlobalCondition::m_condCategory, GlobalCondition::m_objectType, and GlobalCondition::nrObjects().

12  : GlobalCondition(cName, l1t::CondCICADA, cType) {
14 
15  int nObjects = nrObjects();
16 
17  if (nObjects > 0) {
18  m_objectType.reserve(nObjects);
19  }
20 }
l1t::GtConditionCategory m_condCategory
the category of the condition
const int nrObjects() const
get number of trigger objects
std::vector< l1t::GlobalObject > m_objectType
the trigger object type(s)

◆ CICADATemplate() [4/4]

CICADATemplate::CICADATemplate ( const CICADATemplate cp)

Definition at line 22 of file CICADATemplate.cc.

References copy().

22 : GlobalCondition(cp.m_condName) { copy(cp); }
void copy(const CICADATemplate &cp)

◆ ~CICADATemplate()

CICADATemplate::~CICADATemplate ( )
default

Member Function Documentation

◆ copy()

void CICADATemplate::copy ( const CICADATemplate cp)
private

Definition at line 45 of file CICADATemplate.cc.

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

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

45  {
46  m_condName = cp.condName();
47  m_condCategory = cp.condCategory();
48  m_condType = cp.condType();
49  m_objectType = cp.objectType();
50  m_condGEq = cp.condGEq();
51  m_condChipNr = cp.condChipNr();
52  m_condRelativeBx = cp.condRelativeBx();
53 
54  m_objectParameter = *(cp.objectParameter());
55 }
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
std::vector< ObjectParameter > m_objectParameter
std::vector< l1t::GlobalObject > m_objectType
the trigger object type(s)
l1t::GtConditionType m_condType
the type of the condition (1s, etc)

◆ objectParameter()

const std::vector<ObjectParameter>* CICADATemplate::objectParameter ( ) const
inline

Definition at line 23 of file CICADATemplate.h.

References m_objectParameter.

23 { return &m_objectParameter; }
std::vector< ObjectParameter > m_objectParameter

◆ operator=()

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

Definition at line 24 of file CICADATemplate.cc.

References copy().

24  {
25  copy(cp);
26  return *this;
27 }
void copy(const CICADATemplate &cp)

◆ print()

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

print condition

Reimplemented from GlobalCondition.

Definition at line 29 of file CICADATemplate.cc.

References TauDecayModes::dec, mps_fire::i, m_objectParameter, GlobalCondition::nrObjects(), and GlobalCondition::print().

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

29  {
30  myCout << "\n CICADATemplate print..." << std::endl;
31 
32  GlobalCondition::print(myCout);
33 
34  int nObjects = nrObjects();
35 
36  for (int i = 0; i < nObjects; ++i) {
37  myCout << std::endl;
38  myCout << " Template for object " << i << " [ hex ]" << std::endl;
39  myCout << " CICADAThreshold = " << std::hex << m_objectParameter[i].minCICADAThreshold << std::endl;
40  }
41 
42  myCout << std::dec << std::endl;
43 }
const int nrObjects() const
get number of trigger objects
std::vector< ObjectParameter > m_objectParameter
virtual void print(std::ostream &myCout) const
print condition

◆ setConditionParameter()

void CICADATemplate::setConditionParameter ( const std::vector< ObjectParameter > &  objParameter)
inline

Definition at line 25 of file CICADATemplate.h.

References m_objectParameter.

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

25 { m_objectParameter = objParameter; }
std::vector< ObjectParameter > m_objectParameter

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 57 of file CICADATemplate.cc.

57  {
58  result.print(os);
59  return os;
60 }

Member Data Documentation

◆ m_objectParameter

std::vector<ObjectParameter> CICADATemplate::m_objectParameter
private

Definition at line 33 of file CICADATemplate.h.

Referenced by copy(), objectParameter(), print(), and setConditionParameter().