-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move Sequence to Task for RecoLocalCalo config files #27474
Changes from 3 commits
0ce884a
45e7790
eedb232
8f76492
7393aee
6c4f5df
3bdd662
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,8 @@ | |
# | ||
# sequence CaloLocalReco and CaloGlobalReco | ||
# | ||
calolocalreco = cms.Sequence(ecalLocalRecoSequence+hcalLocalRecoSequence) | ||
calolocalrecoTask = cms.Task(ecalLocalRecoTask,hcalLocalRecoTask) | ||
calolocalreco = cms.Sequence(calolocalrecoTask) | ||
caloglobalreco = cms.Sequence(hcalGlobalRecoSequence) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not also migrating this sequence? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Indeed, this sequence is never used, it only includes |
||
|
||
from RecoLocalCalo.HcalRecProducers.HcalHitSelection_cfi import * | ||
|
@@ -30,11 +31,12 @@ | |
# R.Ofierzynski (29.Oct.2009): add NZS sequence | ||
# | ||
from RecoLocalCalo.Configuration.hcalLocalRecoNZS_cff import * | ||
calolocalrecoNZS = cms.Sequence(ecalLocalRecoSequence+hcalLocalRecoSequence+hcalLocalRecoSequenceNZS) | ||
calolocalrecoTaskNZS = cms.Task(ecalLocalRecoTask,hcalLocalRecoTask,hcalLocalRecoTaskNZS) | ||
calolocalrecoNZS = cms.Sequence(calolocalrecoTaskNZS) | ||
|
||
from RecoLocalCalo.Configuration.hgcalLocalReco_cff import * | ||
_phase2_calolocalreco = calolocalreco.copy() | ||
_phase2_calolocalreco += hgcalLocalRecoSequence | ||
_phase2_calolocalrecoTask = calolocalrecoTask.copy() | ||
_phase2_calolocalrecoTask.add(hgcalLocalRecoTask) | ||
|
||
from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal | ||
phase2_hgcal.toReplaceWith( calolocalreco , _phase2_calolocalreco ) | ||
phase2_hgcal.toReplaceWith( calolocalrecoTask , _phase2_calolocalrecoTask ) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,10 +10,11 @@ | |
from RecoLocalCalo.HGCalRecProducers.hgcalMultiClusters_cfi import * | ||
from RecoLocalCalo.HGCalRecProducers.hgcalLayerClusters_cff import hgcalLayerClusters | ||
|
||
hgcalLocalRecoSequence = cms.Sequence( HGCalUncalibRecHit+ | ||
HGCalRecHit+ | ||
hgcalLayerClusters+ | ||
hgcalMultiClusters+ | ||
particleFlowRecHitHGCSeq+ | ||
particleFlowClusterHGCal+ | ||
hgcalLocalRecoTask = cms.Task( HGCalUncalibRecHit, | ||
HGCalRecHit, | ||
hgcalLayerClusters, | ||
hgcalMultiClusters, | ||
particleFlowRecHitHGCTask, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder whether one couldn't simply add here @lgray @felicepantaleo @rovere : was there a reason for having originally a sequence defined with one single module in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I cannot comment for the past history, but I see not special reason. |
||
particleFlowClusterHGCal, | ||
particleFlowClusterHGCalFromMultiCl ) | ||
hgcalLocalRecoSequence = cms.Sequence(hgcalLocalRecoTask) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from RecoParticleFlow.PFClusterProducer.particleFlowRecHitHGC_cfi import * | ||
|
||
particleFlowRecHitHGCSeq = cms.Sequence( particleFlowRecHitHGC ) | ||
particleFlowRecHitHGCTask = cms.Task( particleFlowRecHitHGC ) | ||
particleFlowRecHitHGCSeq = cms.Sequence( particleFlowRecHitHGCTask ) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is the sequence still needed? From a very quick look into CMSSW it is only referenced in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you. I will remove |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not also migrating this sequence?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your every comments.
I kept this sequence that have one module(hbhereco).
In this PR, I modified the sequences that has more than one modules.
In cmssw/RecoLocalCalo/Configuration/python/hcalGlobalReco_cff.py
from RecoLocalCalo.HcalRecProducers.HBHEIsolatedNoiseReflagger_cfi import *
hcalGlobalRecoSequence = cms.Sequence(hbhereco)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, this sequence is never used, it only includes
hcalGlobalRecoSequence
fromRecoLocalCalo/Configuration/python/hcalGlobalReco_cff.py
(which in its turn is only used for theglobalreco_tracking
reconstruction sequence) and it can be misleading here: I would suggest to just remove it