CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalTPGSpikeThresholdfromFile_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 = 'sqlite_file:EcalTPGSpike.db'
10 
11 process.MessageLogger = cms.Service("MessageLogger",
12  debugModules = cms.untracked.vstring('*'),
13  destinations = cms.untracked.vstring('cout')
14 )
15 
16 process.source = cms.Source("EmptyIOVSource",
17  firstValue = cms.uint64(1),
18  lastValue = cms.uint64(1),
19  timetype = cms.string('runnumber'),
20  interval = cms.uint64(1)
21 )
22 
23 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
24  process.CondDBCommon,
25  timetype = cms.untracked.string('runnumber'),
26  toGet = cms.VPSet(
27  cms.PSet(
28  record = cms.string('EcalTPGSpikeRcd'),
29  tag = cms.string('EcalTPGSpike_test')
30  )
31  )
32  )
33 
34 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
35  process.CondDBCommon,
36  logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
37  timetype = cms.untracked.string('runnumber'),
38  toPut = cms.VPSet(
39  cms.PSet(
40  record = cms.string('EcalTPGSpikeRcd'),
41  tag = cms.string('EcalTPGSpike_test')
42  )
43  )
44 )
45 
46 process.Test1 = cms.EDAnalyzer("ExTestEcalTPGSpikeThresholdfromFile",
47  record = cms.string('EcalTPGSpikeRcd'),
48  Source = cms.PSet(
49  debug = cms.bool(True),
50  )
51 )
52 
53 process.p = cms.Path(process.Test1)