CMS 3D CMS Logo

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