Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:41

0001 #ifndef PYTHIADAUFILTER_h
0002 #define PYTHIADAUFILTER_h
0003 // -*- C++ -*-
0004 //
0005 // Package:    PythiaDauFilter
0006 // Class:      PythiaDauFilter
0007 //
0008 /**\class PythiaDauFilter PythiaDauFilter.cc 
0009 
0010  Description: Filter events using MotherId and ChildrenIds infos
0011 
0012  Implementation:
0013      <Notes on implementation>
0014 */
0015 //
0016 // Original Author:  Daniele Pedrini
0017 //         Created:  Apr 29 2008
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 #include "Pythia8/Pythia.h"
0034 
0035 //
0036 // class decleration
0037 //
0038 namespace edm {
0039   class HepMCProduct;
0040 }
0041 
0042 class PythiaDauFilter : public edm::global::EDFilter<> {
0043 public:
0044   explicit PythiaDauFilter(const edm::ParameterSet&);
0045   ~PythiaDauFilter() override;
0046 
0047   bool filter(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
0048 
0049 private:
0050   // ----------memeber function----------------------
0051 
0052   // ----------member data ---------------------------
0053 
0054   const edm::EDGetTokenT<edm::HepMCProduct> token_;
0055   std::vector<int> dauIDs;
0056   const int particleID;
0057   const bool chargeconju;
0058   const int ndaughters;
0059   const double minptcut;
0060   const double maxptcut;
0061   const double minetacut;
0062   const double maxetacut;
0063   std::unique_ptr<Pythia8::Pythia> fLookupGen;  // this instance is for accessing particleData information
0064 };
0065 #endif