32 #define PHYSICS_BITS_SIZE 128
33 #define TECHNICAL_BITS_SIZE 64
62 #include <boost/foreach.hpp>
73 m_gtReadoutRecordTag( config.getParameter<edm::InputTag> (
"L1GtReadoutRecordTag") ),
75 m_bunchCrossings( config.getParameter<std::vector<int> > (
"bunchCrossings") ),
80 m_daqPartitions( config.getParameter<unsigned int> (
"daqPartitions") ),
81 m_ignoreL1Mask( config.getParameter<bool> (
"ignoreL1Mask") ),
82 m_invert( config.getParameter<bool> (
"invert") )
84 unsigned long long low = config.
getParameter<
unsigned long long>(
"physicsLoBits");
85 unsigned long long high = config.
getParameter<
unsigned long long>(
"physicsHiBits");
86 unsigned long long tech = config.
getParameter<
unsigned long long>(
"technicalBits");
87 for (
unsigned int i = 0;
i < 64;
i++) {
91 for (
unsigned int i = 0;
i < 64;
i++) {
95 for (
unsigned int i = 0;
i < 64;
i++) {
110 std::vector<int> temp1;
115 desc.
add<std::vector<int> >(
"bunchCrossings",temp1);
117 desc.
add<
unsigned int>(
"daqPartitions",1);
118 desc.
add<
bool>(
"ignoreL1Mask",
false);
119 desc.
add<
bool>(
"invert",
false);
120 desc.
add<
unsigned long long int>(
"physicsLoBits",1);
121 desc.
add<
unsigned long long int>(
"physicsHiBits",262144);
122 desc.
add<
unsigned long long int>(
"technicalBits",1);
123 descriptions.
add(
"hltLevel1Activity",desc);
141 const std::vector<unsigned int> & mask = h_mask->gtTriggerMask();
153 const std::vector<unsigned int> & mask = h_mask->gtTriggerMask();
164 const std::vector<bool> &
physics = h_gtReadoutRecord->decisionWord(bx);
171 const std::vector<bool> & technical = h_gtReadoutRecord->technicalTriggerWord(bx);
T getParameter(std::string const &) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
unsigned int m_daqPartitions
edm::ESWatcher< L1GtTriggerMaskAlgoTrigRcd > m_watchPhysicsMask
#define DEFINE_FWK_MODULE(type)
std::vector< bool > m_selectTechnical
virtual bool filter(edm::Event &, const edm::EventSetup &) override
#define TECHNICAL_BITS_SIZE
std::vector< bool > m_selectPhysics
edm::InputTag m_gtReadoutRecordTag
ParameterDescriptionBase * add(U const &iLabel, T const &value)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
std::vector< bool > m_maskedPhysics
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > m_gtReadoutRecordToken
#define PHYSICS_BITS_SIZE
HLTLevel1Activity(const edm::ParameterSet &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool check(const edm::EventSetup &iSetup)
std::vector< int > m_bunchCrossings
edm::ESWatcher< L1GtTriggerMaskTechTrigRcd > m_watchTechnicalMask
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
std::vector< bool > m_maskedTechnical