1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
import FWCore.ParameterSet.Config as cms
from PhysicsTools.NanoAOD.common_cff import *
from PhysicsTools.NanoAOD.nano_cff import nanoMetadata
hltUpgradeNanoTask = cms.Task(nanoMetadata)
### Tracksters
hltTrackstersTable = cms.EDProducer(
"TracksterCollectionTableProducer",
skipNonExistingSrc = cms.bool(True),
src=cms.InputTag("hltTiclTrackstersMerge"),
cut=cms.string(""),
name=cms.string("tracksters"),
doc=cms.string("HLT Merged Tracksters"),
singleton=cms.bool(False), # the number of entries is variable
variables=cms.PSet(
raw_energy=Var("raw_energy", "float", doc="Raw Energy of the trackster"),
),
collectionVariables=cms.PSet(
tracksterVertices=cms.PSet(
name=cms.string("vertices"),
doc=cms.string("Vertex properties"),
useCount=cms.bool(True),
useOffset=cms.bool(True),
variables=cms.PSet(
vertices=Var("vertices", "uint", doc="Layer clusters indices."),
vertex_mult=Var(
"vertex_multiplicity",
"float",
doc="Fraction of Layer cluster energy used by the Trackster.",
),
),
)
),
)
### Tracksters Associators
hltTrackstersAssociationOneToManyTable = cms.EDProducer(
"TracksterTracksterEnergyScoreFlatTableProducer",
src=cms.InputTag(
"hltAllTrackstersToSimTrackstersAssociationsByHits:hltTiclSimTrackstersTohltTiclTrackstersMerge"
),
name=cms.string("SimTS2TSMergeByHits"),
doc=cms.string("Association between SimTracksters and tracksterMerge, by hits."),
collectionVariables=cms.PSet(
links=cms.PSet(
name=cms.string("SimTS2TSMergeByHitsLinks"),
doc=cms.string("Association links."),
useCount=cms.bool(True),
useOffset=cms.bool(False),
variables=cms.PSet(
index=Var("index", "uint", doc="Index of the associated Trackster."),
sharedEnergy=Var(
"sharedEnergy",
"float",
doc="Shared energy with associated Trackster.",
),
score=Var("score", "float", doc="Association score."),
),
)
),
)
### Tracksters Associators
hltSimCl2CPOneToOneFlatTable = cms.EDProducer(
"SimClusterCaloParticleFractionFlatTableProducer",
src=cms.InputTag("SimClusterToCaloParticleAssociation:simClusterToCaloParticleMap"),
name=cms.string("SimCl2CPWithFraction"),
doc=cms.string("Association between SimClusters and CaloParticles."),
variables=cms.PSet(
index=Var("index", "int", doc="Index of linked CaloParticle."),
fraction=Var("fraction", "float", doc="Fraction of linked CaloParticle."),
),
)
|