Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:48:02

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process('HARVESTING')
0004 
0005 # import of standard configurations
0006 process.load('Configuration.StandardSequences.Services_cff')
0007 process.load('FWCore.MessageService.MessageLogger_cfi')
0008 process.load('Configuration.EventContent.EventContent_cff')
0009 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0010 process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
0011 process.load('Configuration.StandardSequences.EDMtoMEAtRunEnd_cff')
0012 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0013 
0014 # load DQM
0015 process.load("DQMServices.Core.DQM_cfg")
0016 process.load("DQMServices.Components.DQMEnvironment_cfi")
0017 
0018 # my client and my Tests
0019 process.load('DQMServices.Examples.test.DQMExample_Step2_cfi')
0020 process.load('DQMServices.Examples.test.DQMExample_GenericClient_cfi')
0021 process.load('DQMServices.Examples.test.DQMExample_qTester_cfi')
0022 
0023 
0024 process.maxEvents = cms.untracked.PSet(
0025     input = cms.untracked.int32(1)
0026 )
0027 
0028 # Input source
0029 process.source = cms.Source("DQMRootSource",
0030                             fileNames = cms.untracked.vstring("file:OUT_step1.root"))
0031 
0032 
0033 # Other statements
0034 from Configuration.AlCa.GlobalTag import GlobalTag
0035 #process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data', '')  
0036 process.GlobalTag = GlobalTag(process.GlobalTag, '92X_dataRun2_Express_v2_withECALPedHLT', '') 
0037 
0038 # Load CondDB service
0039 process.load("CondCore.CondDB.CondDB_cfi")
0040 
0041 # output database (in this case local sqlite file)
0042 process.CondDB.connect = 'sqlite_file:MyPedestals.db'
0043 
0044 # A data source must always be defined. We don't need it, so here's a dummy one.
0045 #process.source = cms.Source("EmptyIOVSource",
0046 #    timetype = cms.string('runnumber'),
0047 #    firstValue = cms.uint64(1),
0048 #    lastValue = cms.uint64(1),
0049 #    interval = cms.uint64(1)
0050 #)
0051 
0052 # We define the output service.
0053 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0054     process.CondDB,
0055     timetype = cms.untracked.string('runnumber'),
0056     toPut = cms.VPSet(cms.PSet(
0057         record = cms.string('EcalPedestalsRcd'),
0058         tag = cms.string('myPedestal_test')
0059     ))
0060 )
0061 
0062 
0063 
0064 # Path and EndPath definitions
0065 process.load('Calibration.EcalCalibAlgos.ecalPedestalPCLHarvester_cfi')
0066 
0067 process.myHarvesting = cms.Path(process.ECALpedestalPCLHarvester)
0068 process.dqmsave_step = cms.Path(process.DQMSaver)
0069 
0070 # Schedule definition
0071 process.schedule = cms.Schedule(
0072                                 process.myHarvesting,
0073                                 process.dqmsave_step
0074     )
0075 
0076 process.DQMStore.verbose =  cms.untracked.int32(1)
0077 process.DQMStore.verboseQT =  cms.untracked.int32(1)
0078 
0079 
0080 process.dqmSaver.workflow = '/ECALPedestals/A/B'