Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:29:57

0001 #ifndef MCParticlePairFilter_h
0002 #define MCParticlePairFilter_h
0003 // -*- C++ -*-
0004 //
0005 // Package:    MCParticlePairFilter
0006 // Class:      MCParticlePairFilter
0007 //
0008 /* 
0009 
0010  Description: filter events based on the Pythia particle information
0011 
0012  Implementation: inherits from generic EDFilter
0013      
0014 */
0015 //
0016 // Original Author:  Fabian Stoeckli
0017 //         Created:  Mon Sept 11 10:57:54 CET 2006
0018 //
0019 //
0020 
0021 // system include files
0022 #include <memory>
0023 
0024 // user include files
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 // class decleration
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   // ----------memeber function----------------------
0049   int charge(int Id) const;
0050 
0051   // ----------member data ---------------------------
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