CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/CondTools/Ecal/python/copyFileAlignES_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("TEST")
00004 
00005 process.load("EcalTrivialAlignment_cfi")
00006 
00007 process.load("CondCore.DBCommon.CondDBCommon_cfi")
00008 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
00009 #process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
00010 process.CondDBCommon.connect = 'sqlite_file:ESAlign_2010.db'
00011 
00012 process.MessageLogger = cms.Service("MessageLogger",
00013     debugModules = cms.untracked.vstring('*'),
00014     destinations = cms.untracked.vstring('cout')
00015 )
00016 
00017 process.source = cms.Source("EmptyIOVSource",
00018     firstValue = cms.uint64(1),
00019     lastValue = cms.uint64(1),
00020     timetype = cms.string('runnumber'),
00021     interval = cms.uint64(1)
00022 )
00023 
00024 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
00025     process.CondDBCommon,
00026     timetype = cms.untracked.string('runnumber'),
00027     toPut = cms.VPSet(
00028        cms.PSet(
00029           record = cms.string('ESAlignmentRcd'),
00030           tag = cms.string('ESAlignment_measured_v01_offline')
00031        )
00032     )
00033 )
00034 
00035 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
00036     timetype = cms.string('runnumber'),
00037     toCopy = cms.VPSet( 
00038        cms.PSet(
00039           record = cms.string('ESAlignmentRcd'),
00040           container = cms.string('ESAlignment')
00041        )
00042     )
00043 )
00044 
00045 
00046 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
00047 
00048 process.p = cms.Path(process.prod*process.dbCopy)
00049