CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/CondTools/Ecal/python/copyFileAlignEB_cfg.py

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