59 #include <boost/foreach.hpp>
72 m_gtReadoutRecord( config.getParameter<edm::InputTag> (
"L1GtReadoutRecordTag") ),
73 m_triggerBit( config.getParameter<std::
string> (
"triggerBit") ),
74 m_bunchCrossings( config.getParameter<std::vector<int> > (
"bunchCrossings") ),
75 m_triggerPattern( m_bunchCrossings.
size(),
false ),
76 m_daqPartitions( config.getParameter<unsigned int> (
"daqPartitions") ),
78 m_triggerAlgo(
true ),
79 m_triggerMasked(
false ),
80 m_ignoreL1Mask( config.getParameter<bool> (
"ignoreL1Mask") ),
81 m_invert( config.getParameter<bool> (
"invert") ),
82 m_throw ( config.getParameter<bool> (
"throw" ) )
86 throw cms::Exception(
"Configuration") <<
"\"bunchCrossings\" and \"triggerPattern\" parameters do not match";
88 for (
unsigned int i = 0;
i < pattern.size(); ++
i)
100 desc.
add<
std::string>(
"triggerBit",
"L1Tech_RPC_TTU_pointing_Cosmics.v0");
102 std::vector<int> temp1;
109 desc.
add<std::vector<int> >(
"bunchCrossings",temp1);
111 desc.
add<
unsigned int>(
"daqPartitions",1);
112 desc.
add<
bool>(
"ignoreL1Mask",
false);
113 desc.
add<
bool>(
"invert",
false);
114 desc.
add<
bool>(
"throw",
true);
116 std::vector<int> temp1;
123 desc.
add<std::vector<int> >(
"triggerPattern",temp1);
125 descriptions.
add(
"hltLevel1Pattern",desc);
142 const AlgorithmMap & algoMap = h_menu->gtAlgorithmAliasMap();
143 const AlgorithmMap & techMap = h_menu->gtTechnicalTriggerMap();
144 AlgorithmMap::const_iterator
entry;
145 if ((entry = algoMap.find(
m_triggerBit)) != algoMap.end()) {
149 if ((entry = techMap.find(
m_triggerBit)) != techMap.end()) {
154 throw cms::Exception(
"Configuration") <<
"requested L1 trigger \"" <<
m_triggerBit <<
"\" does not exist in the current L1 menu";
194 const std::vector<bool> & word = (
m_triggerAlgo) ? h_gtReadoutRecord->decisionWord(bx) : h_gtReadoutRecord->technicalTriggerWord(bx);
T getParameter(std::string const &) const
HLTLevel1Pattern(const edm::ParameterSet &)
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
edm::InputTag m_gtReadoutRecord
#define DEFINE_FWK_MODULE(type)
edm::ESWatcher< L1GtTriggerMaskTechTrigRcd > m_watchTechnicalMask
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< int > m_bunchCrossings
virtual bool filter(edm::Event &, const edm::EventSetup &)
std::pair< std::string, MonitorElement * > entry
unsigned int m_triggerNumber
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
edm::ESWatcher< L1GtTriggerMenuRcd > m_watchL1Menu
unsigned int m_daqPartitions
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< int > m_triggerPattern
bool check(const edm::EventSetup &iSetup)
edm::ESWatcher< L1GtTriggerMaskAlgoTrigRcd > m_watchPhysicsMask
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
tuple size
Write out results.