1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#
# $Id$
# Author Stefano Argiro
#
# Extract histos from EDM root file
#
# Usage:
# cmsRun edm2me_cfg.py files=file:file.root
#
# Todo: specify output file name from command line
#
import FWCore.ParameterSet.Config as cms
import FWCore.ParameterSet.VarParsing as VarParsing
process = cms.Process("EDMtoMEConvert")
process.load("DQMServices.Components.EDMtoMEConverter_cff")
# setup 'standard' options
options = VarParsing.VarParsing ('standard')
options.maxEvents = -1 # -1 means all events
# get and parse the command line arguments
options.parseArguments()
# Use the options
process.source = cms.Source ("PoolSource",
fileNames = cms.untracked.vstring (options.files)
)
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32 (options.maxEvents)
)
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(-1)
)
process.p = cms.Path(process.EDMtoMEConverter*process.dqmSaver)
process.EDMtoMEConverter.Verbosity = 1
process.EDMtoMEConverter.Frequency = 1
process.dqmSaver.convention = 'Offline'
process.dqmSaver.workflow = '/A/B/C'
|