Go to the documentation of this file.00001
00017
00018 #include "CondFormats/L1TObjects/interface/L1GtTriggerMask.h"
00019
00020
00021 #include <iostream>
00022 #include <iomanip>
00023
00024
00025
00026
00027
00028 L1GtTriggerMask::L1GtTriggerMask()
00029 {
00030
00031 }
00032
00033 L1GtTriggerMask::L1GtTriggerMask(std::vector<unsigned int>& maskValue)
00034 {
00035 m_triggerMask = maskValue;
00036 }
00037
00038
00039 L1GtTriggerMask::~L1GtTriggerMask()
00040 {
00041
00042 }
00043
00044
00045 void L1GtTriggerMask::setGtTriggerMask(std::vector<unsigned int>& maskValue)
00046 {
00047
00048 m_triggerMask = maskValue;
00049
00050 }
00051
00052
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 }