CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/CondFormats/L1TObjects/src/L1GtTriggerMask.cc

Go to the documentation of this file.
00001 
00017 // this class header
00018 #include "CondFormats/L1TObjects/interface/L1GtTriggerMask.h"
00019 
00020 // system include files
00021 #include <iostream>
00022 #include <iomanip>
00023 
00024 // user include files
00025 //   base class
00026 
00027 // constructors
00028 L1GtTriggerMask::L1GtTriggerMask()
00029 {
00030     //empty - all value set by default to zero
00031 }
00032 
00033 L1GtTriggerMask::L1GtTriggerMask(std::vector<unsigned int>& maskValue)
00034 {
00035     m_triggerMask = maskValue;
00036 }
00037 
00038 // destructor
00039 L1GtTriggerMask::~L1GtTriggerMask()
00040 {
00041     // empty
00042 }
00043 
00044 // set the trigger mask
00045 void L1GtTriggerMask::setGtTriggerMask(std::vector<unsigned int>& maskValue)
00046 {
00047 
00048     m_triggerMask = maskValue;
00049 
00050 }
00051 
00052 // print the mask
00053 void L1GtTriggerMask::print(std::ostream& outputStream) const {
00054     outputStream << "\nL1 GT Trigger masks are printed for all L1 partitions. "
00055             << "\n  Partition numbering: partition \"i\" -> bit i"
00056             << " (bit 0 is LSB)\n"
00057             << "\n If mask value is 1 for a given algorithm/technical trigger in a given partition "
00058             << "\n then the algorithm/technical trigger is masked (has value 0 = false) in the evaluation "
00059             << "\n of FinalOR.\n"
00060             << "\n For veto masks, if the mask is set to 1 and the result of the trigger for that bit is true, "
00061             << "\n then the FinalOR is set to false (no L1A).\n"
00062             << std::endl;
00063 
00064     for (unsigned i = 0; i < m_triggerMask.size(); i++) {
00065         outputStream << "  Algorithm/technical trigger bit number "
00066                 << std::setw(3) << i << ":\t mask: 0x" << std::hex
00067                 << std::setw(2) << m_triggerMask[i] << std::dec << std::endl;
00068     }
00069 
00070 }