Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
11
typedef
std::vector<std::vector<reco::GenParticleRef> >
SubEventCollection
;
12
13
GenHIEvent
() :
14
b_
(-99),
15
npart_
(-99),
16
ncoll_
(-99),
17
nhard_
(-99),
18
phi_
(-99),
19
eccentricity_
(-99),
20
nCharged_
(-99),
21
nChargedMR_
(-99),
22
meanPt_
(-99),
23
meanPtMR_
(-99),
24
EtMR_
(-99),
25
nChargedPtCut_
(-99),
26
nChargedPtCutMR_
(-99)
27
{
28
subevents_
.reserve(0);
29
;}
30
31
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) :
32
b_
(b),
33
npart_
(npart),
34
ncoll_
(ncoll),
35
nhard_
(nhard),
36
phi_
(phi),
37
eccentricity_
(ecc),
38
nCharged_
(
nCharged
),
39
nChargedMR_
(nChargedMR),
40
meanPt_
(meanPt),
41
meanPtMR_
(meanPtMR),
42
EtMR_
(
EtMR
),
43
nChargedPtCut_
(nChargedPtCut),
44
nChargedPtCutMR_
(nChargedPtCutMR)
45
{
46
subevents_
.reserve(0);
47
;}
48
49
50
51
52
virtual
~GenHIEvent
() {}
53
54
double
b
()
const
{
return
b_
;}
55
int
Npart
()
const
{
return
npart_
;}
56
int
Ncoll
()
const
{
return
ncoll_
;}
57
int
Nhard
()
const
{
return
nhard_
;}
58
double
evtPlane
()
const
{
return
phi_
;}
59
double
eccentricity
()
const
{
return
eccentricity_
;}
60
int
Ncharged
()
const
{
return
nCharged_
;}
61
int
NchargedMR
()
const
{
return
nChargedMR_
;}
62
double
MeanPt
()
const
{
return
meanPt_
;}
63
double
MeanPtMR
()
const
{
return
meanPtMR_
;}
64
double
EtMR
()
const
{
return
EtMR_
;}
65
int
NchargedPtCut
()
const
{
return
nChargedPtCut_
;}
66
int
NchargedPtCutMR
()
const
{
return
nChargedPtCutMR_
;}
67
void
setGenParticles
(
const
reco::GenParticleCollection
*)
const
;
68
const
std::vector<reco::GenParticleRef>
getSubEvent
(
unsigned
int
sub_id)
const
;
69
70
int
getNsubs
()
const
{
return
subevents_
.size();}
71
72
private
:
73
74
mutable
SubEventCollection
subevents_
;
75
int
sel_
;
76
77
double
b_
;
78
int
npart_
;
79
int
ncoll_
;
80
int
nhard_
;
81
double
phi_
;
82
double
eccentricity_
;
83
int
nCharged_
;
84
int
nChargedMR_
;
85
double
meanPt_
;
86
double
meanPtMR_
;
87
double
EtMR_
;
88
int
nChargedPtCut_
;
89
int
nChargedPtCutMR_
;
90
91
};
92
}
93
#endif
reco::GenParticleCollection
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
Definition:
GenParticleFwd.h:10
edm::GenHIEvent::NchargedMR
int NchargedMR() const
Definition:
GenHIEvent.h:61
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:31
edm::GenHIEvent::b
double b() const
Definition:
GenHIEvent.h:54
edm::GenHIEvent::npart_
int npart_
Definition:
GenHIEvent.h:78
GenParticle.h
edm::GenHIEvent::nChargedPtCut_
int nChargedPtCut_
Definition:
GenHIEvent.h:88
edm::GenHIEvent::nChargedPtCutMR_
int nChargedPtCutMR_
Definition:
GenHIEvent.h:89
edm::GenHIEvent::getSubEvent
const std::vector< reco::GenParticleRef > getSubEvent(unsigned int sub_id) const
Definition:
GenHIEvent.cc:18
npart
double npart
Definition:
HydjetWrapper.h:45
edm::GenHIEvent::Ncharged
int Ncharged() const
Definition:
GenHIEvent.h:60
edm::GenHIEvent::phi_
double phi_
Definition:
GenHIEvent.h:81
edm::GenHIEvent::nCharged_
int nCharged_
Definition:
GenHIEvent.h:83
edm::GenHIEvent::EtMR_
double EtMR_
Definition:
GenHIEvent.h:87
edm::GenHIEvent::eccentricity_
double eccentricity_
Definition:
GenHIEvent.h:82
edm::GenHIEvent::MeanPtMR
double MeanPtMR() const
Definition:
GenHIEvent.h:63
edm::GenHIEvent::Ncoll
int Ncoll() const
Definition:
GenHIEvent.h:56
GenParticleFwd.h
edm::GenHIEvent::subevents_
SubEventCollection subevents_
Definition:
GenHIEvent.h:74
edm::GenHIEvent::meanPtMR_
double meanPtMR_
Definition:
GenHIEvent.h:86
edm::GenHIEvent::setGenParticles
void setGenParticles(const reco::GenParticleCollection *) const
Definition:
GenHIEvent.cc:5
edm::GenHIEvent::NchargedPtCutMR
int NchargedPtCutMR() const
Definition:
GenHIEvent.h:66
edm::GenHIEvent
Definition:
GenHIEvent.h:8
edm::GenHIEvent::nhard_
int nhard_
Definition:
GenHIEvent.h:80
edm::GenHIEvent::NchargedPtCut
int NchargedPtCut() const
Definition:
GenHIEvent.h:65
edm::GenHIEvent::GenHIEvent
GenHIEvent()
Definition:
GenHIEvent.h:13
edm::GenHIEvent::ncoll_
int ncoll_
Definition:
GenHIEvent.h:79
reco::tau::helpers::nCharged
unsigned int nCharged(const GenJet &jet)
Definition:
RecoTauObjectEmbedderPlugin.cc:29
edm::GenHIEvent::meanPt_
double meanPt_
Definition:
GenHIEvent.h:85
edm::GenHIEvent::nChargedMR_
int nChargedMR_
Definition:
GenHIEvent.h:84
edm::GenHIEvent::b_
double b_
Definition:
GenHIEvent.h:77
edm::GenHIEvent::Npart
int Npart() const
Definition:
GenHIEvent.h:55
edm::GenHIEvent::SubEventCollection
std::vector< std::vector< reco::GenParticleRef > > SubEventCollection
Definition:
GenHIEvent.h:11
edm::GenHIEvent::sel_
int sel_
Definition:
GenHIEvent.h:75
edm::GenHIEvent::~GenHIEvent
virtual ~GenHIEvent()
Definition:
GenHIEvent.h:52
edm::GenHIEvent::Nhard
int Nhard() const
Definition:
GenHIEvent.h:57
edm::GenHIEvent::eccentricity
double eccentricity() const
Definition:
GenHIEvent.h:59
edm::GenHIEvent::evtPlane
double evtPlane() const
Definition:
GenHIEvent.h:58
edm::GenHIEvent::getNsubs
int getNsubs() const
Definition:
GenHIEvent.h:70
edm::GenHIEvent::EtMR
double EtMR() const
Definition:
GenHIEvent.h:64
edm::GenHIEvent::MeanPt
double MeanPt() const
Definition:
GenHIEvent.h:62
phi
Definition:
DDAxes.h:10
Generated for CMSSW Reference Manual by
1.8.5