CMS 3D CMS Logo

EcalTPGLinPed_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.CondDB.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.CondDB.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.CondDB,
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.CondDB,
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("ExTestEcalTPGLinPed_Analyzer",
54  record = cms.string('EcalTPGPedestalsRcd'),
55  Source = cms.PSet(
56  debug = cms.bool(True),
57  )
58 )
59 
60 process.p = cms.Path(process.Test1)