Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
TopQuarkAnalysis
TopEventProducers
src
TtGenEventReco.cc
Go to the documentation of this file.
1
#include "
AnalysisDataFormats/TopObjects/interface/TtGenEvent.h
"
2
3
#include "
TopQuarkAnalysis/TopEventProducers/interface/TtGenEventReco.h
"
4
5
TtGenEventReco::TtGenEventReco
(
const
edm::ParameterSet
&
cfg
)
6
: srcToken_(consumes<
reco
::
GenParticleCollection
>(
cfg
.getParameter<
edm
::
InputTag
>(
"src"
))),
7
initToken_(consumes<
reco
::
GenParticleCollection
>(
cfg
.getParameter<
edm
::
InputTag
>(
"init"
))) {
8
produces<TtGenEvent>();
9
}
10
11
TtGenEventReco::~TtGenEventReco
() {}
12
13
void
TtGenEventReco::produce
(
edm::Event
& evt,
const
edm::EventSetup
&
setup
) {
14
edm::Handle<reco::GenParticleCollection>
parts
;
15
evt.
getByToken
(
srcToken_
,
parts
);
16
17
edm::Handle<reco::GenParticleCollection>
inits;
18
evt.
getByToken
(
initToken_
, inits);
19
20
//add TopDecayTree
21
reco::GenParticleRefProd
cands
(
parts
);
22
23
//add InitialStatePartons
24
reco::GenParticleRefProd
initParts(inits);
25
26
//add genEvt to the output stream
27
TtGenEvent
*
genEvt
=
new
TtGenEvent
(
cands
, initParts);
28
std::unique_ptr<TtGenEvent>
gen
(
genEvt
);
29
evt.
put
(
std::move
(
gen
));
30
}
edm::RefProd< GenParticleCollection >
TtGenEventReco.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
HLT_FULL_cff.InputTag
InputTag
Definition:
HLT_FULL_cff.py:89301
reco::GenParticleCollection
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
Definition:
GenParticleFwd.h:13
TtGenEvent
Class derived from the TopGenEvent for ttbar events.
Definition:
TtGenEvent.h:18
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
edm::Handle< reco::GenParticleCollection >
singleTopDQM_cfi.setup
setup
Definition:
singleTopDQM_cfi.py:37
TtGenEventReco::srcToken_
edm::EDGetTokenT< reco::GenParticleCollection > srcToken_
Definition:
TtGenEventReco.h:14
contentValuesFiles.parts
parts
Definition:
contentValuesFiles.py:58
TtGenEventReco::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
TtGenEventReco.cc:13
edm::Event::getByToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition:
Event.h:539
gen
Definition:
PythiaDecays.h:13
TtGenEventReco::~TtGenEventReco
~TtGenEventReco() override
Definition:
TtGenEventReco.cc:11
TtGenEventReco::TtGenEventReco
TtGenEventReco(const edm::ParameterSet &)
Definition:
TtGenEventReco.cc:5
HLT_FULL_cff.cands
cands
Definition:
HLT_FULL_cff.py:15161
edm::ParameterSet
Definition:
ParameterSet.h:47
TtGenEvent.h
edm::Event::put
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition:
Event.h:133
edm::EventSetup
Definition:
EventSetup.h:58
looper.cfg
cfg
Definition:
looper.py:296
eostools.move
def move(src, dest)
Definition:
eostools.py:511
relval_steps.gen
def gen(fragment, howMuch)
Production test section ####.
Definition:
relval_steps.py:506
edm::Event
Definition:
Event.h:73
TtGenEvtProducer_cfi.genEvt
genEvt
Definition:
TtGenEvtProducer_cfi.py:7
TtGenEventReco::initToken_
edm::EDGetTokenT< reco::GenParticleCollection > initToken_
Definition:
TtGenEventReco.h:15
Generated for CMSSW Reference Manual by
1.8.16