Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:23

0001 /**
0002  * \class L1GtTriggerMask
0003  * 
0004  * 
0005  * Description: L1 GT mask.  
0006  *
0007  * Implementation:
0008  *    <TODO: enter implementation details>
0009  *   
0010  * \author: Vasile Mihai Ghete - HEPHY Vienna
0011  * 
0012  * $Date$
0013  * $Revision$
0014  *
0015  */
0016 
0017 // this class header
0018 #include "CondFormats/L1TObjects/interface/L1GtTriggerMask.h"
0019 
0020 // system include files
0021 #include <iostream>
0022 #include <iomanip>
0023 
0024 // user include files
0025 //   base class
0026 
0027 // constructors
0028 L1GtTriggerMask::L1GtTriggerMask() {
0029   //empty - all value set by default to zero
0030 }
0031 
0032 L1GtTriggerMask::L1GtTriggerMask(std::vector<unsigned int>& maskValue) { m_triggerMask = maskValue; }
0033 
0034 // destructor
0035 L1GtTriggerMask::~L1GtTriggerMask() {
0036   // empty
0037 }
0038 
0039 // set the trigger mask
0040 void L1GtTriggerMask::setGtTriggerMask(std::vector<unsigned int>& maskValue) { m_triggerMask = maskValue; }
0041 
0042 // print the mask
0043 void L1GtTriggerMask::print(std::ostream& outputStream) const {
0044   outputStream << "\nL1 GT Trigger masks are printed for all L1 partitions. "
0045                << "\n  Partition numbering: partition \"i\" -> bit i"
0046                << " (bit 0 is LSB)\n"
0047                << "\n If mask value is 1 for a given algorithm/technical trigger in a given partition "
0048                << "\n then the algorithm/technical trigger is masked (has value 0 = false) in the evaluation "
0049                << "\n of FinalOR.\n"
0050                << "\n For veto masks, if the mask is set to 1 and the result of the trigger for that bit is true, "
0051                << "\n then the FinalOR is set to false (no L1A).\n"
0052                << std::endl;
0053 
0054   for (unsigned i = 0; i < m_triggerMask.size(); i++) {
0055     outputStream << "  Algorithm/technical trigger bit number " << std::setw(3) << i << ":\t mask: 0x" << std::hex
0056                  << std::setw(2) << m_triggerMask[i] << std::dec << std::endl;
0057   }
0058 }