Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:48:26

0001 #ifndef MCSingleParticleFilter_h
0002 #define MCSingleParticleFilter_h
0003 // -*- C++ -*-
0004 //
0005 // Package:    MCSingleParticleFilter
0006 // Class:      MCSingleParticleFilter
0007 //
0008 /* 
0009 
0010  Description: filter events based on the Pythia particleID and the Pt_hat
0011 
0012  Implementation: inherits from generic EDFilter
0013      
0014 */
0015 //
0016 // Original Author:  Filip Moortgat
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 MCSingleParticleFilter : public edm::global::EDFilter<> {
0041 public:
0042   explicit MCSingleParticleFilter(const edm::ParameterSet&);
0043   ~MCSingleParticleFilter() override;
0044 
0045   bool filter(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
0046 
0047 private:
0048   // ----------memeber function----------------------
0049   // ----------member data ---------------------------
0050 
0051   const edm::EDGetTokenT<edm::HepMCProduct> token_;
0052   std::vector<int> particleID;
0053   std::vector<double> ptMin;
0054   std::vector<double> etaMin;
0055   std::vector<double> etaMax;
0056   std::vector<int> status;
0057   const double betaBoost;
0058 };
0059 #endif