CMS 3D CMS Logo

Public Member Functions | Private Attributes

L1GtTechnicalTriggerRecord Class Reference

#include <L1GtTechnicalTriggerRecord.h>

List of all members.

Public Member Functions

const L1GtTechnicalTriggergetTechnicalTrigger (const std::string &ttName, const int bxInEventVal) const
 return the technical trigger for ttName and bxInEvent
const L1GtTechnicalTriggergetTechnicalTrigger (const unsigned int ttBitNumber, const int bxInEventVal) const
 return the technical trigger for ttBitNumber 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.

{
    // empty    
}
L1GtTechnicalTriggerRecord::~L1GtTechnicalTriggerRecord ( ) [virtual]

destructor

Definition at line 35 of file L1GtTechnicalTriggerRecord.cc.

{
    // empty
}

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.

{

    for (std::vector<L1GtTechnicalTrigger>::const_iterator itObj =
            m_gtTechnicalTrigger.begin(); itObj != m_gtTechnicalTrigger.end(); ++itObj) {

        if ((itObj->gtTechnicalTriggerName() == ttName) 
                && (itObj->bxInEvent() == bxInEventVal)) {

            return &((*itObj));
        }

    }

    // no ttName found, return zero pointer!
    edm::LogError("L1GtTechnicalTriggerRecord")
            << "\n\n  ERROR: The requested technical trigger name = " << ttName
            << " with bxInEvent = " << bxInEventVal << "\n  does not exist."
            << "\n  Returning zero pointer for getTechnicalTrigger\n\n"
            << std::endl;

    return 0;

}
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.

{

    for (std::vector<L1GtTechnicalTrigger>::const_iterator itObj =
            m_gtTechnicalTrigger.begin(); itObj != m_gtTechnicalTrigger.end(); ++itObj) {

        if ((itObj->gtTechnicalTriggerBitNumber() == ttBitNumber)
                && (itObj->bxInEvent() == bxInEventVal)) {

            return &((*itObj));
        }

    }

    // no ttBitNumber && bxInEventVal found, return zero pointer!
    edm::LogError("L1GtTechnicalTriggerRecord")
            << "\n\n  ERROR: The requested technical trigger with bit number = "
            << ttBitNumber << " and with bxInEvent = " << bxInEventVal
            << "\n  does not exist."
            << "\n  Returning zero pointer for getTechnicalTrigger\n\n"
            << std::endl;

    return 0;

}
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.

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

Definition at line 59 of file L1GtTechnicalTriggerRecord.h.

References m_gtTechnicalTrigger.

    {
        m_gtTechnicalTrigger = gtTechnicalTriggerValue;
    }

Member Data Documentation