CMS 3D CMS Logo

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  ~HLTStreamFilter() override;
35 
36 private:
37  bool filter(edm::Event & event, const edm::EventSetup & setup) 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
bool filter(edm::Event &event, const edm::EventSetup &setup) final
int module(edm::Event const &) const
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
Definition: config.py:1
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
~HLTStreamFilter() override
int path(edm::Event const &) const
static void makeHLTFilterDescription(edm::ParameterSetDescription &desc)
const bool saveTags_
bool saveTags() const
Definition: event.py:1