Skip to content

Commit

Permalink
removing header for LHEPtFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgilbert committed Dec 4, 2019
1 parent a9ddb3d commit b2f8377
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 61 deletions.
58 changes: 57 additions & 1 deletion GeneratorInterface/GenFilters/plugins/LHEPtFilter.cc
Original file line number Diff line number Diff line change
@@ -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 <memory>
#include <iostream>
#include <set>

// 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<LHEEventProduct> src_;
std::vector<lhef::HEPEUP::FiveVector> lheParticles;
std::vector<ROOT::Math::PxPyPzEVector> cands;
std::vector<int> pdgIdVec_;
std::set<int> 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;
Expand Down
60 changes: 0 additions & 60 deletions GeneratorInterface/GenFilters/plugins/LHEPtFilter.h

This file was deleted.

0 comments on commit b2f8377

Please sign in to comment.