CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/CaloOnlineTools/HcalOnlineDb/python/dbwrite_o2o_template.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("TEST")
00004 
00005 process.MessageLogger=cms.Service("MessageLogger",
00006                               destinations=cms.untracked.vstring("cout"),
00007                               cout=cms.untracked.PSet(
00008                               threshold=cms.untracked.string("INFO")
00009                               )
00010 )
00011 
00012 process.load("CondCore.DBCommon.CondDBCommon_cfi")
00013 process.CondDBCommon.connect = cms.string('CONNECT_STRING')
00014 process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('POOL_AUTH_PATH')
00015 
00016 process.source = cms.Source("EmptyIOVSource",
00017     timetype = cms.string('runnumber'),
00018     firstValue = cms.uint64(1),
00019     lastValue = cms.uint64(1),
00020     interval = cms.uint64(1)
00021 )
00022 
00023 process.es_omds = cms.ESSource("HcalOmdsCalibrations",
00024     input = cms.VPSet(cms.PSet(
00025     object = cms.string('CONDITION_TYPE'),
00026     tag = cms.string('OMDS_CONDITION_TAG'),
00027     version = cms.string('fakeversion'),
00028     subversion = cms.int32(1),
00029     iov_begin = cms.int32(OMDS_IOV),
00030     accessor = cms.string('OMDS_ACCESSOR_STRING'),
00031     query = cms.string('''
00032     OMDS_QUERY
00033     ''')
00034     ))
00035 )
00036 
00037 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
00038     process.CondDBCommon,
00039     timetype = cms.untracked.string('runnumber'),
00040     logconnect= cms.untracked.string('POOL_LOGCONNECT'),
00041     toPut = cms.VPSet(cms.PSet(
00042         record = cms.string('POOL_RECORD'),
00043         tag = cms.string('POOL_OUTPUT_TAG')
00044          ))
00045 )
00046 
00047 process.mytest = cms.EDAnalyzer("HcalCONDITION_TYPEPopConAnalyzer",
00048     record = cms.string('POOL_RECORD'),
00049     loggingOn= cms.untracked.bool(True),
00050     SinceAppendMode=cms.bool(True),
00051     Source=cms.PSet(
00052 #    firstSince=cms.untracked.double(300) 
00053     IOVRun=cms.untracked.uint32(POOL_IOV)
00054     )
00055 )
00056 
00057 process.p = cms.Path(process.mytest)