1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#ifndef MCSingleParticleFilter_h
#define MCSingleParticleFilter_h
// -*- C++ -*-
//
// Package: MCSingleParticleFilter
// Class: MCSingleParticleFilter
//
/*
Description: filter events based on the Pythia particleID and the Pt_hat
Implementation: inherits from generic EDFilter
*/
//
// Original Author: Filip Moortgat
// Created: Mon Sept 11 10:57:54 CET 2006
//
//
// system include files
#include <memory>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/global/EDFilter.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
//
// class decleration
//
namespace edm {
class HepMCProduct;
}
class MCSingleParticleFilter : public edm::global::EDFilter<> {
public:
explicit MCSingleParticleFilter(const edm::ParameterSet&);
~MCSingleParticleFilter() override;
bool filter(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
private:
// ----------memeber function----------------------
// ----------member data ---------------------------
const edm::EDGetTokenT<edm::HepMCProduct> token_;
std::vector<int> particleID;
std::vector<double> ptMin;
std::vector<double> etaMin;
std::vector<double> etaMax;
std::vector<int> status;
const double betaBoost;
};
#endif
|