Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:53

0001 import FWCore.ParameterSet.Config as cms
0002 from CondCore.CondDB.CondDB_cfi import *
0003 import CondTools.Ecal.conddb_init as conddb_init
0004 
0005 process = cms.Process("EcalPedestalsPopulator")
0006 
0007 process.MessageLogger = cms.Service("MessageLogger",
0008                                     destinations = cms.untracked.vstring("cout"),
0009                                     cout = cms.untracked.PSet(threshold = cms.untracked.string("INFO"))
0010                                     )
0011 
0012 process.source = cms.Source("EmptyIOVSource",
0013                             lastValue = cms.uint64(conddb_init.options.runNumber),
0014                             timetype = cms.string('runnumber'),
0015                             firstValue = cms.uint64(conddb_init.options.runNumber),
0016                             interval = cms.uint64(1)
0017 )
0018 
0019 CondDBConnection = CondDB.clone(connect = cms.string(conddb_init.options.destinationDatabase))
0020 
0021 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0022                                           CondDBConnection,
0023                                           toPut = cms.VPSet(cms.PSet(record = cms.string("EcalPedestalsRcd"),
0024                                                                      tag = cms.string(conddb_init.options.destinationTag)
0025                                                                      )
0026                                                             )
0027                                           )
0028 
0029 process.popConEcalPedestals = cms.EDAnalyzer("EcalPedestalsPopConBTransitionAnalyzer",
0030                                                     SinceAppendMode = cms.bool(True),
0031                                                     record = cms.string("EcalPedestalsRcd"),
0032                                                     Source = cms.PSet(BTransition = cms.PSet(CondDBConnection, #We write and read from the same DB
0033                                                                                              runNumber = cms.uint64(conddb_init.options.runNumber),
0034                                                                                              tagForRunInfo = cms.string(conddb_init.options.tagForRunInfo),
0035                                                                                              tagForBOff = cms.string(conddb_init.options.tagForBOff),
0036                                                                                              tagForBOn = cms.string(conddb_init.options.tagForBOn),
0037                                                                                              currentThreshold = cms.untracked.double(conddb_init.options.currentThreshold)
0038                                                                                              )
0039                                                                       ),
0040                                                     loggingOn = cms.untracked.bool(True),
0041                                                     targetDBConnectionString = cms.untracked.string("")
0042                                                     )
0043 
0044 process.p = cms.Path(process.popConEcalPedestals)