Skip to content

Commit

Permalink
first commit to add an EndPath in DQM sequence
Browse files Browse the repository at this point in the history
(cherry picked from commit 1bcef64)
  • Loading branch information
deguio authored and cmsbuild committed Jan 21, 2016
1 parent f40c5e8 commit 0541887
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
17 changes: 16 additions & 1 deletion Configuration/Applications/python/ConfigBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1922,14 +1922,16 @@ def prepare_DQM(self, sequence = 'DQMOffline'):

self.loadDefaultOrSpecifiedCFF(sequence,self.DQMOFFLINEDefaultCFF)
sequenceList=sequence.split('.')[-1].split('+')
postSequenceList=sequence.split('.')[-1].split('+')
from DQMOffline.Configuration.autoDQM import autoDQM
self.expandMapping(sequenceList,autoDQM,index=0)
self.expandMapping(postSequenceList,autoDQM,index=1)

if len(set(sequenceList))!=len(sequenceList):
sequenceList=list(set(sequenceList))
print "Duplicate entries for DQM:, using",sequenceList

pathName='dqmoffline_step'

for (i,sequence) in enumerate(sequenceList):
if (i!=0):
pathName='dqmoffline_%d_step'%(i)
Expand All @@ -1946,6 +1948,19 @@ def prepare_DQM(self, sequence = 'DQMOffline'):
setattr(self.process,pathName, cms.Path( getattr(self.process, sequence) ) )
self.schedule.append(getattr(self.process,pathName))

pathName='dqmoffline_endstep'
for (i,sequence) in enumerate(postSequenceList):
if (i!=0):
pathName='dqmoffline_%d_endstep'%(i)

# if both MINIAOD and DQM are run in the same process, schedule DQM in an EndPath
if 'PAT' in self.stepMap.keys():
# need to put DQM in an EndPath, to access the miniAOD filter results
setattr(self.process,pathName, cms.EndPath( getattr(self.process, sequence ) ) )
else:
# schedule DQM as a standard Path
setattr(self.process,pathName, cms.Path( getattr(self.process, sequence) ) )
self.schedule.append(getattr(self.process,pathName))

def prepare_HARVESTING(self, sequence = None):
""" Enrich the process with harvesting step """
Expand Down
5 changes: 4 additions & 1 deletion DQMOffline/Configuration/python/DQMOffline_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,7 @@

DQMOfflineBTag = cms.Sequence( bTagPlotsDATA )

DQMOfflineMiniAOD = cms.Sequence( miniAODDQMSequence*jetMETDQMOfflineSourceMiniAOD*tracksDQMMiniAOD )
DQMOfflineMiniAOD = cms.Sequence()

DQMOfflineMiniAODEndPath = cms.Sequence(miniAODDQMSequence*jetMETDQMOfflineSourceMiniAOD*tracksDQMMiniAOD)
DQMOfflineEndPath = cms.Sequence()
7 changes: 4 additions & 3 deletions DQMOffline/Configuration/python/autoDQM.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
'@commonSiStripZeroBias+@muon+@hcal+@jetmet+@ecal'],
'allForPrompt': ['@common+@muon+@hcal+@jetmet+@ecal',
'@common+@muon+@hcal+@jetmet+@ecal'],
'miniAODDQM': ['DQMOfflineMiniAOD',
'DQMHarvestMiniAOD'],
'standardDQM': ['DQMOffline',

'miniAODDQM': ['DQMOfflineMiniAOD','DQMOfflineMiniAODEndPath',
'DQMHarvestMiniAOD'],
'standardDQM': ['DQMOffline','DQMOfflineEndPath',
'dqmHarvesting'],
'standardDQMFakeHLT': ['DQMOfflineFakeHLT',
'dqmHarvestingFakeHLT']
Expand Down

0 comments on commit 0541887

Please sign in to comment.