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 
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                                       timetype = cms.untracked.string('timestamp'),
0039                                       toGet = cms.VPSet(cms.PSet(
0040     record = cms.string('EcalLaserAPDPNRatiosRcd'),
0041     tag = cms.string('EcalLaserAPDPNRatios_last')
0042     ))
0043                                       )
0044 
0045 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0046                                           process.CondDBCommon,
0047                                           logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
0048                                           timetype = cms.untracked.string('timestamp'),
0049                                           toPut = cms.VPSet(cms.PSet(
0050     record = cms.string('EcalLaserAPDPNRatiosRcd'),
0051     tag = cms.string('EcalLaserAPDPNRatios_last')
0052     ))
0053                                           )
0054 #
0055 # Be sure to comment the following line while testing
0056 #
0057 process.PoolDBOutputService.logconnect = cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG')
0058 
0059 process.Test1 = cms.EDAnalyzer("ExTestEcalLaserAnalyzer",
0060     SinceAppendMode = cms.bool(True),
0061     record = cms.string('EcalLaserAPDPNRatiosRcd'),
0062     loggingOn = cms.untracked.bool(True),
0063     Source = cms.PSet(
0064     # maxtime is mandatory
0065     # it can be expressed either as an absolute time with format YYYY-MM-DD HH24:MI:SS
0066     # or as a relative time w.r.t. now, using -N, where N is expressed in units
0067     # of hours
0068 #    maxtime = cms.string("-40"),
0069        maxtime = cms.string("2012-12-12 23:59:59"),
0070         sequences = cms.string("16"),  
0071         OnlineDBUser = cms.string('CMS_ECAL_LASER_COND'),
0072     # debug must be False for production
0073         debug = cms.bool(False),
0074     # if fake is True, no insertion in the db is performed
0075         fake = cms.bool(False),
0076         OnlineDBPassword = cms.string('XXXXXXXXXX'),
0077         OnlineDBSID = cms.string('CMS_OMDS_LB')
0078     )
0079 )
0080 
0081 process.p = cms.Path(process.Test1)
0082 
0083