Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:29

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