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.ticlCandidateFromTrackstersProducer_cfi
import ticlCandidateFromTrackstersProducer
18 from RecoHGCal.TICL.pfTICLProducer_cfi
import pfTICLProducer
19 from Validation.HGCalValidation.ticlPFValidationDefault_cfi
import ticlPFValidationDefault
as ticlPFValidation
24 process.FEVTDEBUGHLTEventContent.outputCommands.extend([
25 'keep *_ticlCandidateFromTrackstersProducer*_*_*',
26 'keep *_pfTICLProducer*_*_*'])
28 process.ticlLayerTileProducer = ticlLayerTileProducer.clone()
30 process.ticlSeedingTrk = ticlSeedingRegionProducer.clone(
34 process.filteredLayerClustersTrk = filteredLayerClustersProducer.clone(
35 clusterFilter =
"ClusterFilterByAlgo",
37 iteration_label =
"Trk"
40 process.trackstersTrk = trackstersProducer.clone(
41 filtered_mask =
"filteredLayerClustersTrk:Trk",
42 seeding_regions =
"ticlSeedingTrk",
44 min_layers_per_trackster = 5,
46 min_cos_pointing = 0.9
49 process.ticlSeedingGlobal = ticlSeedingRegionProducer.clone(
53 process.filteredLayerClustersMIP = filteredLayerClustersProducer.clone(
54 clusterFilter =
"ClusterFilterBySize",
57 iteration_label =
"MIP"
60 process.trackstersMIP = trackstersProducer.clone(
61 filtered_mask =
"filteredLayerClustersMIP:MIP",
62 seeding_regions =
"ticlSeedingGlobal",
64 min_layers_per_trackster = 15,
66 min_cos_pointing = 0.9,
70 process.filteredLayerClusters = filteredLayerClustersProducer.clone(
71 clusterFilter =
"ClusterFilterByAlgoAndSize",
74 iteration_label =
"algo8",
75 LayerClustersInputMask =
"trackstersMIP"
78 process.trackstersEM = trackstersProducer.clone(
80 original_mask =
"trackstersMIP",
81 filtered_mask =
"filteredLayerClusters:algo8",
82 seeding_regions =
"ticlSeedingGlobal",
84 min_layers_per_trackster = 10,
85 min_cos_theta = 0.984,
86 min_cos_pointing = 0.9
89 process.trackstersHAD = trackstersProducer.clone(
90 filtered_mask =
"filteredLayerClusters:algo8",
91 seeding_regions =
"ticlSeedingGlobal",
93 min_layers_per_trackster = 10,
95 min_cos_pointing = 0.7
98 process.ticlCandidateFromTrackstersProducer = ticlCandidateFromTrackstersProducer.clone()
100 process.pfTICLProducer = pfTICLProducer.clone()
102 process.hgcalMultiClusters = hgcalMultiClusters
103 process.TICL_Task = cms.Task(
104 process.ticlLayerTileProducer,
105 process.ticlSeedingTrk,
106 process.filteredLayerClustersTrk,
107 process.trackstersTrk,
108 process.ticlSeedingGlobal,
109 process.filteredLayerClustersMIP,
110 process.trackstersMIP,
111 process.filteredLayerClusters,
112 process.trackstersEM,
113 process.trackstersHAD,
114 process.ticlCandidateFromTrackstersProducer,
115 process.pfTICLProducer)
117 process.schedule.associate(process.TICL_Task)
119 process.ticlPFValidation = ticlPFValidation
120 process.hgcalValidation.insert(-1, process.ticlPFValidation)
122 if getattr(process,
'hgcalValidator'):
123 process.hgcalValidator.label_lcl =
"hgcalLayerClusters"
124 process.hgcalValidator.label_mcl = [
"multiClustersFromTrackstersEM:MultiClustersFromTracksterByCA",
"multiClustersFromTrackstersHAD:MultiClustersFromTracksterByCA"]
125 process.hgcalValidator.domulticlustersPlots =
True
133 process.ticlLayerTileProducer = ticlLayerTileProducer.clone()
135 process.ticlSeedingGlobal = ticlSeedingRegionProducer.clone(
139 process.filteredLayerClustersMIP = filteredLayerClustersProducer.clone(
140 clusterFilter =
"ClusterFilterBySize",
142 max_cluster_size = 2,
143 iteration_label =
"MIP"
146 process.trackstersMIP = trackstersProducer.clone(
147 filtered_mask =
"filteredLayerClustersMIP:MIP",
148 seeding_regions =
"ticlSeedingGlobal",
150 min_layers_per_trackster = 15,
151 min_cos_theta = 0.99,
154 process.filteredLayerClusters = filteredLayerClustersProducer.clone(
155 clusterFilter =
"ClusterFilterByAlgoAndSize",
156 min_cluster_size = 2,
158 iteration_label =
"algo8"
161 process.tracksters = trackstersProducer.clone(
162 original_mask =
"trackstersMIP",
163 filtered_mask =
"filteredLayerClusters:algo8",
164 seeding_regions =
"ticlSeedingGlobal",
166 min_layers_per_trackster = 15,
167 min_cos_theta = 0.94,
168 min_cos_pointing = 0.7
171 process.HGCalUncalibRecHit = HGCalUncalibRecHit
172 process.HGCalRecHit = HGCalRecHit
173 process.hgcalLayerClusters = hgcalLayerClusters
174 process.hgcalMultiClusters = hgcalMultiClusters
175 process.TICL_Task = cms.Task(process.HGCalUncalibRecHit,
177 process.hgcalLayerClusters,
178 process.filteredLayerClustersMIP,
179 process.ticlLayerTileProducer,
180 process.ticlSeedingGlobal,
181 process.trackstersMIP,
182 process.filteredLayerClusters,
184 process.hgcalMultiClusters)
185 process.schedule = cms.Schedule(process.raw2digi_step,process.FEVTDEBUGHLToutput_step)
186 process.schedule.associate(process.TICL_Task)
def TICL_iterations_withReco
withReco: requires full reco of the event to run this part i.e.
def TICL_iterations
TICL_iterations: to be run with local HGCAL reco only i.e.