CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

L1GtTechnicalTrigger Class Reference

#include <L1GtTechnicalTrigger.h>

List of all members.

Public Member Functions

const int bxInEvent () const
 get/set bunch cross in the GT event record
const unsigned int gtTechnicalTriggerBitNumber () const
const std::string gtTechnicalTriggerName () const
 get / set technical trigger name, bit number, bunch cross in the GT event record and result
const bool gtTechnicalTriggerResult () const
 L1GtTechnicalTrigger ()
 constructors
 L1GtTechnicalTrigger (const std::string &ttName, const unsigned int ttBitNumber, const int ttBxInEvent, const bool ttResult)
 L1GtTechnicalTrigger (const L1GtTechnicalTrigger &)
 copy constructor
bool operator!= (const L1GtTechnicalTrigger &) const
 unequal operator
L1GtTechnicalTriggeroperator= (const L1GtTechnicalTrigger &)
 assignment operator
bool operator== (const L1GtTechnicalTrigger &) const
 equal operator
void print (std::ostream &myCout) const
 pretty print the content of a L1GtTechnicalTrigger
void setBxInEvent (const int bxInEventValue)
void setGtTechnicalTriggerBitNumber (const unsigned int ttBitNumber)
void setGtTechnicalTriggerName (const std::string &ttName)
void setGtTechnicalTriggerResult (const bool ttResult)
virtual ~L1GtTechnicalTrigger ()
 destructor

Private Attributes

int m_bxInEvent
unsigned int m_gtTechnicalTriggerBitNumber
std::string m_gtTechnicalTriggerName
 technical trigger name, bit number, bunch cross in the GT event record and result
bool m_gtTechnicalTriggerResult

Friends

std::ostream & operator<< (std::ostream &, const L1GtTechnicalTrigger &)
 output stream operator

Detailed Description

Description: technical trigger input for L1 Global Trigger.

Implementation: <TODO: enter implementation details>

Author:
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

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 35 of file L1GtTechnicalTrigger.h.


Constructor & Destructor Documentation

L1GtTechnicalTrigger::L1GtTechnicalTrigger ( )

constructors

Definition at line 27 of file L1GtTechnicalTrigger.cc.

L1GtTechnicalTrigger::L1GtTechnicalTrigger ( const std::string &  ttName,
const unsigned int  ttBitNumber,
const int  ttBxInEvent,
const bool  ttResult 
)

Definition at line 37 of file L1GtTechnicalTrigger.cc.

                             :
    m_gtTechnicalTriggerName(ttName),
    m_gtTechnicalTriggerBitNumber(ttBitNumber),
    m_bxInEvent(ttBxInEvent), m_gtTechnicalTriggerResult(ttResult)

{

    // empty

}
L1GtTechnicalTrigger::L1GtTechnicalTrigger ( const L1GtTechnicalTrigger result)
L1GtTechnicalTrigger::~L1GtTechnicalTrigger ( ) [virtual]

destructor

Definition at line 61 of file L1GtTechnicalTrigger.cc.

{

    // empty now

}

Member Function Documentation

const int L1GtTechnicalTrigger::bxInEvent ( ) const [inline]

get/set bunch cross in the GT event record

Definition at line 77 of file L1GtTechnicalTrigger.h.

References m_bxInEvent.

Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().

    {
        return m_bxInEvent;
    }
const unsigned int L1GtTechnicalTrigger::gtTechnicalTriggerBitNumber ( ) const [inline]
const std::string L1GtTechnicalTrigger::gtTechnicalTriggerName ( ) const [inline]

get / set technical trigger name, bit number, bunch cross in the GT event record and result

Definition at line 66 of file L1GtTechnicalTrigger.h.

References m_gtTechnicalTriggerName.

Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().

const bool L1GtTechnicalTrigger::gtTechnicalTriggerResult ( ) const [inline]
bool L1GtTechnicalTrigger::operator!= ( const L1GtTechnicalTrigger result) const

unequal operator

Definition at line 113 of file L1GtTechnicalTrigger.cc.

{

    return !( result == *this);

}
L1GtTechnicalTrigger & L1GtTechnicalTrigger::operator= ( const L1GtTechnicalTrigger result)
bool L1GtTechnicalTrigger::operator== ( const L1GtTechnicalTrigger result) const

equal operator

Definition at line 87 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

{

    if (m_gtTechnicalTriggerName != result.m_gtTechnicalTriggerName) {
        return false;
    }

    if (m_gtTechnicalTriggerBitNumber != result.m_gtTechnicalTriggerBitNumber) {
        return false;
    }

    if (m_bxInEvent != result.m_bxInEvent) {
        return false;
    }

    if (m_gtTechnicalTriggerResult != result.m_gtTechnicalTriggerResult) {
        return false;
    }

    // all members identical
    return true;

}
void L1GtTechnicalTrigger::print ( std::ostream &  myCout) const

pretty print the content of a L1GtTechnicalTrigger

bunch cross in the GT event record

Definition at line 155 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

Referenced by operator<<().

{

    myCout << std::endl;
    myCout << std::endl;
    myCout << "\nTechnical trigger name: " << m_gtTechnicalTriggerName << std::endl;
    myCout << "   bit number" << m_gtTechnicalTriggerBitNumber << std::endl;
    myCout << "   bxInEvent" << m_bxInEvent << std::endl;
    myCout << "   result" << m_gtTechnicalTriggerResult << std::endl;

}
void L1GtTechnicalTrigger::setBxInEvent ( const int  bxInEventValue)

Definition at line 140 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent.

{

    m_bxInEvent = bxInEventValue;

}
void L1GtTechnicalTrigger::setGtTechnicalTriggerBitNumber ( const unsigned int  ttBitNumber)

Definition at line 132 of file L1GtTechnicalTrigger.cc.

References m_gtTechnicalTriggerBitNumber.

{

    m_gtTechnicalTriggerBitNumber = ttBitNumber;

}
void L1GtTechnicalTrigger::setGtTechnicalTriggerName ( const std::string &  ttName)

Definition at line 124 of file L1GtTechnicalTrigger.cc.

References m_gtTechnicalTriggerName.

void L1GtTechnicalTrigger::setGtTechnicalTriggerResult ( const bool  ttResult)

Definition at line 147 of file L1GtTechnicalTrigger.cc.

References m_gtTechnicalTriggerResult.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  streamRec,
const L1GtTechnicalTrigger result 
) [friend]

output stream operator

Definition at line 169 of file L1GtTechnicalTrigger.cc.

{
    result.print(streamRec);
    return streamRec;

}

Member Data Documentation

technical trigger name, bit number, bunch cross in the GT event record and result

Definition at line 103 of file L1GtTechnicalTrigger.h.

Referenced by gtTechnicalTriggerName(), L1GtTechnicalTrigger(), operator=(), operator==(), print(), and setGtTechnicalTriggerName().