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