CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
L1GtTriggerMask Class Reference

#include <L1GtTriggerMask.h>

Public Member Functions

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

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

std::vector< unsigned int > m_triggerMask
 trigger mask More...
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Description: L1 GT mask.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 33 of file L1GtTriggerMask.h.

Constructor & Destructor Documentation

L1GtTriggerMask::L1GtTriggerMask ( )

Definition at line 28 of file L1GtTriggerMask.cc.

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

Definition at line 33 of file L1GtTriggerMask.cc.

References m_triggerMask.

34 {
35  m_triggerMask = maskValue;
36 }
std::vector< unsigned int > m_triggerMask
trigger mask
L1GtTriggerMask::~L1GtTriggerMask ( )
virtual

Definition at line 39 of file L1GtTriggerMask.cc.

40 {
41  // empty
42 }

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 TauDecayModes::dec, mps_fire::i, and m_triggerMask.

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

53  {
54  outputStream << "\nL1 GT Trigger masks are printed for all L1 partitions. "
55  << "\n Partition numbering: partition \"i\" -> bit i"
56  << " (bit 0 is LSB)\n"
57  << "\n If mask value is 1 for a given algorithm/technical trigger in a given partition "
58  << "\n then the algorithm/technical trigger is masked (has value 0 = false) in the evaluation "
59  << "\n of FinalOR.\n"
60  << "\n For veto masks, if the mask is set to 1 and the result of the trigger for that bit is true, "
61  << "\n then the FinalOR is set to false (no L1A).\n"
62  << std::endl;
63 
64  for (unsigned i = 0; i < m_triggerMask.size(); i++) {
65  outputStream << " Algorithm/technical trigger bit number "
66  << std::setw(3) << i << ":\t mask: 0x" << std::hex
67  << std::setw(2) << m_triggerMask[i] << std::dec << std::endl;
68  }
69 
70 }
std::vector< unsigned int > m_triggerMask
trigger mask
template<class Archive >
void L1GtTriggerMask::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void L1GtTriggerMask::setGtTriggerMask ( std::vector< unsigned int > &  maskValue)

set the trigger mask

Definition at line 45 of file L1GtTriggerMask.cc.

References m_triggerMask.

Referenced by gtTriggerMask().

46 {
47 
48  m_triggerMask = maskValue;
49 
50 }
std::vector< unsigned int > m_triggerMask
trigger mask

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 69 of file L1GtTriggerMask.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 69 of file L1GtTriggerMask.h.

Member Data Documentation

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

trigger mask

Definition at line 65 of file L1GtTriggerMask.h.

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