CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTStreamFilter.h
Go to the documentation of this file.
1 #ifndef HLTStreamFilter_h
2 #define HLTStreamFilter_h
3 
21 
22 #include <string>
23 #include <utility>
24 
25 //
26 // class decleration
27 //
28 
30 
31 public:
32  explicit HLTStreamFilter(const edm::ParameterSet & config);
34  virtual ~HLTStreamFilter();
35 
36 private:
37  bool filter(edm::Event & event, const edm::EventSetup & setup) override final;
38 
39  // declared pure virtual to enforce inheriting classes to implement it
40  virtual bool hltFilter(edm::Event & event, const edm::EventSetup & setup, trigger::TriggerFilterObjectWithRefs & filterobject) = 0;
41 
42 private:
43  const bool saveTags_;
44 
45 public:
46  bool saveTags() const {
47  return saveTags_;
48  }
49 
50 public:
51  int path(edm::Event const&) const;
52  int module(edm::Event const&) const;
53  std::pair<int,int> pmid(edm::Event const&) const;
54  const std::string* pathName(edm::Event const&) const;
55  const std::string* moduleLabel() const;
56 };
57 
58 #endif // HLTStreamFilter_h
int module(edm::Event const &) const
bool filter(edm::Event &event, const edm::EventSetup &setup) overridefinal
virtual ~HLTStreamFilter()
const std::string * pathName(edm::Event const &) const
virtual bool hltFilter(edm::Event &event, const edm::EventSetup &setup, trigger::TriggerFilterObjectWithRefs &filterobject)=0
HLTStreamFilter(const edm::ParameterSet &config)
const std::string * moduleLabel() const
std::pair< int, int > pmid(edm::Event const &) const
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
int path(edm::Event const &) const
static void makeHLTFilterDescription(edm::ParameterSetDescription &desc)
const bool saveTags_
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
bool saveTags() const