CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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

$Date$ $Revision$

Definition at line 30 of file L1GtTechnicalTriggerRecord.h.

Constructor & Destructor Documentation

L1GtTechnicalTriggerRecord::L1GtTechnicalTriggerRecord ( )

constructor(s)

Definition at line 29 of file L1GtTechnicalTriggerRecord.cc.

30 {
31  // empty
32 }
L1GtTechnicalTriggerRecord::~L1GtTechnicalTriggerRecord ( )
virtual

destructor

Definition at line 35 of file L1GtTechnicalTriggerRecord.cc.

36 {
37  // empty
38 }

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

References m_gtTechnicalTrigger.

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

References m_gtTechnicalTrigger.

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

get / set the vector of technical triggers

Definition at line 54 of file L1GtTechnicalTriggerRecord.h.

References m_gtTechnicalTrigger.

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

Definition at line 59 of file L1GtTechnicalTriggerRecord.h.

References m_gtTechnicalTrigger.

61  {
62  m_gtTechnicalTrigger = gtTechnicalTriggerValue;
63  }
std::vector< L1GtTechnicalTrigger > m_gtTechnicalTrigger

Member Data Documentation

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