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
StGenEventReco.cc
Go to the documentation of this file.
1
#include "
TopQuarkAnalysis/TopEventProducers/interface/StGenEventReco.h
"
2
3
StGenEventReco::StGenEventReco
(
const
edm::ParameterSet
&
cfg
)
4
: srcToken_(consumes<
reco
::
GenParticleCollection
>(
cfg
.getParameter<
edm
::
InputTag
>(
"src"
))),
5
initToken_(consumes<
reco
::
GenParticleCollection
>(
cfg
.getParameter<
edm
::
InputTag
>(
"init"
))) {
6
produces<StGenEvent>();
7
}
8
9
StGenEventReco::~StGenEventReco
() {}
10
11
void
StGenEventReco::produce
(
edm::Event
& evt,
const
edm::EventSetup
&
setup
) {
12
edm::Handle<reco::GenParticleCollection>
parts
;
13
evt.
getByToken
(
srcToken_
,
parts
);
14
15
edm::Handle<reco::GenParticleCollection>
inits;
16
evt.
getByToken
(
initToken_
, inits);
17
18
//add TopDecayTree
19
reco::GenParticleRefProd
cands
(
parts
);
20
21
//add InitialStatePartons
22
reco::GenParticleRefProd
initParts(inits);
23
24
//add genEvt to the output stream
25
StGenEvent
*
genEvt
=
new
StGenEvent
(
cands
, initParts);
26
std::unique_ptr<StGenEvent>
gen
(
genEvt
);
27
evt.
put
(
std::move
(
gen
));
28
}
edm::RefProd< GenParticleCollection >
StGenEventReco::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition:
StGenEventReco.cc:11
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
StGenEvent
Class derived from the TopGenEvent for single-top events.
Definition:
StGenEvent.h:17
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
StGenEventReco::initToken_
edm::EDGetTokenT< reco::GenParticleCollection > initToken_
Definition:
StGenEventReco.h:16
edm::Handle< reco::GenParticleCollection >
singleTopDQM_cfi.setup
setup
Definition:
singleTopDQM_cfi.py:37
StGenEventReco::srcToken_
edm::EDGetTokenT< reco::GenParticleCollection > srcToken_
Definition:
StGenEventReco.h:15
StGenEventReco::StGenEventReco
StGenEventReco(const edm::ParameterSet &)
Definition:
StGenEventReco.cc:3
contentValuesFiles.parts
parts
Definition:
contentValuesFiles.py:58
edm::Event::getByToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition:
Event.h:539
gen
Definition:
PythiaDecays.h:13
HLT_FULL_cff.cands
cands
Definition:
HLT_FULL_cff.py:15161
edm::ParameterSet
Definition:
ParameterSet.h:47
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
StGenEventReco.h
StGenEventReco::~StGenEventReco
~StGenEventReco() override
Definition:
StGenEventReco.cc:9
edm::Event
Definition:
Event.h:73
TtGenEvtProducer_cfi.genEvt
genEvt
Definition:
TtGenEvtProducer_cfi.py:7
Generated for CMSSW Reference Manual by
1.8.16