CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTDynamicPrescaler.cc
Go to the documentation of this file.
7 
9 public:
12  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
13  bool filter(edm::Event & event, edm::EventSetup const & setup) override;
14 
15 private:
16  unsigned int m_count; // event counter
17  unsigned int m_scale; // accept one event every m_scale, which will change dynamically
18 };
19 
21  m_count(0),
22  m_scale(1) {
23 }
24 
26 }
27 
28 void
31  desc.add<bool>("saveTags",false);
32  descriptions.add("hltDynamicPrescaler",desc);
33 }
34 
36  ++m_count;
37 
38  if (m_count % m_scale)
39  return false;
40 
41  if (m_count == m_scale * 10)
42  m_scale = m_count;
43 
44  return true;
45 }
46 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
bool filter(edm::Event &event, edm::EventSetup const &setup) override
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
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
HLTDynamicPrescaler(edm::ParameterSet const &configuration)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")