CMS 3D CMS Logo

pfcand_assomap_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 PFCandAssoMap = cms.EDProducer('PFCand_AssoMap',
4 
5  #Choose which map should be created
6  # "VertexToPFCands", "PFCandsToVertex" or "Both"
7  AssociationType = cms.InputTag('Both'),
8 
9  #Set the number of associations per track/vertex
10  MaxNumberOfAssociations = cms.int32(1),
11 
12  #Set the Input Collections
13  PFCandidateCollection = cms.InputTag('particleFlow'),
14  VertexCollection = cms.InputTag('offlinePrimaryVertices'),
15 
16  #Set the BeamSpot
17  BeamSpot = cms.InputTag('offlineBeamSpot'),
18 
19  #Check for tracks from secondary vertices
20  doReassociation = cms.bool(True),
21  GetCleanedCollections = cms.bool(False),
22 
23  #Configuration for the reassociation of gamma conversion particles
24  ConversionsCollection = cms.InputTag('allConversions'),
25 
26  #Configuration for the reassociation of particles from V0 decays
27  V0KshortCollection = cms.InputTag('generalV0Candidates','Kshort'),
28  V0LambdaCollection = cms.InputTag('generalV0Candidates','Lambda'),
29 
30  #Configuration for the reassociation of particles from nuclear interactions
31  NIVertexCollection = cms.InputTag('particleFlowDisplacedVertex'),
32 
33  #Configuration for the final association
34  # 0 == always first vertex (default)
35  # 1 == closest vertex in z/longitudinal distance
36  # 2 == closest vertex in 3D
37  FinalAssociation = cms.untracked.int32(1),
38 
39  #What to do if the dipl vertex coll can't be found
40  ignoreMissingCollection = cms.bool(True),
41 
42  #Input for the search of the closest vertex
43  nTrackWeight = cms.double(0.001),
44 
45 )
46 
47 PFCandAssoMapJJetMet = cms.EDProducer('PFCand_AssoMap',
48 
49  #Choose which map should be created
50  # "VertexToTracks", "TracksToVertex" or "Both"
51  AssociationType = cms.InputTag('Both'),
52 
53  #Set the number of associations per track/vertex
54  MaxNumberOfAssociations = cms.int32(1),
55 
56  #Set the Input Collections
57  PFCandidateCollection = cms.InputTag('particleFlow'),
58  VertexCollection = cms.InputTag('offlinePrimaryVertices'),
59 
60  #Set the BeamSpot
61  BeamSpot = cms.InputTag('offlineBeamSpot'),
62 
63  #Check for tracks from secondary vertices
64  doReassociation = cms.bool(False),
65  GetCleanedCollections = cms.bool(False),
66 
67  #Configuration for the reassociation of gamma conversion particles
68  ConversionsCollection = cms.InputTag('allConversions'),
69 
70  #Configuration for the reassociation of particles from V0 decays
71  V0KshortCollection = cms.InputTag('generalV0Candidates','Kshort'),
72  V0LambdaCollection = cms.InputTag('generalV0Candidates','Lambda'),
73 
74  #Configuration for the reassociation of particles from nuclear interactions
75  NIVertexCollection = cms.InputTag('particleFlowDisplacedVertex'),
76 
77  #Configuration for the final association
78  # 0 == always first vertex (default)
79  # 1 == closest vertex in z/longitudinal distance
80  # 2 == closest vertex in 3D
81  FinalAssociation = cms.untracked.int32(0),
82 
83  #What to do if the dipl vertex coll can't be found
84  ignoreMissingCollection = cms.bool(True),
85 
86  #Input for the search of the closest vertex
87  nTrackWeight = cms.double(0.),
88 
89 )
90 
91 PFCandAssoMapMuoEgm = cms.EDProducer('PFCand_AssoMap',
92 
93  #Choose which map should be created
94  # "VertexToTracks", "TracksToVertex" or "Both"
95  AssociationType = cms.InputTag('Both'),
96 
97  #Set the number of associations per track/vertex
98  MaxNumberOfAssociations = cms.int32(1),
99 
100  #Set the Input Collections
101  PFCandidateCollection = cms.InputTag('particleFlow'),
102  VertexCollection = cms.InputTag('offlinePrimaryVertices'),
103 
104  #Set the BeamSpot
105  BeamSpot = cms.InputTag('offlineBeamSpot'),
106 
107  #Check for tracks from secondary vertices
108  doReassociation = cms.bool(False),
109  GetCleanedCollections = cms.bool(False),
110 
111  #Configuration for the reassociation of gamma conversion particles
112  ConversionsCollection = cms.InputTag('allConversions'),
113 
114  #Configuration for the reassociation of particles from V0 decays
115  V0KshortCollection = cms.InputTag('generalV0Candidates','Kshort'),
116  V0LambdaCollection = cms.InputTag('generalV0Candidates','Lambda'),
117 
118  #Configuration for the reassociation of particles from nuclear interactions
119  NIVertexCollection = cms.InputTag('particleFlowDisplacedVertex'),
120 
121  #Configuration for the final association
122  # 0 == always first vertex (default)
123  # 1 == closest vertex in z/longitudinal distance
124  # 2 == closest vertex in 3D
125  FinalAssociation = cms.untracked.int32(1),
126 
127  #What to do if the dipl vertex coll can't be found
128  ignoreMissingCollection = cms.bool(True),
129 
130  #Input for the search of the closest vertex
131  nTrackWeight = cms.double(0.),
132 
133 )
134 
135 #Old configuration for imports from other packages
136 #to avoid undefined references
137 PFCands2Vertex = PFCandAssoMap.clone(
138 
139  #Choose which map should be created
140  # "VertexToPFCands", "PFCandsToVertex" or "Both"
141  AssociationType = cms.InputTag('PFCandsToVertex'),
142 
143 )