Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:55

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("EEAlignmentPopulator")
0006 
0007 #LogDebug output is enabled: remember the USER_CXXFLAGS="-DEDM_ML_DEBUG" compilation flag to see it.
0008 process.MessageLogger = cms.Service("MessageLogger",
0009                                     destinations = cms.untracked.vstring("cout"),
0010                                     debugModules = cms.untracked.vstring("*"),
0011                                     cout = cms.untracked.PSet(threshold = cms.untracked.string("DEBUG"))
0012                                     )
0013 
0014 process.source = cms.Source("EmptyIOVSource",
0015                             lastValue = cms.uint64(conddb_init.options.runNumber),
0016                             timetype = cms.string('runnumber'),
0017                             firstValue = cms.uint64(conddb_init.options.runNumber),
0018                             interval = cms.uint64(1)
0019 )
0020 
0021 CondDBConnection = CondDB.clone(connect = cms.string(conddb_init.options.destinationDatabase))
0022 
0023 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0024                                           CondDBConnection,
0025                                           toPut = cms.VPSet(cms.PSet(record = cms.string("EEAlignmentRcd"),
0026                                                                      tag = cms.string(conddb_init.options.destinationTag)
0027                                                                      )
0028                                                             )
0029                                           )
0030 
0031 process.popConEEAlignment = cms.EDAnalyzer("EcalAlignmentPopConBTransitionAnalyzer",
0032                                                     SinceAppendMode = cms.bool(True),
0033                                                     record = cms.string("EEAlignmentRcd"),
0034                                                     Source = cms.PSet(BTransition = cms.PSet(CondDBConnection, #We write and read from the same DB
0035                                                                                              runNumber = cms.uint64(conddb_init.options.runNumber),
0036                                                                                              tagForRunInfo = cms.string(conddb_init.options.tagForRunInfo),
0037                                                                                              tagForBOff = cms.string(conddb_init.options.tagForBOff),
0038                                                                                              tagForBOn = cms.string(conddb_init.options.tagForBOn),
0039                                                                                              currentThreshold = cms.untracked.double(conddb_init.options.currentThreshold)
0040                                                                                              )
0041                                                                       ),
0042                                                     loggingOn = cms.untracked.bool(True),
0043                                                     targetDBConnectionString = cms.untracked.string("")
0044                                                     )
0045 
0046 process.p = cms.Path(process.popConEEAlignment)