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