CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
ticl_iterations Namespace Reference

Functions

def TICL_iterations
 TICL_iterations: to be run with local HGCAL reco only i.e. More...
 
def TICL_iterations_withReco
 withReco: requires full reco of the event to run this part i.e. More...
 

Function Documentation

def ticl_iterations.TICL_iterations (   process)

TICL_iterations: to be run with local HGCAL reco only i.e.

collections of generalTracks (track-seeded iteration) NOT available

Definition at line 132 of file ticl_iterations.py.

133 def TICL_iterations(process):
134  process.ticlLayerTileProducer = ticlLayerTileProducer.clone()
135 
136  process.ticlSeedingGlobal = ticlSeedingRegionProducer.clone(
137  algoId = 2
138  )
139 
140  process.filteredLayerClustersMIP = filteredLayerClustersProducer.clone(
141  clusterFilter = "ClusterFilterBySize",
142  algo_number = 8,
143  max_cluster_size = 2, # inclusive
144  iteration_label = "MIP"
145  )
146 
147  process.trackstersMIP = trackstersProducer.clone(
148  filtered_mask = "filteredLayerClustersMIP:MIP",
149  seeding_regions = "ticlSeedingGlobal",
150  skip_layers = 3,
151  min_layers_per_trackster = 15,
152  min_cos_theta = 0.99, # ~10 degrees
153  )
154 
155  process.filteredLayerClusters = filteredLayerClustersProducer.clone(
156  clusterFilter = "ClusterFilterByAlgoAndSize",
157  min_cluster_size = 2,
158  algo_number = 8,
159  iteration_label = "algo8"
160  )
161 
162  process.tracksters = trackstersProducer.clone(
163  original_mask = "trackstersMIP",
164  filtered_mask = "filteredLayerClusters:algo8",
165  seeding_regions = "ticlSeedingGlobal",
166  skip_layers = 2,
167  min_layers_per_trackster = 15,
168  min_cos_theta = 0.94, # ~20 degrees
169  min_cos_pointing = 0.7
170  )
171 
172  process.HGCalUncalibRecHit = HGCalUncalibRecHit
173  process.HGCalRecHit = HGCalRecHit
174  process.hgcalLayerClusters = hgcalLayerClusters
175  process.hgcalMultiClusters = hgcalMultiClusters
176  process.TICL_Task = cms.Task(process.HGCalUncalibRecHit,
177  process.HGCalRecHit,
178  process.hgcalLayerClusters,
179  process.filteredLayerClustersMIP,
180  process.ticlLayerTileProducer,
181  process.ticlSeedingGlobal,
182  process.trackstersMIP,
183  process.filteredLayerClusters,
184  process.tracksters,
185  process.hgcalMultiClusters)
186  process.schedule = cms.Schedule(process.raw2digi_step,process.FEVTDEBUGHLToutput_step)
187  process.schedule.associate(process.TICL_Task)
188  return process
189 
def TICL_iterations
TICL_iterations: to be run with local HGCAL reco only i.e.
def ticl_iterations.TICL_iterations_withReco (   process)

withReco: requires full reco of the event to run this part i.e.

collections of generalTracks can be accessed

Definition at line 23 of file ticl_iterations.py.

23 
24 def TICL_iterations_withReco(process):
25  process.FEVTDEBUGHLTEventContent.outputCommands.extend([
26  'keep *_ticlCandidateFromTrackstersProducer*_*_*',
27  'keep *_pfTICLProducer*_*_*'])
28 
29  process.ticlLayerTileProducer = ticlLayerTileProducer.clone()
30 
31  process.ticlSeedingTrk = ticlSeedingRegionProducer.clone(
32  algoId = 1
33  )
34 
35  process.filteredLayerClustersTrk = filteredLayerClustersProducer.clone(
36  clusterFilter = "ClusterFilterByAlgo",
37  algo_number = 8,
38  iteration_label = "Trk"
39  )
40 
41  process.trackstersTrk = trackstersProducer.clone(
42  filtered_mask = "filteredLayerClustersTrk:Trk",
43  seeding_regions = "ticlSeedingTrk",
44  skip_layers = 3,
45  min_layers_per_trackster = 5,
46  min_cos_theta = 0.99, # ~10 degrees
47  min_cos_pointing = 0.9
48  )
49 
50  process.ticlSeedingGlobal = ticlSeedingRegionProducer.clone(
51  algoId = 2
52  )
53 
54  process.filteredLayerClustersMIP = filteredLayerClustersProducer.clone(
55  clusterFilter = "ClusterFilterBySize",
56  algo_number = 8,
57  max_cluster_size = 2, # inclusive
58  iteration_label = "MIP"
59  )
60 
61  process.trackstersMIP = trackstersProducer.clone(
62  filtered_mask = "filteredLayerClustersMIP:MIP",
63  seeding_regions = "ticlSeedingGlobal",
64  skip_layers = 3,
65  min_layers_per_trackster = 15,
66  min_cos_theta = 0.99, # ~10 degrees
67  min_cos_pointing = 0.9,
68  out_in_dfs = False,
69  )
70 
71  process.filteredLayerClusters = filteredLayerClustersProducer.clone(
72  clusterFilter = "ClusterFilterByAlgoAndSize",
73  min_cluster_size = 2,
74  algo_number = 8,
75  iteration_label = "algo8",
76  LayerClustersInputMask = "trackstersMIP"
77  )
78 
79  process.trackstersEM = trackstersProducer.clone(
80  max_out_in_hops = 4,
81  original_mask = "trackstersMIP",
82  filtered_mask = "filteredLayerClusters:algo8",
83  seeding_regions = "ticlSeedingGlobal",
84  skip_layers = 1,
85  min_layers_per_trackster = 10,
86  min_cos_theta = 0.984, # ~10 degrees
87  min_cos_pointing = 0.9 # ~26 degrees
88  )
89 
90  process.trackstersHAD = trackstersProducer.clone(
91  filtered_mask = "filteredLayerClusters:algo8",
92  seeding_regions = "ticlSeedingGlobal",
93  skip_layers = 2,
94  min_layers_per_trackster = 10,
95  min_cos_theta = 0.8,
96  min_cos_pointing = 0.7
97  )
98 
99  process.ticlCandidateFromTrackstersProducer = ticlCandidateFromTrackstersProducer.clone()
100 
101  process.pfTICLProducer = pfTICLProducer.clone()
102 
103  process.hgcalMultiClusters = hgcalMultiClusters
104  process.TICL_Task = cms.Task(
105  process.ticlLayerTileProducer,
106  process.ticlSeedingTrk,
107  process.filteredLayerClustersTrk,
108  process.trackstersTrk,
109  process.ticlSeedingGlobal,
110  process.filteredLayerClustersMIP,
111  process.trackstersMIP,
112  process.filteredLayerClusters,
113  process.trackstersEM,
114  process.trackstersHAD,
115  process.ticlCandidateFromTrackstersProducer,
116  process.pfTICLProducer)
117 
118  process.schedule.associate(process.TICL_Task)
119 
120  process.ticlPFValidation = ticlPFValidation
121  process.hgcalValidation.insert(-1, process.ticlPFValidation)
122 
123  if getattr(process,'hgcalValidator'):
124  process.hgcalValidator.label_lcl = "hgcalLayerClusters"
125  process.hgcalValidator.label_mcl = ["multiClustersFromTrackstersEM:MultiClustersFromTracksterByCA", "multiClustersFromTrackstersHAD:MultiClustersFromTracksterByCA"]
126  process.hgcalValidator.domulticlustersPlots = True
127 
128  return process
129 
def TICL_iterations_withReco
withReco: requires full reco of the event to run this part i.e.