Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-04-17 02:42:01

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 ############################################################
0004 #
0005 # Config file to transfer the very last laser corrections
0006 # to production DB used to validate them
0007 #
0008 ############################################################
0009 
0010 process = cms.Process("ProcessOne")
0011 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0012 process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
0013 #
0014 # Choose the output database
0015 #
0016 process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_42X_ECAL_LASP'
0017 #process.CondDBCommon.connect = 'sqlite_file:DB.db'
0018 
0019 process.MessageLogger = cms.Service("MessageLogger",
0020     cerr = cms.untracked.PSet(
0021         enable = cms.untracked.bool(False)
0022     ),
0023     cout = cms.untracked.PSet(
0024         enable = cms.untracked.bool(True)
0025     ),
0026     debugModules = cms.untracked.vstring('*')
0027 )
0028 
0029 process.source = cms.Source("EmptyIOVSource",
0030                             firstValue = cms.uint64(1),
0031                             lastValue = cms.uint64(1),
0032                             timetype = cms.string('runnumber'),
0033                             interval = cms.uint64(1)
0034                             )
0035 
0036 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0037                                       process.CondDBCommon,
0038                                       toGet = cms.VPSet(cms.PSet(
0039     record = cms.string('EcalLaserAPDPNRatiosRcd'),
0040     tag = cms.string('EcalLaserAPDPNRatios_last')
0041     ))
0042                                       )
0043 
0044 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0045                                           process.CondDBCommon,
0046                                           logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
0047                                           timetype = cms.untracked.string('timestamp'),
0048                                           toPut = cms.VPSet(cms.PSet(
0049     record = cms.string('EcalLaserAPDPNRatiosRcd'),
0050     tag = cms.string('EcalLaserAPDPNRatios_last')
0051     ))
0052                                           )
0053 #
0054 # Be sure to comment the following line while testing
0055 #
0056 process.PoolDBOutputService.logconnect = cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG')
0057 
0058 process.Test1 = cms.EDAnalyzer("ExTestEcalLaserAnalyzer",
0059     SinceAppendMode = cms.bool(True),
0060     record = cms.string('EcalLaserAPDPNRatiosRcd'),
0061     loggingOn = cms.untracked.bool(True),
0062     Source = cms.PSet(
0063     # maxtime is mandatory
0064     # it can be expressed either as an absolute time with format YYYY-MM-DD HH24:MI:SS
0065     # or as a relative time w.r.t. now, using -N, where N is expressed in units
0066     # of hours
0067 #    maxtime = cms.string("-40"),
0068        maxtime = cms.string("2012-12-12 23:59:59"),
0069         sequences = cms.string("16"),  
0070         OnlineDBUser = cms.string('CMS_ECAL_LASER_COND'),
0071     # debug must be False for production
0072         debug = cms.bool(False),
0073     # if fake is True, no insertion in the db is performed
0074         fake = cms.bool(False),
0075         OnlineDBPassword = cms.string('XXXXXXXXXX'),
0076         OnlineDBSID = cms.string('CMS_OMDS_LB')
0077     )
0078 )
0079 
0080 process.p = cms.Path(process.Test1)
0081 
0082