File indexing completed on 2024-04-06 12:13:41
0001 #ifndef PYTHIADAUVFILTER_h
0002 #define PYTHIADAUVFILTER_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include <memory>
0023
0024
0025 #include "FWCore/Framework/interface/Frameworkfwd.h"
0026 #include "FWCore/Framework/interface/global/EDFilter.h"
0027
0028 #include "FWCore/Framework/interface/Event.h"
0029 #include "FWCore/Framework/interface/MakerMacros.h"
0030
0031 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0032
0033 #include "Pythia8/Pythia.h"
0034
0035
0036
0037
0038 namespace edm {
0039 class HepMCProduct;
0040 }
0041
0042 class PythiaDauVFilter : public edm::global::EDFilter<> {
0043 public:
0044 explicit PythiaDauVFilter(const edm::ParameterSet&);
0045 ~PythiaDauVFilter() override;
0046
0047 bool filter(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
0048
0049 private:
0050 const int fVerbose;
0051 const edm::EDGetTokenT<edm::HepMCProduct> token_;
0052 std::vector<int> dauIDs;
0053 const int particleID;
0054 const int motherID;
0055 const bool chargeconju;
0056 const int ndaughters;
0057 std::vector<double> minptcut;
0058 const double maxptcut;
0059 std::vector<double> minetacut;
0060 std::vector<double> maxetacut;
0061 std::unique_ptr<Pythia8::Pythia> fLookupGen;
0062 };
0063 #endif