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

constructor(s)

Definition at line 27 of file L1GtTechnicalTriggerRecord.cc.

28 {
29  // empty
30 }
L1GtTechnicalTriggerRecord::~L1GtTechnicalTriggerRecord ( )
virtual

destructor

Definition at line 33 of file L1GtTechnicalTriggerRecord.cc.

34 {
35  // empty
36 }

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 41 of file L1GtTechnicalTriggerRecord.cc.

References m_gtTechnicalTrigger.

43 {
44 
45  for (std::vector<L1GtTechnicalTrigger>::const_iterator itObj =
46  m_gtTechnicalTrigger.begin(); itObj != m_gtTechnicalTrigger.end(); ++itObj) {
47 
48  if ((itObj->gtTechnicalTriggerName() == ttName)
49  && (itObj->bxInEvent() == bxInEventVal)) {
50 
51  return &((*itObj));
52  }
53 
54  }
55 
56  // no ttName found, return zero pointer!
57  edm::LogError("L1GtTechnicalTriggerRecord")
58  << "\n\n ERROR: The requested technical trigger name = " << ttName
59  << " with bxInEvent = " << bxInEventVal << "\n does not exist."
60  << "\n Returning zero pointer for getTechnicalTrigger\n\n"
61  << std::endl;
62 
63  return nullptr;
64 
65 }
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 68 of file L1GtTechnicalTriggerRecord.cc.

References m_gtTechnicalTrigger.

70 {
71 
72  for (std::vector<L1GtTechnicalTrigger>::const_iterator itObj =
73  m_gtTechnicalTrigger.begin(); itObj != m_gtTechnicalTrigger.end(); ++itObj) {
74 
75  if ((itObj->gtTechnicalTriggerBitNumber() == ttBitNumber)
76  && (itObj->bxInEvent() == bxInEventVal)) {
77 
78  return &((*itObj));
79  }
80 
81  }
82 
83  // no ttBitNumber && bxInEventVal found, return zero pointer!
84  edm::LogError("L1GtTechnicalTriggerRecord")
85  << "\n\n ERROR: The requested technical trigger with bit number = "
86  << ttBitNumber << " and with bxInEvent = " << bxInEventVal
87  << "\n does not exist."
88  << "\n Returning zero pointer for getTechnicalTrigger\n\n"
89  << std::endl;
90 
91  return nullptr;
92 
93 }
std::vector< L1GtTechnicalTrigger > m_gtTechnicalTrigger
const std::vector<L1GtTechnicalTrigger>& L1GtTechnicalTriggerRecord::gtTechnicalTrigger ( ) const
inline

get / set the vector of technical triggers

Definition at line 52 of file L1GtTechnicalTriggerRecord.h.

References m_gtTechnicalTrigger.

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

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

Definition at line 57 of file L1GtTechnicalTriggerRecord.h.

References m_gtTechnicalTrigger.

Referenced by BSCTrigger::produce().

59  {
60  m_gtTechnicalTrigger = gtTechnicalTriggerValue;
61  }
std::vector< L1GtTechnicalTrigger > m_gtTechnicalTrigger

Member Data Documentation

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