Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:47:59

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