Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef GENERICDAUHEPMCFILTER_h
0002 #define GENERICDAUHEPMCFILTER_h
0003 // -*- C++ -*-
0004 //
0005 // Package:    GenericDauHepMCFilter
0006 // Class:      GenericDauHepMCFilter
0007 //
0008 /**\class GenericDauHepMCFilter GenericDauHepMCFilter.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 // $Id: GenericDauHepMCFilter.h,v 1.2 2010/07/21 04:23:24 wmtan Exp $
0019 //
0020 //
0021 
0022 // system include files
0023 #include <memory>
0024 
0025 // user include files
0026 #include "GeneratorInterface/Core/interface/BaseHepMCFilter.h"
0027 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0028 
0029 //
0030 // class decleration
0031 //
0032 
0033 class GenericDauHepMCFilter : public BaseHepMCFilter {
0034 public:
0035   GenericDauHepMCFilter(const edm::ParameterSet&);
0036   ~GenericDauHepMCFilter() override;
0037 
0038   bool filter(const HepMC::GenEvent* evt) override;
0039 
0040 private:
0041   // ----------memeber function----------------------
0042 
0043   // ----------member data ---------------------------
0044 
0045   int particleID;
0046   bool chargeconju;
0047   int ndaughters;
0048   std::vector<int> dauIDs;
0049   double minptcut;
0050   double maxptcut;
0051   double minetacut;
0052   double maxetacut;
0053 };
0054 #endif