CMS 3D CMS Logo

EcalO2O_SRP_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import CondTools.Ecal.db_credentials as auth
3 
4 process = cms.Process("ProcessOne")
5 
6 process.load("CondCore.CondDB.CondDB_cfi")
7 process.CondDB.connect = 'sqlite_file:EcalSRSettings.db'
8 
9 
10 process.MessageLogger = cms.Service("MessageLogger",
11  debugModules = cms.untracked.vstring('*'),
12  destinations = cms.untracked.vstring('cout')
13 )
14 
15 process.source = cms.Source("EmptyIOVSource",
16  firstValue = cms.uint64(1000000),
17  lastValue = cms.uint64(1000000),
18  timetype = cms.string('runnumber'),
19  interval = cms.uint64(1)
20 )
21 
22 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
23  process.CondDB,
24  timetype = cms.untracked.string('runnumber'),
25  toGet = cms.VPSet(
26  cms.PSet(
27  record = cms.string('EcalSRSettingsRcd'),
28  tag = cms.string('EcalSRSettings_v01_offline')
29  )
30  )
31 )
32 
33 db_reader_account = 'CMS_ECAL_R'
34 db_service,db_user,db_pwd = auth.get_db_credentials( db_reader_account )
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('EcalSRSettingsRcd'),
43  tag = cms.string('EcalSRSettings_v01_offline')
44  )
45  )
46 )
47 
48 process.Test1 = cms.EDAnalyzer("ExTestEcalSRPAnalyzer",
49  SinceAppendMode = cms.bool(True),
50  record = cms.string('EcalSRSettingsRcd'),
51  loggingOn = cms.untracked.bool(True),
52  Source = cms.PSet(
53  firstRun = cms.string('160970'),
54  lastRun = cms.string('100000000'),
55  debug = cms.bool(True),
56  OnlineDBSID = cms.string(db_service),
57  OnlineDBUser = cms.string(db_user),
58  OnlineDBPassword = cms.string( db_pwd ),
59  location = cms.string('P5_Co'),
60  runtype = cms.string('Physics'),
61  gentag = cms.string('global'),
62  )
63 )
64 
65 process.p = cms.Path(process.Test1)
66 
67