CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  cerr = cms.untracked.PSet(
14  enable = cms.untracked.bool(False)
15  ),
16  cout = cms.untracked.PSet(
17  enable = cms.untracked.bool(True)
18  ),
19  debugModules = cms.untracked.vstring('*')
20 )
21 
22 process.source = cms.Source("EmptyIOVSource",
23  firstValue = cms.uint64(1),
24  lastValue = cms.uint64(1),
25  timetype = cms.string('runnumber'),
26  interval = cms.uint64(1)
27 )
28 
29 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
30  process.CondDB,
31  timetype = cms.untracked.string('runnumber'),
32  toPut = cms.VPSet(
33  cms.PSet(
34  record = cms.string('EBAlignmentRcd'),
35  tag = cms.string('EBAlignment_zero_offline')
36  )
37  )
38 )
39 
40 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
41  timetype = cms.string('runnumber'),
42  toCopy = cms.VPSet(
43  cms.PSet(
44  record = cms.string('EBAlignmentRcd'),
45  container = cms.string('EBAlignment')
46  )
47  )
48 )
49 
50 
51 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
52 
53 process.p = cms.Path(process.prod*process.dbCopy)
54