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  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.CondDB,
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.CondDB,
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("ExTestEcalTPGLinPed_Analyzer",
49  record = cms.string('EcalTPGPedestalsRcd'),
50  Source = cms.PSet(
51  debug = cms.bool(True),
52  )
53 )
54 
55 process.p = cms.Path(process.Test1)