CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalTPGPedfromFile_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.DBCommon.CondDBCommon_cfi")
5 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
6 #
7 # Choose the output database
8 #
9 #process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_311X_ECAL_LAS'
10 process.CondDBCommon.connect = 'sqlite_file:EcalLinPed.db'
11 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
12 
13 process.MessageLogger = cms.Service("MessageLogger",
14  debugModules = cms.untracked.vstring('*'),
15  destinations = cms.untracked.vstring('cout')
16 )
17 
18 process.source = cms.Source("EmptyIOVSource",
19  firstValue = cms.uint64(1),
20  lastValue = cms.uint64(1),
21  timetype = cms.string('runnumber'),
22  interval = cms.uint64(1)
23 )
24 
25 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
26  process.CondDBCommon,
27  timetype = cms.untracked.string('runnumber'),
28  toGet = cms.VPSet(
29  cms.PSet(
30  record = cms.string('EcalTPGPedestalsRcd'),
31  tag = cms.string('EcalTPGPedestals_test')
32  )
33  )
34  )
35 
36 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
37  process.CondDBCommon,
38  logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
39  timetype = cms.untracked.string('runnumber'),
40  toPut = cms.VPSet(
41  cms.PSet(
42  record = cms.string('EcalTPGPedestalsRcd'),
43  tag = cms.string('EcalTPGPedestals_test')
44  )
45  )
46 )
47 
48 process.Test1 = cms.EDAnalyzer("ExTestEcalTPGPedfromFile",
49  record = cms.string('EcalTPGPedestalsRcd'),
50  Source = cms.PSet(
51  debug = cms.bool(True),
52  )
53 )
54 
55 process.p = cms.Path(process.Test1)