CMS 3D CMS Logo

copyTrivialDCS_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.DBCommon.CondDBCommon_cfi")
7 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
8 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
9 process.CondDBCommon.connect = 'sqlite_file:DB.db'
10 
11 process.MessageLogger = cms.Service("MessageLogger",
12  cerr = cms.untracked.PSet(
13  enable = cms.untracked.bool(False)
14  ),
15  cout = cms.untracked.PSet(
16  enable = cms.untracked.bool(True)
17  ),
18  debugModules = cms.untracked.vstring('*')
19 )
20 
21 process.source = cms.Source("EmptyIOVSource",
22  firstValue = cms.uint64(1),
23  lastValue = cms.uint64(1),
24  timetype = cms.string('runnumber'),
25  interval = cms.uint64(1)
26 )
27 
28 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
29  process.CondDBCommon,
30  timetype = cms.untracked.string('runnumber'),
31  toPut = cms.VPSet(
32  cms.PSet(
33  record = cms.string('EcalDCSTowerStatusRcd'),
34  tag = cms.string('EcalDCSTowerStatus_mc')
35  )
36  )
37 )
38 
39 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
40  timetype = cms.string('runnumber'),
41  toCopy = cms.VPSet(
42  cms.PSet(
43  record = cms.string('EcalDCSTowerStatusRcd'),
44  container = cms.string('EcalDCSTowerStatus')
45  )
46  )
47 )
48 
49 
50 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
51 
52 process.p = cms.Path(process.prod*process.dbCopy)
53