CMS 3D CMS Logo

Public Member Functions | Private Attributes

L1GtTriggerMask Class Reference

#include <L1GtTriggerMask.h>

List of all members.

Public Member Functions

const std::vector< unsigned int > & gtTriggerMask () const
 get the trigger mask
 L1GtTriggerMask ()
 L1GtTriggerMask (std::vector< unsigned int > &)
void print (std::ostream &) const
 print the mask
void setGtTriggerMask (std::vector< unsigned int > &)
 set the trigger mask
virtual ~L1GtTriggerMask ()

Private Attributes

std::vector< unsigned int > m_triggerMask
 trigger mask

Detailed Description

Description: L1 GT mask.

Implementation: <TODO: enter implementation details>

Author:
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 31 of file L1GtTriggerMask.h.


Constructor & Destructor Documentation

L1GtTriggerMask::L1GtTriggerMask ( )

Definition at line 28 of file L1GtTriggerMask.cc.

{
    //empty - all value set by default to zero
}
L1GtTriggerMask::L1GtTriggerMask ( std::vector< unsigned int > &  maskValue)

Definition at line 33 of file L1GtTriggerMask.cc.

References m_triggerMask.

{
    m_triggerMask = maskValue;
}
L1GtTriggerMask::~L1GtTriggerMask ( ) [virtual]

Definition at line 39 of file L1GtTriggerMask.cc.

{
    // empty
}

Member Function Documentation

const std::vector<unsigned int>& L1GtTriggerMask::gtTriggerMask ( ) const [inline]
void L1GtTriggerMask::print ( std::ostream &  outputStream) const

print the mask

Definition at line 53 of file L1GtTriggerMask.cc.

References i, and m_triggerMask.

Referenced by L1GtRunSettingsViewer::analyze(), and L1GtPrescaleFactorsAndMasksTester::printL1EventSetup().

                                                          {
    outputStream << "\nL1 GT Trigger masks are printed for all L1 partitions. "
            << "\n  Partition numbering: partition \"i\" -> bit i"
            << " (bit 0 is LSB)\n"
            << "\n If mask value is 1 for a given algorithm/technical trigger in a given partition "
            << "\n then the algorithm/technical trigger is masked (has value 0 = false) in the evaluation "
            << "\n of FinalOR.\n"
            << "\n For veto masks, if the mask is set to 1 and the result of the trigger for that bit is true, "
            << "\n then the FinalOR is set to false (no L1A).\n"
            << std::endl;

    for (unsigned i = 0; i < m_triggerMask.size(); i++) {
        outputStream << "  Algorithm/technical trigger bit number "
                << std::setw(3) << i << ":\t mask: 0x" << std::hex
                << std::setw(2) << m_triggerMask[i] << std::dec << std::endl;
    }

}
void L1GtTriggerMask::setGtTriggerMask ( std::vector< unsigned int > &  maskValue)

set the trigger mask

Definition at line 45 of file L1GtTriggerMask.cc.

References m_triggerMask.

{

    m_triggerMask = maskValue;

}

Member Data Documentation

std::vector<unsigned int> L1GtTriggerMask::m_triggerMask [private]

trigger mask

Definition at line 63 of file L1GtTriggerMask.h.

Referenced by gtTriggerMask(), L1GtTriggerMask(), print(), and setGtTriggerMask().