Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef PYTHIADAUVFILTER_h
0002 #define PYTHIADAUVFILTER_h
0003 // -*- C++ -*-
0004 //
0005 // Package:    PythiaDauVFilter
0006 // Class:      PythiaDauVFilter
0007 //
0008 /**\class PythiaDauVFilter PythiaDauVFilter.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 PythiaDauVFilter : public edm::global::EDFilter<> {
0043 public:
0044   explicit PythiaDauVFilter(const edm::ParameterSet&);
0045   ~PythiaDauVFilter() override;
0046 
0047   bool filter(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
0048 
0049 private:
0050   const int fVerbose;
0051   const edm::EDGetTokenT<edm::HepMCProduct> token_;
0052   std::vector<int> dauIDs;
0053   const int particleID;
0054   const int motherID;
0055   const bool chargeconju;
0056   const int ndaughters;
0057   std::vector<double> minptcut;
0058   const double maxptcut;
0059   std::vector<double> minetacut;
0060   std::vector<double> maxetacut;
0061   std::unique_ptr<Pythia8::Pythia> fLookupGen;  // this instance is for accessing particleData information
0062 };
0063 #endif