SimDataFormats
HiGenData
interface
GenHIEvent.h
Go to the documentation of this file.
1
#ifndef SimDataFormats_GenHIEvent_h
2
#define SimDataFormats_GenHIEvent_h
3
4
#include "
DataFormats/HepMCCandidate/interface/GenParticle.h
"
5
#include "
DataFormats/HepMCCandidate/interface/GenParticleFwd.h
"
6
7
namespace
edm
{
8
class
GenHIEvent
{
9
public
:
10
typedef
std::vector<std::vector<reco::GenParticleRef> >
SubEventCollection
;
11
12
GenHIEvent
()
13
:
b_
(-99),
14
npart_
(-99),
15
ncoll_
(-99),
16
nhard_
(-99),
17
phi_
(-99),
18
eccentricity_
(-99),
19
nCharged_
(-99),
20
nChargedMR_
(-99),
21
meanPt_
(-99),
22
meanPtMR_
(-99),
23
EtMR_
(-99),
24
nChargedPtCut_
(-99),
25
nChargedPtCutMR_
(-99) {
26
subevents_
.reserve(0);
27
;
28
}
29
30
GenHIEvent
(
double
b
,
31
int
npart
,
32
int
ncoll,
33
int
nhard,
34
double
phi,
35
double
ecc = -99,
36
double
nCharged
= -99,
37
double
nChargedMR = -99,
38
double
meanPt = -99,
39
double
meanPtMR = -99,
40
double
EtMR
= -99,
41
int
nChargedPtCut = -99,
42
int
nChargedPtCutMR = -99)
43
:
b_
(
b
),
44
npart_
(
npart
),
45
ncoll_
(ncoll),
46
nhard_
(nhard),
47
phi_
(phi),
48
eccentricity_
(ecc),
49
nCharged_
(
nCharged
),
50
nChargedMR_
(nChargedMR),
51
meanPt_
(meanPt),
52
meanPtMR_
(meanPtMR),
53
EtMR_
(
EtMR
),
54
nChargedPtCut_
(nChargedPtCut),
55
nChargedPtCutMR_
(nChargedPtCutMR) {
56
subevents_
.reserve(0);
57
;
58
}
59
60
virtual
~GenHIEvent
() {}
61
62
double
b
()
const
{
return
b_
; }
63
int
Npart
()
const
{
return
npart_
; }
64
int
Ncoll
()
const
{
return
ncoll_
; }
65
int
Nhard
()
const
{
return
nhard_
; }
66
double
evtPlane
()
const
{
return
phi_
; }
67
double
eccentricity
()
const
{
return
eccentricity_
; }
68
int
Ncharged
()
const
{
return
nCharged_
; }
69
int
NchargedMR
()
const
{
return
nChargedMR_
; }
70
double
MeanPt
()
const
{
return
meanPt_
; }
71
double
MeanPtMR
()
const
{
return
meanPtMR_
; }
72
double
EtMR
()
const
{
return
EtMR_
; }
73
int
NchargedPtCut
()
const
{
return
nChargedPtCut_
; }
74
int
NchargedPtCutMR
()
const
{
return
nChargedPtCutMR_
; }
75
void
setGenParticles
(
const
reco::GenParticleCollection
*);
76
const
std::vector<reco::GenParticleRef>
getSubEvent
(
unsigned
int
sub_id)
const
;
77
78
int
getNsubs
()
const
{
return
subevents_
.size(); }
79
80
private
:
81
SubEventCollection
subevents_
;
82
int
sel_
;
83
84
double
b_
;
85
int
npart_
;
86
int
ncoll_
;
87
int
nhard_
;
88
double
phi_
;
89
double
eccentricity_
;
90
int
nCharged_
;
91
int
nChargedMR_
;
92
double
meanPt_
;
93
double
meanPtMR_
;
94
double
EtMR_
;
95
int
nChargedPtCut_
;
96
int
nChargedPtCutMR_
;
97
};
98
}
// namespace edm
99
#endif
reco::GenParticleCollection
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
Definition:
GenParticleFwd.h:13
edm::GenHIEvent::NchargedPtCutMR
int NchargedPtCutMR() const
Definition:
GenHIEvent.h:74
edm::GenHIEvent::GenHIEvent
GenHIEvent(double b, int npart, int ncoll, int nhard, double phi, double ecc=-99, double nCharged=-99, double nChargedMR=-99, double meanPt=-99, double meanPtMR=-99, double EtMR=-99, int nChargedPtCut=-99, int nChargedPtCutMR=-99)
Definition:
GenHIEvent.h:30
edm::GenHIEvent::NchargedMR
int NchargedMR() const
Definition:
GenHIEvent.h:69
edm::GenHIEvent::setGenParticles
void setGenParticles(const reco::GenParticleCollection *)
Definition:
GenHIEvent.cc:5
edm::GenHIEvent::npart_
int npart_
Definition:
GenHIEvent.h:85
edm::GenHIEvent::Ncharged
int Ncharged() const
Definition:
GenHIEvent.h:68
edm::GenHIEvent::EtMR
double EtMR() const
Definition:
GenHIEvent.h:72
GenParticle.h
edm::GenHIEvent::nChargedPtCut_
int nChargedPtCut_
Definition:
GenHIEvent.h:95
edm::GenHIEvent::nChargedPtCutMR_
int nChargedPtCutMR_
Definition:
GenHIEvent.h:96
npart
double npart
Definition:
HydjetWrapper.h:46
edm::GenHIEvent::phi_
double phi_
Definition:
GenHIEvent.h:88
edm::GenHIEvent::eccentricity
double eccentricity() const
Definition:
GenHIEvent.h:67
edm::GenHIEvent::Nhard
int Nhard() const
Definition:
GenHIEvent.h:65
edm::GenHIEvent::nCharged_
int nCharged_
Definition:
GenHIEvent.h:90
edm::GenHIEvent::Npart
int Npart() const
Definition:
GenHIEvent.h:63
edm::GenHIEvent::EtMR_
double EtMR_
Definition:
GenHIEvent.h:94
edm::GenHIEvent::Ncoll
int Ncoll() const
Definition:
GenHIEvent.h:64
edm::GenHIEvent::NchargedPtCut
int NchargedPtCut() const
Definition:
GenHIEvent.h:73
edm::GenHIEvent::eccentricity_
double eccentricity_
Definition:
GenHIEvent.h:89
HLT_2022v11_cff.nCharged
nCharged
Definition:
HLT_2022v11_cff.py:24820
edm::GenHIEvent::getNsubs
int getNsubs() const
Definition:
GenHIEvent.h:78
edm::GenHIEvent::b
double b() const
Definition:
GenHIEvent.h:62
GenParticleFwd.h
edm::GenHIEvent::subevents_
SubEventCollection subevents_
Definition:
GenHIEvent.h:81
edm::GenHIEvent::meanPtMR_
double meanPtMR_
Definition:
GenHIEvent.h:93
edm::GenHIEvent
Definition:
GenHIEvent.h:8
edm::GenHIEvent::nhard_
int nhard_
Definition:
GenHIEvent.h:87
edm::GenHIEvent::GenHIEvent
GenHIEvent()
Definition:
GenHIEvent.h:12
edm::GenHIEvent::evtPlane
double evtPlane() const
Definition:
GenHIEvent.h:66
edm::GenHIEvent::ncoll_
int ncoll_
Definition:
GenHIEvent.h:86
edm::GenHIEvent::meanPt_
double meanPt_
Definition:
GenHIEvent.h:92
edm::GenHIEvent::nChargedMR_
int nChargedMR_
Definition:
GenHIEvent.h:91
edm::GenHIEvent::b_
double b_
Definition:
GenHIEvent.h:84
edm::GenHIEvent::MeanPt
double MeanPt() const
Definition:
GenHIEvent.h:70
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::GenHIEvent::SubEventCollection
std::vector< std::vector< reco::GenParticleRef > > SubEventCollection
Definition:
GenHIEvent.h:10
edm::GenHIEvent::sel_
int sel_
Definition:
GenHIEvent.h:82
edm::GenHIEvent::~GenHIEvent
virtual ~GenHIEvent()
Definition:
GenHIEvent.h:60
edm::GenHIEvent::MeanPtMR
double MeanPtMR() const
Definition:
GenHIEvent.h:71
edm::GenHIEvent::getSubEvent
const std::vector< reco::GenParticleRef > getSubEvent(unsigned int sub_id) const
Definition:
GenHIEvent.cc:18
Generated for CMSSW Reference Manual by
1.8.14