CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
EcalTPGPhysicsConstfromFile_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("ProcessOne")
4 process.load("CondCore.CondDB.CondDB_cfi")
5 #process.load("CondCore.DBCommon.CondDBCommon_cfi")
6 #process.CondDB.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
7 #
8 # Choose the output database
9 #
10 process.CondDB.connect = 'sqlite_file:EcalTPGPhysicsConst.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.PoolDBESSource = cms.ESSource("PoolDBESSource",
30  process.CondDB,
31  timetype = cms.untracked.string('runnumber'),
32  toGet = cms.VPSet(
33  cms.PSet(
34  record = cms.string('EcalTPGPhysicsConstRcd'),
35  tag = cms.string('EcalTPGPhysicsConst_test')
36  )
37  )
38  )
39 
40 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
41  process.CondDB,
42  logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
43  timetype = cms.untracked.string('runnumber'),
44  toPut = cms.VPSet(
45  cms.PSet(
46  record = cms.string('EcalTPGPhysicsConstRcd'),
47  tag = cms.string('EcalTPGPhysicsConst_test')
48  )
49  )
50 )
51 
52 process.Test1 = cms.EDAnalyzer("ExTestEcalTPGPhysicsConstfromFile",
53  record = cms.string('EcalTPGPhysicsConstRcd'),
54  Source = cms.PSet(
55  debug = cms.bool(True),
56  )
57 )
58 
59 process.p = cms.Path(process.Test1)