CMS 3D CMS Logo

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::L1GtTechnicalTriggerRecord ( )

constructor(s)

Definition at line 26 of file L1GtTechnicalTriggerRecord.cc.

26  {
27  // empty
28 }

◆ ~L1GtTechnicalTriggerRecord()

L1GtTechnicalTriggerRecord::~L1GtTechnicalTriggerRecord ( )
virtual

destructor

Definition at line 31 of file L1GtTechnicalTriggerRecord.cc.

31  {
32  // empty
33 }

Member Function Documentation

◆ getTechnicalTrigger() [1/2]

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.

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 }

References m_gtTechnicalTrigger.

◆ getTechnicalTrigger() [2/2]

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.

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 }

References m_gtTechnicalTrigger.

◆ gtTechnicalTrigger()

const std::vector<L1GtTechnicalTrigger>& L1GtTechnicalTriggerRecord::gtTechnicalTrigger ( ) const
inline

get / set the vector of technical triggers

Definition at line 45 of file L1GtTechnicalTriggerRecord.h.

45 { return m_gtTechnicalTrigger; }

References m_gtTechnicalTrigger.

Referenced by RPCTTUMonitor::analyze(), and L1GlobalTriggerPSB::receiveTechnicalTriggers().

◆ setGtTechnicalTrigger()

void L1GtTechnicalTriggerRecord::setGtTechnicalTrigger ( const std::vector< L1GtTechnicalTrigger > &  gtTechnicalTriggerValue)
inline

Definition at line 47 of file L1GtTechnicalTriggerRecord.h.

47  {
48  m_gtTechnicalTrigger = gtTechnicalTriggerValue;
49  }

References m_gtTechnicalTrigger.

Member Data Documentation

◆ m_gtTechnicalTrigger

std::vector<L1GtTechnicalTrigger> L1GtTechnicalTriggerRecord::m_gtTechnicalTrigger
private
L1GtTechnicalTriggerRecord::m_gtTechnicalTrigger
std::vector< L1GtTechnicalTrigger > m_gtTechnicalTrigger
Definition: L1GtTechnicalTriggerRecord.h:52
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123