Skip to content

Commit

Permalink
Customize function to provide a minimal configuration for profiling
Browse files Browse the repository at this point in the history
Can be included with the following snippet in the configuration:

    from RecoPixelVertexing.Configuration.customizePixelTracksForProfiling import customizePixelTracksForProfiling
    process = customizePixelTracksForProfiling(process)

Removes validation, DQM, and output modules.
As suggested in cms-patatrack#70 (comment), an `AsciiOutputModule` is used to require the `pixelTracks`.

Backport from the Patatrack fork (cms-patatrack#106).
  • Loading branch information
makortel authored and fwyzard committed Aug 14, 2018
1 parent 400b27e commit 1e1a29a
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import FWCore.ParameterSet.Config as cms

def customizePixelTracksForProfiling(process):
process.out = cms.OutputModule("AsciiOutputModule",
outputCommands = cms.untracked.vstring(
"keep *_pixelTracks_*_*",
),
verbosity = cms.untracked.uint32(0),
)

process.outPath = cms.EndPath(process.out)

process.schedule = cms.Schedule(process.raw2digi_step, process.reconstruction_step, process.outPath)

return process

0 comments on commit 1e1a29a

Please sign in to comment.