1 import FWCore.ParameterSet.Config
as cms
10 from RecoLocalCalo.HGCalRecProducers.hgcalLayerClusters_cff
import hgcalLayerClusters
13 from RecoHGCal.TICL.ticlSeedingRegionProducer_cfi
import ticlSeedingRegionProducer
14 from RecoHGCal.TICL.ticlLayerTileProducer_cfi
import ticlLayerTileProducer
15 from RecoHGCal.TICL.trackstersProducer_cfi
import trackstersProducer
16 from RecoHGCal.TICL.filteredLayerClustersProducer_cfi
import filteredLayerClustersProducer
17 from RecoHGCal.TICL.multiClustersFromTrackstersProducer_cfi
import multiClustersFromTrackstersProducer
18 from RecoHGCal.TICL.ticlCandidateFromTrackstersProducer_cfi
import ticlCandidateFromTrackstersProducer
19 from RecoHGCal.TICL.pfTICLProducer_cfi
import pfTICLProducer
20 from Validation.HGCalValidation.ticlPFValidationDefault_cfi
import ticlPFValidationDefault
as ticlPFValidation
25 process.FEVTDEBUGHLTEventContent.outputCommands.extend([
'keep *_multiClustersFromTracksters*_*_*',
26 'keep *_ticlCandidateFromTrackstersProducer*_*_*',
27 'keep *_pfTICLProducer*_*_*'])
29 process.ticlLayerTileProducer = ticlLayerTileProducer.clone()
31 process.ticlSeedingTrk = ticlSeedingRegionProducer.clone(
35 process.filteredLayerClustersTrk = filteredLayerClustersProducer.clone(
36 clusterFilter =
"ClusterFilterByAlgo",
38 iteration_label =
"Trk"
41 process.trackstersTrk = trackstersProducer.clone(
42 filtered_mask =
"filteredLayerClustersTrk:Trk",
43 seeding_regions =
"ticlSeedingTrk",
45 min_layers_per_trackster = 5,
47 min_cos_pointing = 0.9
50 process.multiClustersFromTrackstersTrk = multiClustersFromTrackstersProducer.clone(
51 label =
"TrkMultiClustersFromTracksterByCA",
52 Tracksters =
"trackstersTrk"
55 process.ticlSeedingGlobal = ticlSeedingRegionProducer.clone(
59 process.filteredLayerClustersMIP = filteredLayerClustersProducer.clone(
60 clusterFilter =
"ClusterFilterBySize",
63 iteration_label =
"MIP"
66 process.trackstersMIP = trackstersProducer.clone(
67 filtered_mask =
"filteredLayerClustersMIP:MIP",
68 seeding_regions =
"ticlSeedingGlobal",
70 min_layers_per_trackster = 15,
72 min_cos_pointing = 0.9,
76 process.multiClustersFromTrackstersMIP = multiClustersFromTrackstersProducer.clone(
77 label =
"MIPMultiClustersFromTracksterByCA",
78 Tracksters =
"trackstersMIP"
81 process.filteredLayerClusters = filteredLayerClustersProducer.clone(
82 clusterFilter =
"ClusterFilterByAlgoAndSize",
85 iteration_label =
"algo8",
86 LayerClustersInputMask =
"trackstersMIP"
89 process.trackstersEM = trackstersProducer.clone(
91 original_mask =
"trackstersMIP",
92 filtered_mask =
"filteredLayerClusters:algo8",
93 seeding_regions =
"ticlSeedingGlobal",
95 min_layers_per_trackster = 10,
96 min_cos_theta = 0.984,
97 min_cos_pointing = 0.9
100 process.multiClustersFromTrackstersEM = multiClustersFromTrackstersProducer.clone(
101 Tracksters =
"trackstersEM"
105 process.trackstersHAD = trackstersProducer.clone(
106 filtered_mask =
"filteredLayerClusters:algo8",
107 seeding_regions =
"ticlSeedingGlobal",
109 min_layers_per_trackster = 10,
111 min_cos_pointing = 0.7
114 process.multiClustersFromTrackstersHAD = multiClustersFromTrackstersProducer.clone(
115 Tracksters =
"trackstersHAD"
118 process.ticlCandidateFromTrackstersProducer = ticlCandidateFromTrackstersProducer.clone()
120 process.pfTICLProducer = pfTICLProducer.clone()
122 process.hgcalMultiClusters = hgcalMultiClusters
123 process.TICL_Task = cms.Task(
124 process.ticlLayerTileProducer,
125 process.ticlSeedingTrk,
126 process.filteredLayerClustersTrk,
127 process.trackstersTrk,
128 process.multiClustersFromTrackstersTrk,
129 process.ticlSeedingGlobal,
130 process.filteredLayerClustersMIP,
131 process.trackstersMIP,
132 process.multiClustersFromTrackstersMIP,
133 process.filteredLayerClusters,
134 process.trackstersEM,
135 process.multiClustersFromTrackstersEM,
136 process.trackstersHAD,
137 process.multiClustersFromTrackstersHAD,
138 process.ticlCandidateFromTrackstersProducer,
139 process.pfTICLProducer)
141 process.schedule.associate(process.TICL_Task)
143 process.ticlPFValidation = ticlPFValidation
144 process.hgcalValidation.insert(-1, process.ticlPFValidation)
146 if getattr(process,
'hgcalValidator'):
147 process.hgcalValidator.label_lcl =
"hgcalLayerClusters"
148 process.hgcalValidator.label_mcl = [
"multiClustersFromTrackstersEM:MultiClustersFromTracksterByCA",
"multiClustersFromTrackstersHAD:MultiClustersFromTracksterByCA"]
149 process.hgcalValidator.domulticlustersPlots =
True
157 process.FEVTDEBUGHLTEventContent.outputCommands.extend([
'keep *_multiClustersFromTracksters*_*_*'])
159 process.ticlLayerTileProducer = ticlLayerTileProducer.clone()
161 process.ticlSeedingGlobal = ticlSeedingRegionProducer.clone(
165 process.filteredLayerClustersMIP = filteredLayerClustersProducer.clone(
166 clusterFilter =
"ClusterFilterBySize",
168 max_cluster_size = 2,
169 iteration_label =
"MIP"
172 process.trackstersMIP = trackstersProducer.clone(
173 filtered_mask =
"filteredLayerClustersMIP:MIP",
174 seeding_regions =
"ticlSeedingGlobal",
176 min_layers_per_trackster = 15,
177 min_cos_theta = 0.99,
180 process.multiClustersFromTrackstersMIP = multiClustersFromTrackstersProducer.clone(
181 label =
"MIPMultiClustersFromTracksterByCA",
182 Tracksters =
"trackstersMIP"
185 process.filteredLayerClusters = filteredLayerClustersProducer.clone(
186 clusterFilter =
"ClusterFilterByAlgoAndSize",
187 min_cluster_size = 2,
189 iteration_label =
"algo8"
192 process.tracksters = trackstersProducer.clone(
193 original_mask =
"trackstersMIP",
194 filtered_mask =
"filteredLayerClusters:algo8",
195 seeding_regions =
"ticlSeedingGlobal",
197 min_layers_per_trackster = 15,
198 min_cos_theta = 0.94,
199 min_cos_pointing = 0.7
202 process.multiClustersFromTracksters = multiClustersFromTrackstersProducer.clone(
203 Tracksters =
"tracksters"
206 process.HGCalUncalibRecHit = HGCalUncalibRecHit
207 process.HGCalRecHit = HGCalRecHit
208 process.hgcalLayerClusters = hgcalLayerClusters
209 process.hgcalMultiClusters = hgcalMultiClusters
210 process.TICL_Task = cms.Task(process.HGCalUncalibRecHit,
212 process.hgcalLayerClusters,
213 process.filteredLayerClustersMIP,
214 process.ticlLayerTileProducer,
215 process.ticlSeedingGlobal,
216 process.trackstersMIP,
217 process.multiClustersFromTrackstersMIP,
218 process.filteredLayerClusters,
220 process.multiClustersFromTracksters,
221 process.hgcalMultiClusters)
222 process.schedule = cms.Schedule(process.raw2digi_step,process.FEVTDEBUGHLToutput_step)
223 process.schedule.associate(process.TICL_Task)