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
|
import FWCore.ParameterSet.Config as cms
process = cms.Process('test')
# minimum of logs
process.MessageLogger = cms.Service("MessageLogger",
cerr = cms.untracked.PSet(
threshold = cms.untracked.string('WARNING')
)
)
# raw data source
process.source = cms.Source("EmptySource",
)
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(1)
)
# load a mapping
process.load("CalibPPS.ESProducers.totemDAQMappingESSourceXML_cfi")
process.totemDAQMappingESSourceXML.subSystem = "TrackingStrip"
process.totemDAQMappingESSourceXML.configuration = cms.VPSet(
cms.PSet(
validityRange = cms.EventRange("1:min - 999999999:max"),
mappingFileNames = cms.vstring("CondFormats/PPSObjects/xml/mapping_tracking_strip_2017.xml"),
maskFileNames = cms.vstring()
)
)
# print the mapping
process.printTotemDAQMapping = cms.EDAnalyzer("PrintTotemDAQMapping",
subSystem = cms.untracked.string("TrackingStrip")
)
process.path = cms.Path(
process.printTotemDAQMapping
)
|