CMS 3D CMS Logo

LHEFilter.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <string>
3 #include <memory>
4 
5 #include <boost/shared_ptr.hpp>
6 
7 #include "HepMC/GenEvent.h"
8 #include "HepMC/SimpleVector.h"
9 
16 
18 
19 class LHEFilter : public edm::EDFilter {
20  public:
21  explicit LHEFilter(const edm::ParameterSet &params);
22  ~LHEFilter() override;
23 
24  protected:
25  bool filter(edm::Event &event, const edm::EventSetup &es) override;
26 
27  private:
29 };
30 
32  sourceLabel(params.getParameter<edm::InputTag>("src"))
33 {
34 }
35 
37 {
38 }
39 
41 {
43  event.getByLabel(sourceLabel, product);
44 
45  return product->GetEvent();
46 }
47 
edm::InputTag sourceLabel
Definition: LHEFilter.cc:28
LHEFilter(const edm::ParameterSet &params)
Definition: LHEFilter.cc:31
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
const HepMC::GenEvent * GetEvent() const
Definition: HepMCProduct.h:38
bool filter(edm::Event &event, const edm::EventSetup &es) override
Definition: LHEFilter.cc:40
HLT enums.
Definition: event.py:1
~LHEFilter() override
Definition: LHEFilter.cc:36