diff --git a/GeneratorInterface/GenFilters/plugins/LHEPtFilter.cc b/GeneratorInterface/GenFilters/plugins/LHEPtFilter.cc index 21b9f71a69561..9516c703c986a 100644 --- a/GeneratorInterface/GenFilters/plugins/LHEPtFilter.cc +++ b/GeneratorInterface/GenFilters/plugins/LHEPtFilter.cc @@ -1,4 +1,60 @@ -#include "GeneratorInterface/GenFilters/plugins/LHEPtFilter.h" +// -*- C++ -*- +// +// Package: LHEPtFilter +// Class: LHEPtFilter +// +/* + + Description: Filter to select events with pT in a given range. + (Based on LHEGenericFilter) + + +*/ +// + +// system include files +#include +#include +#include + +// user include files +#include "Math/Vector4D.h" +#include "Math/Vector4Dfwd.h" + +#include "FWCore/Framework/interface/Frameworkfwd.h" +#include "FWCore/Framework/interface/EDFilter.h" + +#include "FWCore/Framework/interface/Event.h" +#include "FWCore/Framework/interface/MakerMacros.h" + +#include "FWCore/ParameterSet/interface/ParameterSet.h" +#include "SimDataFormats/GeneratorProducts/interface/LHEEventProduct.h" + +// +// class declaration +// + +class LHEPtFilter : public edm::EDFilter { + public: + explicit LHEPtFilter(const edm::ParameterSet&); + ~LHEPtFilter(); + + private: + virtual bool filter(edm::Event&, const edm::EventSetup&); + virtual void endJob(); + + // ----------member data --------------------------- + + edm::EDGetTokenT src_; + std::vector lheParticles; + std::vector cands; + std::vector pdgIdVec_; + std::set pdgIds_; // Set of PDG Ids to include + double ptMin_; // number of particles required to pass filter + double ptMax_; // number of particles required to pass filter + int totalEvents_; // counters + int passedEvents_; +}; using namespace edm; using namespace std; diff --git a/GeneratorInterface/GenFilters/plugins/LHEPtFilter.h b/GeneratorInterface/GenFilters/plugins/LHEPtFilter.h deleted file mode 100644 index 3d45513ecf531..0000000000000 --- a/GeneratorInterface/GenFilters/plugins/LHEPtFilter.h +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef LHEVpTFilter_h -#define LHEVpTFilter_h -// -*- C++ -*- -// -// Package: LHEVpTFilter -// Class: LHEVpTFilter -// -/* - - Description: Filter to select events with V pT in a given range. - (Based on LHEGenericFilter) - - -*/ -// - -// system include files -#include -#include -#include - -// user include files -#include "Math/Vector4D.h" -#include "Math/Vector4Dfwd.h" - -#include "FWCore/Framework/interface/Frameworkfwd.h" -#include "FWCore/Framework/interface/EDFilter.h" - -#include "FWCore/Framework/interface/Event.h" -#include "FWCore/Framework/interface/MakerMacros.h" - -#include "FWCore/ParameterSet/interface/ParameterSet.h" -#include "SimDataFormats/GeneratorProducts/interface/LHEEventProduct.h" - -// -// class declaration -// - -class LHEPtFilter : public edm::EDFilter { - public: - explicit LHEPtFilter(const edm::ParameterSet&); - ~LHEPtFilter(); - - private: - virtual bool filter(edm::Event&, const edm::EventSetup&); - virtual void endJob(); - - // ----------member data --------------------------- - - edm::EDGetTokenT src_; - std::vector lheParticles; - std::vector cands; - std::vector pdgIdVec_; - std::set pdgIds_; // Set of PDG Ids to include - double ptMin_; // number of particles required to pass filter - double ptMax_; // number of particles required to pass filter - int totalEvents_; // counters - int passedEvents_; -}; -#endif