1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#ifndef PYTHIAFILTERGAMMAGAMMA_h
#define PYTHIAFILTERGAMMAGAMMA_h
//
// Package: GeneratorInterface/GenFilters
// Class: PythiaFilterGammaGamma
//
// Original Author: Matteo Sani
//
//
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/global/EDFilter.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "GeneratorInterface/Core/interface/PythiaHepMCFilterGammaGamma.h"
namespace edm {
class HepMCProduct;
}
class PythiaFilterGammaGamma : public edm::global::EDFilter<> {
public:
explicit PythiaFilterGammaGamma(const edm::ParameterSet&);
~PythiaFilterGammaGamma() override;
bool filter(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
private:
const edm::EDGetTokenT<edm::HepMCProduct> token_;
/** the actual implementation of the filter,
adapted to be used with HepMCFilterDriver.
We make this a pointer because EDFilter::filter() is const
while BaseHepMCFilter::filter() is not.
*/
std::unique_ptr<PythiaHepMCFilterGammaGamma> hepMCFilter_;
};
#endif
|