CMS 3D CMS Logo

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

#include <L1GtTechnicalTriggerRecord.h>

Public Member Functions

const L1GtTechnicalTriggergetTechnicalTrigger (const std::string &ttName, const int bxInEventVal) const
 return the technical trigger for ttName and bxInEvent More...
 
const L1GtTechnicalTriggergetTechnicalTrigger (const unsigned int ttBitNumber, const int bxInEventVal) const
 return the technical trigger for ttBitNumber and bxInEvent More...
 
const std::vector
< L1GtTechnicalTrigger > & 
gtTechnicalTrigger () const
 get / set the vector of technical triggers More...
 
 L1GtTechnicalTriggerRecord ()
 constructor(s) More...
 
void setGtTechnicalTrigger (const std::vector< L1GtTechnicalTrigger > &gtTechnicalTriggerValue)
 
virtual ~L1GtTechnicalTriggerRecord ()
 destructor More...
 

Private Attributes

std::vector< L1GtTechnicalTriggerm_gtTechnicalTrigger
 

Detailed Description

Description: technical trigger input record for L1 Global Trigger.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 28 of file L1GtTechnicalTriggerRecord.h.

Constructor & Destructor Documentation

L1GtTechnicalTriggerRecord::L1GtTechnicalTriggerRecord ( )

constructor(s)

Definition at line 26 of file L1GtTechnicalTriggerRecord.cc.

26  {
27  // empty
28 }
L1GtTechnicalTriggerRecord::~L1GtTechnicalTriggerRecord ( )
virtual

destructor

Definition at line 31 of file L1GtTechnicalTriggerRecord.cc.

31  {
32  // empty
33 }

Member Function Documentation

const L1GtTechnicalTrigger * L1GtTechnicalTriggerRecord::getTechnicalTrigger ( const std::string &  ttName,
const int  bxInEventVal 
) const

return the technical trigger for ttName and bxInEvent

Definition at line 38 of file L1GtTechnicalTriggerRecord.cc.

References m_gtTechnicalTrigger.

39  {
40  for (std::vector<L1GtTechnicalTrigger>::const_iterator itObj = m_gtTechnicalTrigger.begin();
41  itObj != m_gtTechnicalTrigger.end();
42  ++itObj) {
43  if ((itObj->gtTechnicalTriggerName() == ttName) && (itObj->bxInEvent() == bxInEventVal)) {
44  return &((*itObj));
45  }
46  }
47 
48  // no ttName found, return zero pointer!
49  edm::LogError("L1GtTechnicalTriggerRecord") << "\n\n ERROR: The requested technical trigger name = " << ttName
50  << " with bxInEvent = " << bxInEventVal << "\n does not exist."
51  << "\n Returning zero pointer for getTechnicalTrigger\n\n"
52  << std::endl;
53 
54  return nullptr;
55 }
Log< level::Error, false > LogError
std::vector< L1GtTechnicalTrigger > m_gtTechnicalTrigger
const L1GtTechnicalTrigger * L1GtTechnicalTriggerRecord::getTechnicalTrigger ( const unsigned int  ttBitNumber,
const int  bxInEventVal 
) const

return the technical trigger for ttBitNumber and bxInEvent

Definition at line 58 of file L1GtTechnicalTriggerRecord.cc.

References m_gtTechnicalTrigger.

59  {
60  for (std::vector<L1GtTechnicalTrigger>::const_iterator itObj = m_gtTechnicalTrigger.begin();
61  itObj != m_gtTechnicalTrigger.end();
62  ++itObj) {
63  if ((itObj->gtTechnicalTriggerBitNumber() == ttBitNumber) && (itObj->bxInEvent() == bxInEventVal)) {
64  return &((*itObj));
65  }
66  }
67 
68  // no ttBitNumber && bxInEventVal found, return zero pointer!
69  edm::LogError("L1GtTechnicalTriggerRecord")
70  << "\n\n ERROR: The requested technical trigger with bit number = " << ttBitNumber
71  << " and with bxInEvent = " << bxInEventVal << "\n does not exist."
72  << "\n Returning zero pointer for getTechnicalTrigger\n\n"
73  << std::endl;
74 
75  return nullptr;
76 }
Log< level::Error, false > LogError
std::vector< L1GtTechnicalTrigger > m_gtTechnicalTrigger
const std::vector<L1GtTechnicalTrigger>& L1GtTechnicalTriggerRecord::gtTechnicalTrigger ( ) const
inline

get / set the vector of technical triggers

Definition at line 45 of file L1GtTechnicalTriggerRecord.h.

References m_gtTechnicalTrigger.

45 { return m_gtTechnicalTrigger; }
std::vector< L1GtTechnicalTrigger > m_gtTechnicalTrigger
void L1GtTechnicalTriggerRecord::setGtTechnicalTrigger ( const std::vector< L1GtTechnicalTrigger > &  gtTechnicalTriggerValue)
inline

Definition at line 47 of file L1GtTechnicalTriggerRecord.h.

References m_gtTechnicalTrigger.

Referenced by BSCTrigger::produce().

47  {
48  m_gtTechnicalTrigger = gtTechnicalTriggerValue;
49  }
std::vector< L1GtTechnicalTrigger > m_gtTechnicalTrigger

Member Data Documentation

std::vector<L1GtTechnicalTrigger> L1GtTechnicalTriggerRecord::m_gtTechnicalTrigger
private