test
CMS 3D CMS Logo

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