CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
copyFileAlignES_cfg.py
Go to the documentation of this file.
2 
3 process = cms.Process("TEST")
4 
5 process.load("EcalTrivialAlignment_cfi")
6 
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.CondDBCommon.connect = 'sqlite_file:ESAlign_2010.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.CondDBCommon,
26  timetype = cms.untracked.string('runnumber'),
27  toPut = cms.VPSet(
28  cms.PSet(
29  record = cms.string('ESAlignmentRcd'),
30  tag = cms.string('ESAlignment_measured_v01_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('ESAlignmentRcd'),
40  container = cms.string('ESAlignment')
41  )
42  )
43 )
44 
45 
46 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
47 
48 process.p = cms.Path(process.prod*process.dbCopy)
49