Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:41

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("DTFineDelay")
0004 
0005 # Messages
0006 process.load("FWCore.MessageService.MessageLogger_cfi")
0007 
0008 # Geometry & Calibration Tag
0009 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0010 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0011 process.GlobalTag.globaltag = "GR09_P_V1::All"
0012 
0013 # Produce fake TTCrx_delay = 0
0014 process.load("L1TriggerConfig.DTTPGConfigProducers.L1DTTPGConfig_cff")
0015 
0016 # the source
0017 process.source = cms.Source("PoolSource",
0018     fileNames = cms.untracked.vstring(
0019     '/store/data/CRAFT09/Cosmics/RECO/v1/000/110/998/FEF325E7-4E8B-DE11-BBC3-001D09F2AD4D.root',
0020     '/store/data/CRAFT09/Cosmics/RECO/v1/000/110/998/FCC9B2CC-4E8B-DE11-8DB5-001D09F29533.root',
0021     '/store/data/CRAFT09/Cosmics/RECO/v1/000/110/998/FCB064D8-688B-DE11-BCC3-001617C3B77C.root',
0022     '/store/data/CRAFT09/Cosmics/RECO/v1/000/110/998/FCA03EBD-5A8B-DE11-9B50-000423D9880C.root',
0023     '/store/data/CRAFT09/Cosmics/RECO/v1/000/110/998/FC8CE7D4-4E8B-DE11-B161-000423D98950.root',
0024     '/store/data/CRAFT09/Cosmics/RECO/v1/000/110/998/FC1B590C-4E8B-DE11-8CED-001617DBD556.root',
0025     '/store/data/CRAFT09/Cosmics/RECO/v1/000/110/998/FAC26775-4F8B-DE11-8812-000423D6CA6E.root',
0026     '/store/data/CRAFT09/Cosmics/RECO/v1/000/110/998/FAA0AAF6-578B-DE11-B827-001D09F23A20.root'
0027     '/store/data/CRAFT09/Cosmics/RECO/v1/000/110/998/FA89F5EA-578B-DE11-9758-001617DC1F70.root',
0028     '/store/data/CRAFT09/Cosmics/RECO/v1/000/110/998/FA43BDA4-588B-DE11-A2FD-003048D37456.root'
0029     )
0030 )
0031 
0032 process.maxEvents = cms.untracked.PSet(
0033     input = cms.untracked.int32(-1)
0034 )
0035 process.load("DQMServices.Core.DQM_cfg")
0036 
0037 ################# BEGIN DQM Online Environment #######################
0038 process.DQM.collectorHost = 'localhost'
0039 process.DQM.collectorPort = 9190
0040 process.load("DQMServices.Components.DQMEnvironment_cfi")
0041 process.dqmSaver.convention = "Online"
0042 process.dqmSaver.dirName = "."
0043 process.dqmSaver.producer = "DQM"
0044 process.dqmSaver.saveByRun         =  1
0045 process.dqmSaver.saveAtJobEnd      = True
0046 
0047 process.dqmEnv.subSystemFolder = "DT"
0048 
0049 process.load("DQM.DTMonitorModule.dt_dqm_sourceclient_common_cff")
0050 process.load("DQM.DTMonitorModule.dtTriggerSynchTask_cfi")
0051 process.dtTriggerSynchMonitor.rangeWithinBX = False
0052 
0053 # Load Fine Delay Correction Module
0054 process.load("DQM.DTMonitorClient.dtFineDelayCorr_cfi")
0055 process.dtFineDelayCorr.readOldFromDb = cms.bool(False)
0056 process.dtFineDelayCorr.oldDelaysInputFile = cms.string("dtOldFineDelays.txt")
0057 process.dtFineDelayCorr.writeDB = cms.bool(False)
0058 process.dtFineDelayCorr.outputFile = cms.string("dtFineDelaysNew.txt")
0059 process.dtFineDelayCorr.t0MeanHistoTag  = cms.string("TrackCrossingTimeAll")
0060 process.dtFineDelayCorr.minEntries = cms.untracked.int32(100)
0061 
0062 
0063 # Read worstPhases from DB
0064 from CondCore.DBCommon.CondDBSetup_cfi import *
0065 process.ttrigsource = cms.ESSource("PoolDBESSource",
0066     CondDBSetup,
0067     timetype = cms.string('runnumber'),
0068     toGet = cms.VPSet(cms.PSet(record = cms.string('DTTPGParametersRcd'),
0069                                tag = cms.string('worstPhase')
0070                                )
0071                       ),
0072     connect = cms.string('sqlite_file:/afs/cern.ch/user/m/marinag/w0/finesync/cmssw/CMSSW_3_2_7/src/DQM/DTMonitorClient/test/worst_phase_map_112227.db'),
0073     authenticationMethod = cms.untracked.uint32(0)
0074     )
0075 
0076 # message logger
0077 process.MessageLogger = cms.Service("MessageLogger",
0078                                     debugModules = cms.untracked.vstring('*'),
0079                                     destinations = cms.untracked.vstring('cout'),
0080                                     categories = cms.untracked.vstring('DTFineDelayCorr'), 
0081                                     cout = cms.untracked.PSet(threshold = cms.untracked.string('WARNING'),
0082                                                               noLineBreaks = cms.untracked.bool(False),
0083                                                               DEBUG = cms.untracked.PSet(
0084                                                                       limit = cms.untracked.int32(-1)),
0085                                                               INFO = cms.untracked.PSet(
0086                                                                       limit = cms.untracked.int32(-1)),
0087                                                               DTFineDelayCorr = cms.untracked.PSet(
0088                                                                                   limit = cms.untracked.int32(-1))
0089                                                               )
0090                                     )
0091 
0092 process.dqmmodules = cms.Sequence(process.dqmEnv + process.dqmSaver)
0093 process.dtDQMPathPhys = cms.Path(process.dtTriggerSynchMonitor + process.dtFineDelayCorr + process.dqmmodules )