Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:44

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