CMS 3D CMS Logo

copyTrivialAlignEB_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("TEST")
4 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
5 
6 process.load("CondCore.CondDB.CondDB_cfi")
7 #process.load("CondCore.DBCommon.CondDBCommon_cfi")
8 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
9 #process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
10 process.CondDB.connect = 'sqlite_file:EBAlign.db'
11 
12 process.MessageLogger = cms.Service("MessageLogger",
13  debugModules = cms.untracked.vstring('*'),
14  destinations = cms.untracked.vstring('cout')
15 )
16 
17 process.source = cms.Source("EmptyIOVSource",
18  firstValue = cms.uint64(1),
19  lastValue = cms.uint64(1),
20  timetype = cms.string('runnumber'),
21  interval = cms.uint64(1)
22 )
23 
24 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
25  process.CondDB,
26  timetype = cms.untracked.string('runnumber'),
27  toPut = cms.VPSet(
28  cms.PSet(
29  record = cms.string('EBAlignmentRcd'),
30  tag = cms.string('EBAlignment_zero_offline')
31  )
32  )
33 )
34 
35 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
36  timetype = cms.string('runnumber'),
37  toCopy = cms.VPSet(
38  cms.PSet(
39  record = cms.string('EBAlignmentRcd'),
40  container = cms.string('EBAlignment')
41  )
42  )
43 )
44 
45 
46 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
47 
48 process.p = cms.Path(process.prod*process.dbCopy)
49