-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_OutputDDToDDL_cfg.py
68 lines (59 loc) · 2.59 KB
/
run_OutputDDToDDL_cfg.py
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import FWCore.ParameterSet.Config as cms
##____________________________________________________________________________||
import FWCore.ParameterSet.VarParsing as VarParsing
options = VarParsing.VarParsing('analysis')
options.inputFiles = 'file:dummry.root',
options.outputFile = 'dummy.root'
options.maxEvents = -1
options.register('geometryConfig',
'Configuration.Geometry.GeometryExtended2017_cff', # default
VarParsing.VarParsing.multiplicity.singleton, # singleton or list
VarParsing.VarParsing.varType.string, # string, int, or float
'the geometry config to be loaded')
options.register('outFilename',
'GeometryExtended2017.xml', # default
VarParsing.VarParsing.multiplicity.singleton, # singleton or list
VarParsing.VarParsing.varType.string, # string, int, or float
'output XML filename')
options.parseArguments()
##____________________________________________________________________________||
process = cms.Process("GEOM")
##____________________________________________________________________________||
process.load(options.geometryConfig)
##____________________________________________________________________________||
process.BigXMLWriter = cms.EDAnalyzer(
"OutputDDToDDL",
rotNumSeed = cms.int32(0),
fileName = cms.untracked.string(options.outFilename)
)
##____________________________________________________________________________||
process.pAStd = cms.EDAnalyzer(
"PerfectGeometryAnalyzer",
dumpPosInfo = cms.untracked.bool(False),
label = cms.untracked.string(""),
isMagField = cms.untracked.bool(False),
dumpSpecs = cms.untracked.bool(False),
dumpGeoHistory = cms.untracked.bool(False),
outFileName = cms.untracked.string("STD"),
numNodesToDump = cms.untracked.uint32(0),
fromDB = cms.untracked.bool(False),
ddRootNodeName = cms.untracked.string("cms:OCMS")
)
##____________________________________________________________________________||
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(1)
)
##____________________________________________________________________________||
process.source = cms.Source(
"EmptyIOVSource",
lastValue = cms.uint64(1),
timetype = cms.string('runnumber'),
firstValue = cms.uint64(1),
interval = cms.uint64(1)
)
##____________________________________________________________________________||
process.p1 = cms.Path(
process.pAStd *
process.BigXMLWriter
)
##____________________________________________________________________________||