Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-07-21 01:09:13

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD")
0004 
0005 process.load("FWCore.MessageService.MessageLogger_cfi")
0006 process.MessageLogger.debugModules = cms.untracked.vstring('*')
0007 process.MessageLogger.resolution=dict()
0008 process.MessageLogger.cerr =  cms.untracked.PSet(
0009     FwkReport = cms.untracked.PSet(
0010         limit = cms.untracked.int32(100),
0011         reportEvery = cms.untracked.int32(1000)
0012     ),
0013     threshold = cms.untracked.string('DEBUG'),
0014     noLineBreaks = cms.untracked.bool(False),
0015     DEBUG = cms.untracked.PSet(limit = cms.untracked.int32(0)),
0016     INFO = cms.untracked.PSet(limit = cms.untracked.int32(0)),
0017     resolution = cms.untracked.PSet(limit = cms.untracked.int32(-1))
0018 )
0019 
0020 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0021 from Configuration.AlCa.autoCond import autoCond
0022 process.GlobalTag.globaltag=autoCond['run3_data']
0023 process.load("Configuration.StandardSequences.GeometryDB_cff")
0024 process.load("Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff")
0025 
0026 process.load("CondCore.CondDB.CondDB_cfi")
0027 
0028 process.load("DQMServices.Core.DQM_cfg")
0029 
0030 process.source = cms.Source("PoolSource",
0031     fileNames = cms.untracked.vstring(
0032         '/store/data/Commissioning2018/MiniDaq/RAW/v1/000/312/774/00000/CCADE144-9431-E811-9641-FA163E220C5C.root'
0033 #        '/store/data/Run2012C/MiniDaq/RAW/v1/000/203/540/AA9053D9-F306-E211-80A4-001D09F248F8.root',
0034         #'/store/data/Run2012C/MiniDaq/RAW/v1/000/199/204/148CF2AC-CAD0-E111-A056-001D09F291D2.root',
0035 ###        '/store/data/Run2012C/MiniDaq/RAW/v1/000/200/132/D0E088D3-D7DC-E111-92D2-00237DDC5C24.root',
0036         #'/store/data/Run2012C/MiniDaq/RAW/v1/000/198/510/0C50021A-F4C8-E111-B861-001D09F2512C.root',
0037         #'/store/data/Run2012C/MiniDaq/RAW/v1/000/199/206/EC54DD2C-D3D0-E111-9019-5404A63886CE.root',
0038         #'/store/data/Run2012C/MiniDaq/RAW/v1/000/200/131/E024E67D-D6DC-E111-A404-0025901D6288.root',
0039         #'/store/data/Run2012C/MiniDaq/RAW/v1/000/201/074/92295641-C3E7-E111-899B-0025901D629C.root',
0040         #'/store/data/Run2012C/MiniDaq/RAW/v1/000/200/133/ACB373F1-D9DC-E111-B891-003048F024FE.root',
0041         #'/store/data/Run2012C/MiniDaq/RAW/v1/000/203/276/2CF5C87C-E303-E211-A314-001D09F28F25.root',
0042         #'/store/data/Run2012C/MiniDaq/RAW/v1/000/203/535/1EEFEF95-F506-E211-A872-001D09F2906A.root',
0043         #'/store/data/Run2012C/MiniDaq/RAW/v1/000/200/665/1C75364F-0EE3-E111-8021-BCAEC5329705.root',
0044         #'/store/data/Run2012C/MiniDaq/RAW/v1/000/200/716/8A0AC842-A3E3-E111-A669-001D09F291D7.root'
0045     )
0046 )
0047 
0048 process.maxEvents = cms.untracked.PSet(
0049     input = cms.untracked.int32(-1)
0050 )
0051 
0052 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0053 
0054 # process.load("CalibMuon.DTCalibration.dt_offlineAnalysis_common_cff")
0055 
0056 import EventFilter.DTRawToDigi.dturosunpacker_cfi
0057 process.dtunpacker = EventFilter.DTRawToDigi.dturosunpacker_cfi.dturosunpacker.clone()
0058 
0059 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0060     process.CondDB,
0061     timetype = cms.untracked.string('runnumber'),
0062     toPut = cms.VPSet(cms.PSet(
0063         record = cms.string('DTT0Rcd'),
0064         tag = cms.string('t0')
0065     ))
0066 )
0067 process.PoolDBOutputService.connect = cms.string('sqlite_file:t0.db')
0068 
0069 process.eventInfoProvider = cms.EDFilter("EventCoordinatesSource",
0070     eventInfoFolder = cms.untracked.string('EventInfo/')
0071 )
0072 
0073 
0074 # test pulse monitoring
0075 process.load("DQM.DTMonitorModule.dtDigiTask_TP_cfi")
0076 process.load("DQM.DTMonitorClient.dtOccupancyTest_TP_cfi")
0077 process.dtTPmonitor.readDB = False 
0078 process.dtTPmonitor.defaultTtrig = 600
0079 process.dtTPmonitor.defaultTmax = 100
0080 process.dtTPmonitor.inTimeHitsLowerBound = 0
0081 process.dtTPmonitor.inTimeHitsUpperBound = 0
0082 #file = open("tpDead.txt")
0083 wiresToDebug = cms.untracked.vstring()
0084 #for line in file:
0085 #    corrWire = line.split()[:6]
0086 #    #switch station/sector
0087 #    corrWire[1:3] = corrWire[2:0:-1]
0088 #    wire = ' '.join(corrWire)
0089 #    #print wire
0090 #    wiresToDebug.append(wire)
0091 #file.close()
0092 
0093 process.dtT0WireCalibration = cms.EDAnalyzer("DTT0Calibration",
0094     correctByChamberMean = cms.bool(False),
0095     # Cells for which you want the histos (default = None)
0096     cellsWithHisto = wiresToDebug,
0097     # Label to retrieve DT digis from the event
0098     digiLabel = cms.untracked.string('dtunpacker'),
0099     calibSector = cms.untracked.string('All'),
0100     # Chose the wheel, sector (default = All)
0101     calibWheel = cms.untracked.string('All'),
0102     # Number of events to be used for the t0 per layer histos
0103     eventsForWireT0 = cms.uint32(25000),  #25000
0104     # Name of the ROOT file which will contain the test pulse times per layer
0105     rootFileName = cms.untracked.string('DTTestPulses.root'),
0106     debug = cms.untracked.bool(False),
0107     rejectDigiFromPeak = cms.uint32(50),
0108     # Acceptance for TP peak width
0109     tpPeakWidth = cms.double(15.0),
0110     # Number of events to be used for the t0 per layer histos
0111     eventsForLayerT0 = cms.uint32(5000),  #5000
0112     timeBoxWidth = cms.uint32(300),
0113     tpPeakWidthPerLayer = cms.double(2.0)
0114 )
0115 
0116 process.output = cms.OutputModule("PoolOutputModule",
0117     outputCommands = cms.untracked.vstring('drop *', 
0118                                            'keep *_MEtoEDMConverter_*_*'),
0119     fileName = cms.untracked.string('DQM.root')
0120 )
0121 
0122 process.load("DQMServices.Components.MEtoEDMConverter_cff")
0123 #process.DQM.collectorHost = ''
0124 
0125 process.p = cms.Path(process.dtunpacker*
0126                      process.dtTPmonitor+process.dtTPmonitorTest+
0127                      process.dtT0WireCalibration+
0128                      process.MEtoEDMConverter)
0129 process.outpath = cms.EndPath(process.output)