CMS 3D CMS Logo

dtT0WireCalibration_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("PROD")
4 
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))
15 )
16 
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 = ""
21 
22 process.load("CondCore.CondDB.CondDB_cfi")
23 
24 process.load("DQMServices.Core.DQM_cfg")
25 
26 process.source = cms.Source("PoolSource",
27  fileNames = cms.untracked.vstring(
28 # '/store/data/Run2012C/MiniDaq/RAW/v1/000/203/540/AA9053D9-F306-E211-80A4-001D09F248F8.root',
29  '/store/data/Run2012C/MiniDaq/RAW/v1/000/199/204/148CF2AC-CAD0-E111-A056-001D09F291D2.root',
30 ### '/store/data/Run2012C/MiniDaq/RAW/v1/000/200/132/D0E088D3-D7DC-E111-92D2-00237DDC5C24.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'
40  )
41 )
42 
43 process.maxEvents = cms.untracked.PSet(
44  input = cms.untracked.int32(-1)
45 )
46 
47 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
48 
49 # process.load("CalibMuon.DTCalibration.dt_offlineAnalysis_common_cff")
50 
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)
66  ),
67  localDAQ = cms.untracked.bool(False),
68  performDataIntegrityMonitor = cms.untracked.bool(False)
69  )
70 )
71 
72 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
73  process.CondDB,
74  timetype = cms.untracked.string('runnumber'),
75  toPut = cms.VPSet(cms.PSet(
76  record = cms.string('DTT0Rcd'),
77  tag = cms.string('t0')
78  ))
79 )
80 process.PoolDBOutputService.connect = cms.string('sqlite_file:t0.db')
81 
82 process.eventInfoProvider = cms.EDFilter("EventCoordinatesSource",
83  eventInfoFolder = cms.untracked.string('EventInfo/')
84 )
85 
86 
87 # test pulse monitoring
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()
97 for line in file:
98  corrWire = line.split()[:6]
99  #switch station/sector
100  corrWire[1:3] = corrWire[2:0:-1]
101  wire = ' '.join(corrWire)
102  #print wire
103  wiresToDebug.append(wire)
104 file.close()
105 
106 process.dtT0WireCalibration = cms.EDAnalyzer("DTT0Calibration",
107  correctByChamberMean = cms.bool(False),
108  # Cells for which you want the histos (default = None)
109  cellsWithHisto = wiresToDebug,
110  # Label to retrieve DT digis from the event
111  digiLabel = cms.untracked.string('dtunpacker'),
112  calibSector = cms.untracked.string('All'),
113  # Chose the wheel, sector (default = All)
114  calibWheel = cms.untracked.string('All'),
115  # Number of events to be used for the t0 per layer histos
116  eventsForWireT0 = cms.uint32(25000), #25000
117  # Name of the ROOT file which will contain the test pulse times per layer
118  rootFileName = cms.untracked.string('DTTestPulses.root'),
119  debug = cms.untracked.bool(False),
120  rejectDigiFromPeak = cms.uint32(50),
121  # Acceptance for TP peak width
122  tpPeakWidth = cms.double(15.0),
123  # Number of events to be used for the t0 per layer histos
124  eventsForLayerT0 = cms.uint32(5000) #5000
125 )
126 
127 process.output = cms.OutputModule("PoolOutputModule",
128  outputCommands = cms.untracked.vstring('drop *',
129  'keep *_MEtoEDMConverter_*_*'),
130  fileName = cms.untracked.string('DQM.root')
131 )
132 
133 process.load("DQMServices.Components.MEtoEDMConverter_cff")
134 #process.DQM.collectorHost = ''
135 
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)
Definition: RemoteFile.cc:18