Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:34:15

0001 run = 357902
0002 input_file=['/store/express/Run2022D/StreamALCAPPSExpress/ALCAPROMPT/PromptCalibProdPPSTimingCalib-Express-v2/000/357/902/00000/123861b4-b632-4835-91b6-1e586d34509e.root']
0003 import FWCore.ParameterSet.Config as cms
0004 from Configuration.StandardSequences.Eras import eras
0005 process = cms.Process("harvester", eras.Run3)
0006 
0007 process.load("FWCore.MessageService.MessageLogger_cfi")
0008 
0009 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0010 
0011 process.load('Configuration.StandardSequences.Services_cff')
0012 process.load('Configuration.EventContent.EventContent_cff')
0013 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0014 from Configuration.AlCa.GlobalTag import GlobalTag
0015 from Configuration.AlCa.autoCond import autoCond
0016 process.GlobalTag = GlobalTag(process.GlobalTag, autoCond['run3_data_prompt'], '')
0017 
0018 # Source (histograms)
0019 process.source = cms.Source("PoolSource",
0020     fileNames = cms.untracked.vstring(
0021     input_file
0022     ),
0023 )
0024 
0025 # output service for database
0026 process.load('CondCore.CondDB.CondDB_cfi')
0027 process.CondDB.connect = 'sqlite_file:ppsDiamondTiming_calibration'+str(run)+'.sqlite' # SQLite output
0028 
0029 process.PoolDBOutputService = cms.Service('PoolDBOutputService',
0030     process.CondDB,
0031     timetype = cms.untracked.string('runnumber'),
0032     toPut = cms.VPSet(
0033         cms.PSet(
0034             record = cms.string('PPSTimingCalibrationRcd_HPTDC'),
0035             tag = cms.string('DiamondTimingCalibration'),
0036         )
0037     )
0038 )
0039 
0040 process.load("CalibPPS.TimingCalibration.ppsTimingCalibrationPCLHarvester_cfi")
0041 #process.PPSDiamondSampicTimingCalibrationPCLHarvester.jsonCalibFile="initial.cal.json"
0042 
0043 # load DQM framework
0044 process.load("DQMServices.Core.DQMStore_cfi")
0045 process.load("DQMServices.Components.DQMEnvironment_cfi")
0046 process.dqmEnv.subSystemFolder = "CalibPPS"
0047 process.dqmSaver.convention = 'Offline'
0048 process.dqmSaver.workflow = "/CalibPPS/TimingCalibration/CMSSW_12_6_0_pre2"
0049 process.dqmSaver.saveByRun = -1
0050 process.dqmSaver.saveAtJobEnd = True
0051 process.dqmSaver.forceRunNumber = run
0052 
0053 process.DQMStore = cms.Service("DQMStore")
0054 
0055 process.dqmOutput = cms.OutputModule("DQMRootOutputModule",
0056     fileName = cms.untracked.string("harvester_output.root")
0057 )
0058 
0059 process.load("Geometry.VeryForwardGeometry.geometryRPFromDB_cfi")
0060 process.load("DQMServices.Components.EDMtoMEConverter_cff")
0061 process.EDMtoMEConverter.lumiInputTag = "MEtoEDMConvertPPSTimingCalib:MEtoEDMConverterLumi"
0062 process.EDMtoMEConverter.runInputTag = "MEtoEDMConvertPPSTimingCalib:MEtoEDMConverterRun"
0063 
0064 #import FWCore.PythonUtilities.LumiList as LumiList
0065 #process.source.lumisToProcess = LumiList.LumiList(filename = 'allrunsSB-PPS-forCalib.json').getVLuminosityBlockRange() 
0066 
0067 process.p = cms.Path(
0068     process.EDMtoMEConverter*
0069     process.ppsTimingCalibrationPCLHarvester
0070 )
0071 
0072 process.end_path = cms.EndPath(
0073     process.dqmEnv +
0074     process.dqmSaver
0075 )
0076 
0077 process.schedule = cms.Schedule(
0078     process.p,
0079     process.end_path
0080 )
0081 
0082 
0083