CMS 3D CMS Logo

L1GtTechnicalTriggerRecord Class Reference

Description: technical trigger input record for L1 Global Trigger. More...

#include <DataFormats/L1GlobalTrigger/interface/L1GtTechnicalTriggerRecord.h>

List of all members.

Public Member Functions

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

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.

00030 {
00031     // empty    
00032 }

L1GtTechnicalTriggerRecord::~L1GtTechnicalTriggerRecord (  )  [virtual]

destructor

Definition at line 35 of file L1GtTechnicalTriggerRecord.cc.

00036 {
00037     // empty
00038 }


Member Function Documentation

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 lat::endl(), and m_gtTechnicalTrigger.

00072 {
00073 
00074     for (std::vector<L1GtTechnicalTrigger>::const_iterator itObj =
00075             m_gtTechnicalTrigger.begin(); itObj != m_gtTechnicalTrigger.end(); ++itObj) {
00076 
00077         if ((itObj->gtTechnicalTriggerBitNumber() == ttBitNumber)
00078                 && (itObj->bxInEvent() == bxInEventVal)) {
00079 
00080             return &((*itObj));
00081         }
00082 
00083     }
00084 
00085     // no ttBitNumber && bxInEventVal found, return zero pointer!
00086     edm::LogError("L1GtTechnicalTriggerRecord")
00087             << "\n\n  ERROR: The requested technical trigger with bit number = "
00088             << ttBitNumber << " and with bxInEvent = " << bxInEventVal
00089             << "\n  does not exist."
00090             << "\n  Returning zero pointer for getTechnicalTrigger\n\n"
00091             << std::endl;
00092 
00093     return 0;
00094 
00095 }

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 lat::endl(), and m_gtTechnicalTrigger.

00045 {
00046 
00047     for (std::vector<L1GtTechnicalTrigger>::const_iterator itObj =
00048             m_gtTechnicalTrigger.begin(); itObj != m_gtTechnicalTrigger.end(); ++itObj) {
00049 
00050         if ((itObj->gtTechnicalTriggerName() == ttName) 
00051                 && (itObj->bxInEvent() == bxInEventVal)) {
00052 
00053             return &((*itObj));
00054         }
00055 
00056     }
00057 
00058     // no ttName found, return zero pointer!
00059     edm::LogError("L1GtTechnicalTriggerRecord")
00060             << "\n\n  ERROR: The requested technical trigger name = " << ttName
00061             << " with bxInEvent = " << bxInEventVal << "\n  does not exist."
00062             << "\n  Returning zero pointer for getTechnicalTrigger\n\n"
00063             << std::endl;
00064 
00065     return 0;
00066 
00067 }

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.

00055     {
00056         return m_gtTechnicalTrigger;
00057     }

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

Definition at line 59 of file L1GtTechnicalTriggerRecord.h.

References m_gtTechnicalTrigger.

00061     {
00062         m_gtTechnicalTrigger = gtTechnicalTriggerValue;
00063     }


Member Data Documentation

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

Definition at line 67 of file L1GtTechnicalTriggerRecord.h.

Referenced by getTechnicalTrigger(), gtTechnicalTrigger(), and setGtTechnicalTrigger().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:26:45 2009 for CMSSW by  doxygen 1.5.4