Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:25

0001 ###
0002 ## author: J. F. Benitez (benitezj@cern.ch)
0003 ###
0004 ## description: unit test for the LumiAlCaRecoProducers 
0005 
0006 import FWCore.ParameterSet.Config as cms
0007 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0008 DQMStore = cms.Service("DQMStore")
0009 process = cms.Process("TEST")
0010 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0011 process.load("DQMServices.Core.DQM_cfg")
0012 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(5))
0013 
0014 process.source = cms.Source("PoolSource",
0015                             fileNames =  cms.untracked.vstring(
0016                                 '/store/data/Commissioning2018/AlCaLumiPixels0/ALCARECO/AlCaPCCRandom-02May2018-v1/70000/6CE65B93-D657-E811-BBB5-FA163E8006EF.root',
0017                                 #'file:/eos/cms/store/data/Run2017G/AlCaLumiPixels/ALCARECO/AlCaPCCRandom-17Nov2017-v1/20000/229B17F0-2B93-E811-9506-0025905B8568.root'
0018                             )
0019 )
0020 
0021 
0022 process.raw = cms.EDProducer("RawPCCProducer",
0023                              RawPCCProducerParameters = cms.PSet(inputPccLabel = cms.string("alcaPCCProducerRandom"),
0024                                                                  ProdInst = cms.string("alcaPCCRandom"),
0025                                                                  modVeto=cms.vint32(), 
0026                                                                  outputProductName = cms.untracked.string("raw"),
0027                                                              )
0028                          )
0029 
0030 process.cor = DQMEDAnalyzer("CorrPCCProducer",
0031                             CorrPCCProducerParameters=cms.PSet(inLumiObLabel = cms.string("raw"),
0032                                                                ProdInst = cms.string("raw"),
0033                                                                approxLumiBlockSize=cms.int32(50),
0034                                                                type2_a= cms.double(0.00072),
0035                                                                type2_b= cms.double(0.014),))
0036 
0037 
0038 
0039 process.load("CondCore.CondDB.CondDB_cfi")
0040 process.CondDB.connect = "sqlite_file:PCC_Corr.db"
0041 process.PoolDBOutputService = cms.Service("PoolDBOutputService", process.CondDB,
0042                                           toPut = cms.VPSet(cms.PSet(record = cms.string('LumiCorrectionsRcd'),
0043                                                                      tag = cms.string('TestCorrections'))),
0044                                           loadBlobStreamer = cms.untracked.bool(False),
0045                                           timetype   = cms.untracked.string('lumiid'))
0046 
0047 
0048 process.p1 = cms.Path(process.raw+process.cor)