File indexing completed on 2024-04-06 12:02:23
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #include "CondFormats/L1TObjects/interface/L1GtTriggerMask.h"
0019
0020
0021 #include <iostream>
0022 #include <iomanip>
0023
0024
0025
0026
0027
0028 L1GtTriggerMask::L1GtTriggerMask() {
0029
0030 }
0031
0032 L1GtTriggerMask::L1GtTriggerMask(std::vector<unsigned int>& maskValue) { m_triggerMask = maskValue; }
0033
0034
0035 L1GtTriggerMask::~L1GtTriggerMask() {
0036
0037 }
0038
0039
0040 void L1GtTriggerMask::setGtTriggerMask(std::vector<unsigned int>& maskValue) { m_triggerMask = maskValue; }
0041
0042
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 }