CMS 3D CMS Logo

customiseTICLFromReco.py
Go to the documentation of this file.
1 # Reconstruction
3 from RecoLocalCalo.HGCalRecProducers.hgcalLayerClusters_cff import hgcalLayerClustersEE, hgcalLayerClustersHSi, hgcalLayerClustersHSci
4 from RecoLocalCalo.HGCalRecProducers.hgcalMergeLayerClusters_cfi import hgcalMergeLayerClusters
5 # Validation
7 from RecoLocalCalo.HGCalRecProducers.hgcalRecHitMapProducer_cfi import hgcalRecHitMapProducer
8 
9 # Load DNN ESSource
10 from RecoTracker.IterativeTracking.iterativeTk_cff import trackdnn_source
11 
12 # Automatic addition of the customisation function from RecoHGCal.Configuration.RecoHGCal_EventContent_cff
13 from RecoHGCal.Configuration.RecoHGCal_EventContent_cff import customiseHGCalOnlyEventContent
14 
15 
16 def customiseTICLFromReco(process):
17 # TensorFlow ESSource
18  process.TFESSource = cms.Task(process.trackdnn_source)
19 
20  process.hgcalLayerClustersTask = cms.Task(process.hgcalLayerClustersEE,
21  process.hgcalLayerClustersHSi,
22  process.hgcalLayerClustersHSci,
23  process.hgcalMergeLayerClusters)
24 
25 # Reconstruction
26  process.TICL = cms.Path(process.hgcalLayerClustersTask,
27  process.TFESSource,
28  process.ticlLayerTileTask,
29  process.ticlIterationsTask,
30  process.ticlTracksterMergeTask)
31 # Validation
32  process.TICL_ValidationProducers = cms.Task(process.hgcalRecHitMapProducer,
33  process.lcAssocByEnergyScoreProducer,
34  process.layerClusterCaloParticleAssociationProducer,
35  process.scAssocByEnergyScoreProducer,
36  process.layerClusterSimClusterAssociationProducer,
37  )
38  process.TICL_Validator = cms.Task(process.hgcalValidator)
39  process.TICL_Validation = cms.Path(process.TICL_ValidationProducers,
40  process.TICL_Validator
41  )
42 # Path and EndPath definitions
43  process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
44  process.DQMoutput_step = cms.EndPath(process.DQMoutput)
45 
46 # Schedule definition
47  process.schedule = cms.Schedule(process.TICL,
48  process.TICL_Validation,
49  process.FEVTDEBUGHLToutput_step,
50  process.DQMoutput_step)
51 #call to customisation function customiseHGCalOnlyEventContent imported from RecoHGCal.Configuration.RecoHGCal_EventContent_cff
52  process = customiseHGCalOnlyEventContent(process)
53 
54  return process