Main Page
Namespaces
Classes
Package Documentation
GeneratorInterface
GenFilters
interface
MCSingleParticleYPt.h
Go to the documentation of this file.
1
#ifndef MCSingleParticleYPt_h
2
#define MCSingleParticleYPt_h
3
// -*- C++ -*-
4
//
5
// Package: MCSingleParticleYPt
6
// Class: MCSingleParticleYPt
7
//
8
/*
9
10
Description: filter events based on the Pythia particleID, Pt, Y and status. It is based on MCSingleParticleFilter.
11
It will used to filter a b-hadron with the given kinematics, only one b-hadron is required to match.
12
Implementation: inherits from generic EDFilter
13
14
*/
15
//
16
// Author: Alberto Sanchez-Hernandez
17
// Adapted on: August 2016
18
//
19
//
20
21
22
// system include files
23
#include <memory>
24
25
// user include files
26
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
27
#include "
FWCore/Framework/interface/EDFilter.h
"
28
#include "
FWCore/Framework/interface/Event.h
"
29
#include "
FWCore/Framework/interface/MakerMacros.h
"
30
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
31
32
//
33
// class decleration
34
//
35
namespace
edm
{
36
class
HepMCProduct
;
37
}
38
39
class
MCSingleParticleYPt
:
public
edm::EDFilter
{
40
public
:
41
explicit
MCSingleParticleYPt
(
const
edm::ParameterSet
&);
42
~
MCSingleParticleYPt
()
override
;
43
bool
filter
(
edm::Event
&,
const
edm::EventSetup
&)
override
;
44
private
:
45
// ----------member data ---------------------------
46
47
int
fVerbose
;
48
bool
fchekantiparticle
;
49
edm::EDGetTokenT<edm::HepMCProduct>
token_
;
50
std::vector<int>
particleID
;
51
std::vector<double>
ptMin
;
52
std::vector<double>
rapMin
;
53
std::vector<double>
rapMax
;
54
std::vector<int>
status
;
55
double
rapidity
;
56
};
57
#endif
MCSingleParticleYPt::fchekantiparticle
bool fchekantiparticle
Definition:
MCSingleParticleYPt.h:48
MCSingleParticleYPt
Definition:
MCSingleParticleYPt.h:39
MCSingleParticleYPt::particleID
std::vector< int > particleID
Definition:
MCSingleParticleYPt.h:50
MCSingleParticleYPt::status
std::vector< int > status
Definition:
MCSingleParticleYPt.h:54
Event.h
MakerMacros.h
MCSingleParticleYPt::rapMax
std::vector< double > rapMax
Definition:
MCSingleParticleYPt.h:53
edm::EDGetTokenT< edm::HepMCProduct >
Frameworkfwd.h
ParameterSet.h
EDFilter.h
MCSingleParticleYPt::ptMin
std::vector< double > ptMin
Definition:
MCSingleParticleYPt.h:51
HepMCProduct
edm::EventSetup
Definition:
EventSetup.h:57
edm::EDFilter
Definition:
EDFilter.h:39
MCSingleParticleYPt::fVerbose
int fVerbose
Definition:
MCSingleParticleYPt.h:47
MCSingleParticleYPt::rapidity
double rapidity
Definition:
MCSingleParticleYPt.h:55
ALCARECOTkAlBeamHalo_cff.filter
filter
Definition:
ALCARECOTkAlBeamHalo_cff.py:27
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::ParameterSet
Definition:
ParameterSet.h:36
MCSingleParticleYPt::token_
edm::EDGetTokenT< edm::HepMCProduct > token_
Definition:
MCSingleParticleYPt.h:49
MCSingleParticleYPt::rapMin
std::vector< double > rapMin
Definition:
MCSingleParticleYPt.h:52
edm::Event
Definition:
Event.h:71
Generated for CMSSW Reference Manual by
1.8.11