Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef __TAGGEDPROTONHEPMCFILTER__
0002 #define __TAGGEDPROTONHEPMCFILTER__
0003 
0004 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0005 
0006 #include "GeneratorInterface/Core/interface/BaseHepMCFilter.h"
0007 
0008 class TaggedProtonHepMCFilter : public BaseHepMCFilter {
0009 private:
0010   const int proton_PDGID_ = 2212;
0011   const int neutron_PDGID_ = 2112;
0012   const double xiMin_;
0013   const double xiMax_;
0014   const double oneOverbeamEnergy_;
0015   const int nProtons_;
0016 
0017 public:
0018   explicit TaggedProtonHepMCFilter(const edm::ParameterSet &);
0019   ~TaggedProtonHepMCFilter() override = default;
0020 
0021   bool filter(const HepMC::GenEvent *evt) override;
0022 };
0023 
0024 #endif