1 import FWCore.ParameterSet.Config
as cms
3 process = cms.Process(
"PROD")
5 process.load(
"FWCore.MessageService.MessageLogger_cfi")
6 process.MessageLogger.debugModules = cms.untracked.vstring(
'*')
7 process.MessageLogger.destinations = cms.untracked.vstring(
'cerr')
8 process.MessageLogger.categories.append(
'resolution')
9 process.MessageLogger.cerr = cms.untracked.PSet(
10 threshold = cms.untracked.string(
'DEBUG'),
11 noLineBreaks = cms.untracked.bool(
False),
12 DEBUG = cms.untracked.PSet(limit = cms.untracked.int32(0)),
13 INFO = cms.untracked.PSet(limit = cms.untracked.int32(0)),
14 resolution = cms.untracked.PSet(limit = cms.untracked.int32(-1))
17 process.load(
"Configuration.StandardSequences.GeometryDB_cff")
18 process.load(
"Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff")
19 process.load(
"Configuration.StandardSequences.FrontierConditions_GlobalTag_condDBv2_cff")
20 process.GlobalTag.globaltag =
"" 22 process.load(
"CondCore.CondDB.CondDB_cfi")
24 process.load(
"DQMServices.Core.DQM_cfg")
26 process.source = cms.Source(
"PoolSource",
27 fileNames = cms.untracked.vstring(
29 '/store/data/Run2012C/MiniDaq/RAW/v1/000/199/204/148CF2AC-CAD0-E111-A056-001D09F291D2.root',
31 '/store/data/Run2012C/MiniDaq/RAW/v1/000/198/510/0C50021A-F4C8-E111-B861-001D09F2512C.root',
32 '/store/data/Run2012C/MiniDaq/RAW/v1/000/199/206/EC54DD2C-D3D0-E111-9019-5404A63886CE.root',
33 '/store/data/Run2012C/MiniDaq/RAW/v1/000/200/131/E024E67D-D6DC-E111-A404-0025901D6288.root',
34 '/store/data/Run2012C/MiniDaq/RAW/v1/000/201/074/92295641-C3E7-E111-899B-0025901D629C.root',
35 '/store/data/Run2012C/MiniDaq/RAW/v1/000/200/133/ACB373F1-D9DC-E111-B891-003048F024FE.root',
36 '/store/data/Run2012C/MiniDaq/RAW/v1/000/203/276/2CF5C87C-E303-E211-A314-001D09F28F25.root',
37 '/store/data/Run2012C/MiniDaq/RAW/v1/000/203/535/1EEFEF95-F506-E211-A872-001D09F2906A.root',
38 '/store/data/Run2012C/MiniDaq/RAW/v1/000/200/665/1C75364F-0EE3-E111-8021-BCAEC5329705.root',
39 '/store/data/Run2012C/MiniDaq/RAW/v1/000/200/716/8A0AC842-A3E3-E111-A669-001D09F291D7.root' 43 process.maxEvents = cms.untracked.PSet(
44 input = cms.untracked.int32(-1)
47 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(
True) )
51 process.dtunpacker = cms.EDProducer(
"DTUnpackingModule",
52 dataType = cms.string(
'DDU'),
53 inputLabel = cms.InputTag(
'rawDataCollector'),
54 fedbyType = cms.bool(
False),
55 useStandardFEDid = cms.bool(
True),
56 dqmOnly = cms.bool(
False),
57 readOutParameters = cms.PSet(
58 debug = cms.untracked.bool(
False),
59 rosParameters = cms.PSet(
60 writeSC = cms.untracked.bool(
True),
61 readingDDU = cms.untracked.bool(
True),
62 performDataIntegrityMonitor = cms.untracked.bool(
False),
63 readDDUIDfromDDU = cms.untracked.bool(
True),
64 debug = cms.untracked.bool(
False),
65 localDAQ = cms.untracked.bool(
False)
67 localDAQ = cms.untracked.bool(
False),
68 performDataIntegrityMonitor = cms.untracked.bool(
False)
72 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
74 timetype = cms.untracked.string(
'runnumber'),
75 toPut = cms.VPSet(cms.PSet(
76 record = cms.string(
'DTT0Rcd'),
77 tag = cms.string(
't0')
80 process.PoolDBOutputService.connect = cms.string(
'sqlite_file:t0.db')
82 process.eventInfoProvider = cms.EDFilter(
"EventCoordinatesSource",
83 eventInfoFolder = cms.untracked.string(
'EventInfo/')
88 process.load(
"DQM.DTMonitorModule.dtDigiTask_TP_cfi")
89 process.load(
"DQM.DTMonitorClient.dtOccupancyTest_TP_cfi")
90 process.dtTPmonitor.readDB =
False 91 process.dtTPmonitor.defaultTtrig = 600
92 process.dtTPmonitor.defaultTmax = 100
93 process.dtTPmonitor.inTimeHitsLowerBound = 0
94 process.dtTPmonitor.inTimeHitsUpperBound = 0
95 file = open(
"tpDead.txt")
96 wiresToDebug = cms.untracked.vstring()
98 corrWire = line.split()[:6]
100 corrWire[1:3] = corrWire[2:0:-1]
101 wire =
' '.
join(corrWire)
103 wiresToDebug.append(wire)
106 process.dtT0WireCalibration = cms.EDAnalyzer(
"DTT0Calibration",
107 correctByChamberMean = cms.bool(
False),
109 cellsWithHisto = wiresToDebug,
111 digiLabel = cms.untracked.string(
'dtunpacker'),
112 calibSector = cms.untracked.string(
'All'),
114 calibWheel = cms.untracked.string(
'All'),
116 eventsForWireT0 = cms.uint32(25000),
118 rootFileName = cms.untracked.string(
'DTTestPulses.root'),
119 debug = cms.untracked.bool(
False),
120 rejectDigiFromPeak = cms.uint32(50),
122 tpPeakWidth = cms.double(15.0),
124 eventsForLayerT0 = cms.uint32(5000)
127 process.output = cms.OutputModule(
"PoolOutputModule",
128 outputCommands = cms.untracked.vstring(
'drop *',
129 'keep *_MEtoEDMConverter_*_*'),
130 fileName = cms.untracked.string(
'DQM.root')
133 process.load(
"DQMServices.Components.MEtoEDMConverter_cff")
136 process.p = cms.Path(process.dtunpacker*
137 process.dtTPmonitor+process.dtTPmonitorTest+
138 process.dtT0WireCalibration+
139 process.MEtoEDMConverter)
140 process.outpath = cms.EndPath(process.output)
static std::string join(char **cmd)