CMS 3D CMS Logo

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  cerr = cms.untracked.PSet(
15  enable = cms.untracked.bool(False)
16  ),
17  cout = cms.untracked.PSet(
18  enable = cms.untracked.bool(True)
19  ),
20  debugModules = cms.untracked.vstring('*')
21 )
22 
23 process.source = cms.Source("EmptyIOVSource",
24  firstValue = cms.uint64(1),
25  lastValue = cms.uint64(1),
26  timetype = cms.string('runnumber'),
27  interval = cms.uint64(1)
28 )
29 
30 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
31  process.CondDBCommon,
32  timetype = cms.untracked.string('runnumber'),
33  toGet = cms.VPSet(
34  cms.PSet(
35  record = cms.string('EcalTPGPedestalsRcd'),
36  tag = cms.string('EcalTPGPedestals_test')
37  )
38  )
39  )
40 
41 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
42  process.CondDBCommon,
43  logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
44  timetype = cms.untracked.string('runnumber'),
45  toPut = cms.VPSet(
46  cms.PSet(
47  record = cms.string('EcalTPGPedestalsRcd'),
48  tag = cms.string('EcalTPGPedestals_test')
49  )
50  )
51 )
52 
53 process.Test1 = cms.EDAnalyzer("ExTestEcalTPGPedfromFile",
54  record = cms.string('EcalTPGPedestalsRcd'),
55  Source = cms.PSet(
56  debug = cms.bool(True),
57  )
58 )
59 
60 process.p = cms.Path(process.Test1)