From d8dda074006eead43ac5a480722331acd41ec6ca Mon Sep 17 00:00:00 2001 From: mmusich Date: Thu, 17 Aug 2023 19:36:10 +0200 Subject: [PATCH] add SiPixelTemplateStoreESProducer so several unit tests related configuration files --- .../test/testAlignmentStats_cfg.py | 3 ++- .../test/testProduceCalibrationTree_cfg.py | 13 +++++++------ CalibTracker/SiStripCommon/test/test_all_cfg.py | 4 +++- .../SiStripHitEfficiency/test/testHitEffWorker.py | 5 +++-- .../SiStripHitResolution/test/CPEanconfig.py | 3 ++- .../test/SiStripHitResol_test.py | 4 +++- .../ALCARECOPromptCalibProdSiStripGains_cff.py | 4 +++- .../clients/sistrip_dqm_sourceclient-live_cfg.py | 14 ++++++++++---- .../Geant4e/test/Geant4e_example_cfg.py | 3 ++- 9 files changed, 35 insertions(+), 18 deletions(-) diff --git a/Alignment/CommonAlignmentMonitor/test/testAlignmentStats_cfg.py b/Alignment/CommonAlignmentMonitor/test/testAlignmentStats_cfg.py index 722b137f23ab2..9162bebcec6af 100644 --- a/Alignment/CommonAlignmentMonitor/test/testAlignmentStats_cfg.py +++ b/Alignment/CommonAlignmentMonitor/test/testAlignmentStats_cfg.py @@ -189,4 +189,5 @@ process.OverlapAssoMapCTF * process.NewStatsCTF) -process.p2 = cms.Path(process.seqALCARECOTkAlMinBiasSkimmed) +process.load("RecoLocalTracker.SiPixelRecHits.SiPixelTemplateStoreESProducer_cfi") +process.p2 = cms.Path(process.seqALCARECOTkAlMinBiasSkimmed, cms.Task(process.SiPixelTemplateStoreESProducer)) diff --git a/CalibTracker/SiStripCommon/test/testProduceCalibrationTree_cfg.py b/CalibTracker/SiStripCommon/test/testProduceCalibrationTree_cfg.py index 8391465d5a7e7..6c00f06262723 100644 --- a/CalibTracker/SiStripCommon/test/testProduceCalibrationTree_cfg.py +++ b/CalibTracker/SiStripCommon/test/testProduceCalibrationTree_cfg.py @@ -143,12 +143,13 @@ def alterTriggersForUnitTest(process): if(options.unitTest): alterTriggersForUnitTest(process) -process.TkCalPath_StdBunch = cms.Path(process.TkCalSeq_StdBunch*process.shallowEventRun*process.EventInfo) -process.TkCalPath_StdBunch0T = cms.Path(process.TkCalSeq_StdBunch0T*process.shallowEventRun*process.EventInfo) -process.TkCalPath_IsoMuon = cms.Path(process.TkCalSeq_IsoMuon*process.shallowEventRun*process.EventInfo) -process.TkCalPath_IsoMuon0T = cms.Path(process.TkCalSeq_IsoMuon0T*process.shallowEventRun*process.EventInfo) -process.TkCalPath_AagBunch = cms.Path(process.TkCalSeq_AagBunch*process.shallowEventRun*process.EventInfo) -process.TkCalPath_AagBunch0T = cms.Path(process.TkCalSeq_AagBunch0T*process.shallowEventRun*process.EventInfo) +process.load("RecoLocalTracker.SiPixelRecHits.SiPixelTemplateStoreESProducer_cfi") +process.TkCalPath_StdBunch = cms.Path(process.TkCalSeq_StdBunch*process.shallowEventRun*process.EventInfo, cms.Task(process.SiPixelTemplateStoreESProducer)) +process.TkCalPath_StdBunch0T = cms.Path(process.TkCalSeq_StdBunch0T*process.shallowEventRun*process.EventInfo, cms.Task(process.SiPixelTemplateStoreESProducer)) +process.TkCalPath_IsoMuon = cms.Path(process.TkCalSeq_IsoMuon*process.shallowEventRun*process.EventInfo, cms.Task(process.SiPixelTemplateStoreESProducer)) +process.TkCalPath_IsoMuon0T = cms.Path(process.TkCalSeq_IsoMuon0T*process.shallowEventRun*process.EventInfo, cms.Task(process.SiPixelTemplateStoreESProducer)) +process.TkCalPath_AagBunch = cms.Path(process.TkCalSeq_AagBunch*process.shallowEventRun*process.EventInfo, cms.Task(process.SiPixelTemplateStoreESProducer)) +process.TkCalPath_AagBunch0T = cms.Path(process.TkCalSeq_AagBunch0T*process.shallowEventRun*process.EventInfo, cms.Task(process.SiPixelTemplateStoreESProducer)) process.schedule = cms.Schedule( process.TkCalPath_StdBunch, process.TkCalPath_StdBunch0T, diff --git a/CalibTracker/SiStripCommon/test/test_all_cfg.py b/CalibTracker/SiStripCommon/test/test_all_cfg.py index 1a68712a1b429..f6c2aad9dbdc8 100755 --- a/CalibTracker/SiStripCommon/test/test_all_cfg.py +++ b/CalibTracker/SiStripCommon/test/test_all_cfg.py @@ -39,6 +39,7 @@ ) ) +process.load("RecoLocalTracker.SiPixelRecHits.SiPixelTemplateStoreESProducer_cfi") process.p = cms.Path( process.MeasurementTrackerEvent* process.tracksRefit* @@ -56,5 +57,6 @@ process.shallowClusters* process.shallowRechitClusters* #tree dumping - process.testTree + process.testTree, + cms.Task(process.SiPixelTemplateStoreESProducer) ) diff --git a/CalibTracker/SiStripHitEfficiency/test/testHitEffWorker.py b/CalibTracker/SiStripHitEfficiency/test/testHitEffWorker.py index 745431d77939c..eeba7da208b36 100644 --- a/CalibTracker/SiStripHitEfficiency/test/testHitEffWorker.py +++ b/CalibTracker/SiStripHitEfficiency/test/testHitEffWorker.py @@ -90,9 +90,10 @@ ## END OLD HITEFF ## TODO double-check in main CalibTree config if hiteff also takes refitted tracks +process.load("RecoLocalTracker.SiPixelRecHits.SiPixelTemplateStoreESProducer_cfi") process.allPath = cms.Path(process.MeasurementTrackerEvent*process.offlineBeamSpot*process.refitTracks - *process.anEff*process.shallowEventRun*process.eventInfo - *process.hiteff) + *process.anEff*process.shallowEventRun*process.eventInfo + *process.hiteff,cms.Task(process.SiPixelTemplateStoreESProducer)) # save the DQM plots in the DQMIO format process.dqmOutput = cms.OutputModule("DQMRootOutputModule", diff --git a/CalibTracker/SiStripHitResolution/test/CPEanconfig.py b/CalibTracker/SiStripHitResolution/test/CPEanconfig.py index 03a43d3a518d6..aacfe812be78f 100644 --- a/CalibTracker/SiStripHitResolution/test/CPEanconfig.py +++ b/CalibTracker/SiStripHitResolution/test/CPEanconfig.py @@ -89,4 +89,5 @@ fileName = cms.string('histodemo.root')) ### Finally, put together the sequence -process.p = cms.Path(process.offlineBeamSpot*process.mytkselector+process.myRefittedTracks+process.SiStripCPEAnalyzer) +process.load("RecoLocalTracker.SiPixelRecHits.SiPixelTemplateStoreESProducer_cfi") +process.p = cms.Path(process.offlineBeamSpot*process.mytkselector+process.myRefittedTracks+process.SiStripCPEAnalyzer,cms.Task(process.SiPixelTemplateStoreESProducer)) diff --git a/CalibTracker/SiStripHitResolution/test/SiStripHitResol_test.py b/CalibTracker/SiStripHitResolution/test/SiStripHitResol_test.py index 965695ab80fa2..caff0b6e23ac3 100644 --- a/CalibTracker/SiStripHitResolution/test/SiStripHitResol_test.py +++ b/CalibTracker/SiStripHitResolution/test/SiStripHitResol_test.py @@ -52,4 +52,6 @@ fileName = cms.string(OutputRootFile) ) -process.allPath = cms.Path(process.MeasurementTrackerEvent*process.offlineBeamSpot*process.refitTracks*process.hitresol) +process.load("RecoLocalTracker.SiPixelRecHits.SiPixelTemplateStoreESProducer_cfi") +process.allPath = cms.Path(process.MeasurementTrackerEvent*process.offlineBeamSpot*process.refitTracks*process.hitresol, + cms.Task(process.SiPixelTemplateStoreESProducer)) diff --git a/Calibration/TkAlCaRecoProducers/python/ALCARECOPromptCalibProdSiStripGains_cff.py b/Calibration/TkAlCaRecoProducers/python/ALCARECOPromptCalibProdSiStripGains_cff.py index 9ff51194bf1fc..783cde0f63ff9 100644 --- a/Calibration/TkAlCaRecoProducers/python/ALCARECOPromptCalibProdSiStripGains_cff.py +++ b/Calibration/TkAlCaRecoProducers/python/ALCARECOPromptCalibProdSiStripGains_cff.py @@ -63,9 +63,11 @@ # refit and BS can be dropped if done together with RECO. # track filter can be moved in acalreco if no otehr users +from RecoLocalTracker.SiPixelRecHits.SiPixelTemplateStoreESProducer_cfi import SiPixelTemplateStoreESProducer ALCARECOTrackFilterRefit = cms.Sequence(ALCARECOCalibrationTracks + offlineBeamSpot + - ALCARECOCalibrationTracksRefit ) + ALCARECOCalibrationTracksRefit, + cms.Task(SiPixelTemplateStoreESProducer) ) # ------------------------------------------------------------------------------ # This is the module actually doing the calibration diff --git a/DQM/Integration/python/clients/sistrip_dqm_sourceclient-live_cfg.py b/DQM/Integration/python/clients/sistrip_dqm_sourceclient-live_cfg.py index bceef684d013d..e7966d930a0d3 100644 --- a/DQM/Integration/python/clients/sistrip_dqm_sourceclient-live_cfg.py +++ b/DQM/Integration/python/clients/sistrip_dqm_sourceclient-live_cfg.py @@ -107,6 +107,8 @@ ) #------------------------------------------- +process.load("RecoLocalTracker.SiPixelRecHits.SiPixelTemplateStoreESProducer_cfi") + #----------------------- # Reconstruction Modules #----------------------- @@ -298,7 +300,8 @@ process.SiStripSources_LocalReco* process.RecoForDQM_TrkReco_cosmic* process.SiStripSources_TrkReco_cosmic* - process.TrackingClient + process.TrackingClient, + cms.Task(process.SiPixelTemplateStoreESProducer) ) @@ -416,7 +419,8 @@ process.hltHighLevel* process.RecoForDQM_TrkReco* process.SiStripSources_TrkReco* - process.TrackingClient + process.TrackingClient, + cms.Task(process.SiPixelTemplateStoreESProducer) ) #-------------------------------------------------- @@ -509,7 +513,8 @@ process.eventFilter* process.RecoForDQM_TrkReco* process.SiStripSources_TrkReco* - process.TrackingClient + process.TrackingClient, + cms.Task(process.SiPixelTemplateStoreESProducer) ) process.castorDigis.InputLabel = "rawDataCollector" @@ -665,7 +670,8 @@ process.hltHighLevel* process.RecoForDQM_TrkReco* process.SiStripSources_TrkReco* - process.TrackingClient + process.TrackingClient, + cms.Task(process.SiPixelTemplateStoreESProducer) ) # append the approximate clusters monitoring for the HI run case diff --git a/TrackPropagation/Geant4e/test/Geant4e_example_cfg.py b/TrackPropagation/Geant4e/test/Geant4e_example_cfg.py index 249f8e17f350e..9070943107619 100644 --- a/TrackPropagation/Geant4e/test/Geant4e_example_cfg.py +++ b/TrackPropagation/Geant4e/test/Geant4e_example_cfg.py @@ -35,7 +35,8 @@ process.load("TrackPropagation.Geant4e.geantRefit_cff") process.Geant4eTrackRefitter.src = cms.InputTag("generalTracks") process.Geant4eTrackRefitter.usePropagatorForPCA = cms.bool(True) -process.g4RefitPath = cms.Path( process.MeasurementTrackerEvent * process.geant4eTrackRefit ) +process.load("RecoLocalTracker.SiPixelRecHits.SiPixelTemplateStoreESProducer_cfi") +process.g4RefitPath = cms.Path( process.MeasurementTrackerEvent * process.geant4eTrackRefit, cms.Task(process.SiPixelTemplateStoreESProducer) ) process.out = cms.OutputModule( "PoolOutputModule", outputCommands = cms.untracked.vstring(