File indexing completed on 2024-04-06 12:13:40
0001 #ifndef MCParticlePairFilter_h
0002 #define MCParticlePairFilter_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
0034
0035
0036 namespace edm {
0037 class HepMCProduct;
0038 }
0039
0040 class MCParticlePairFilter : public edm::global::EDFilter<> {
0041 public:
0042 explicit MCParticlePairFilter(const edm::ParameterSet&);
0043 ~MCParticlePairFilter() override;
0044
0045 bool filter(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
0046
0047 private:
0048
0049 int charge(int Id) const;
0050
0051
0052
0053 const edm::EDGetTokenT<edm::HepMCProduct> token_;
0054 std::vector<int> particleID1;
0055 std::vector<int> particleID2;
0056 std::vector<double> ptMin;
0057 std::vector<double> pMin;
0058 std::vector<double> etaMin;
0059 std::vector<double> etaMax;
0060 std::vector<int> status;
0061 const int particleCharge;
0062 const double minInvMass;
0063 const double maxInvMass;
0064 const double minDeltaPhi;
0065 const double maxDeltaPhi;
0066 const double minDeltaR;
0067 const double maxDeltaR;
0068 const double betaBoost;
0069 };
0070 #endif