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"]
150 process.hgcalValidator.domulticlustersPlots =
True
158 process.FEVTDEBUGHLTEventContent.outputCommands.extend([
'keep *_multiClustersFromTracksters*_*_*'])
160 process.ticlLayerTileProducer = ticlLayerTileProducer.clone()
162 process.ticlSeedingGlobal = ticlSeedingRegionProducer.clone(
166 process.filteredLayerClustersMIP = filteredLayerClustersProducer.clone(
167 clusterFilter =
"ClusterFilterBySize",
169 max_cluster_size = 2,
170 iteration_label =
"MIP"
173 process.trackstersMIP = trackstersProducer.clone(
174 filtered_mask =
"filteredLayerClustersMIP:MIP",
175 seeding_regions =
"ticlSeedingGlobal",
177 min_layers_per_trackster = 15,
178 min_cos_theta = 0.99,
181 process.multiClustersFromTrackstersMIP = multiClustersFromTrackstersProducer.clone(
182 label =
"MIPMultiClustersFromTracksterByCA",
183 Tracksters =
"trackstersMIP"
186 process.filteredLayerClusters = filteredLayerClustersProducer.clone(
187 clusterFilter =
"ClusterFilterByAlgoAndSize",
188 min_cluster_size = 2,
190 iteration_label =
"algo8"
193 process.tracksters = trackstersProducer.clone(
194 original_mask =
"trackstersMIP",
195 filtered_mask =
"filteredLayerClusters:algo8",
196 seeding_regions =
"ticlSeedingGlobal",
198 min_layers_per_trackster = 15,
199 min_cos_theta = 0.94,
200 min_cos_pointing = 0.7
203 process.multiClustersFromTracksters = multiClustersFromTrackstersProducer.clone(
204 Tracksters =
"tracksters"
207 process.HGCalUncalibRecHit = HGCalUncalibRecHit
208 process.HGCalRecHit = HGCalRecHit
209 process.hgcalLayerClusters = hgcalLayerClusters
210 process.hgcalMultiClusters = hgcalMultiClusters
211 process.TICL_Task = cms.Task(process.HGCalUncalibRecHit,
213 process.hgcalLayerClusters,
214 process.filteredLayerClustersMIP,
215 process.ticlLayerTileProducer,
216 process.ticlSeedingGlobal,
217 process.trackstersMIP,
218 process.multiClustersFromTrackstersMIP,
219 process.filteredLayerClusters,
221 process.multiClustersFromTracksters,
222 process.hgcalMultiClusters)
223 process.schedule = cms.Schedule(process.raw2digi_step,process.FEVTDEBUGHLToutput_step)
224 process.schedule.associate(process.TICL_Task)