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 = 'oracle://cms_orcon_prod/CMS_COND_34X_ECAL'
8 #process.CondDB.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
9 process.CondDB.connect = 'sqlite_file:EcalSRSettings.db'
10 
11 
12 process.MessageLogger = cms.Service("MessageLogger",
13  debugModules = cms.untracked.vstring('*'),
14  destinations = cms.untracked.vstring('cout')
15 )
16 
17 process.source = cms.Source("EmptyIOVSource",
18  firstValue = cms.uint64(1000000),
19  lastValue = cms.uint64(1000000),
20  timetype = cms.string('runnumber'),
21  interval = cms.uint64(1)
22 )
23 
24 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
25  process.CondDB,
26  timetype = cms.untracked.string('runnumber'),
27  toGet = cms.VPSet(
28  cms.PSet(
29  record = cms.string('EcalSRSettingsRcd'),
30  tag = cms.string('EcalSRSettings_v01_offline')
31  )
32  )
33 )
34 
35 db_service,db_user,db_pwd = auth.get_readOnly_db_credentials()
36 
37 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
38  process.CondDB,
39  logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
40  timetype = cms.untracked.string('runnumber'),
41  toPut = cms.VPSet(
42  cms.PSet(
43  record = cms.string('EcalSRSettingsRcd'),
44  tag = cms.string('EcalSRSettings_v01_offline')
45  )
46  )
47 )
48 
49 process.Test1 = cms.EDAnalyzer("ExTestEcalSRPAnalyzer",
50  SinceAppendMode = cms.bool(True),
51  record = cms.string('EcalSRSettingsRcd'),
52  loggingOn = cms.untracked.bool(True),
53  Source = cms.PSet(
54  firstRun = cms.string('160970'),
55  lastRun = cms.string('100000000'),
56  debug = cms.bool(True),
57  OnlineDBSID = cms.string(db_service),
58  OnlineDBUser = cms.string(db_user),
59  OnlineDBPassword = cms.string( db_pwd ),
60  location = cms.string('P5_Co'),
61  runtype = cms.string('Physics'),
62  gentag = cms.string('global'),
63  )
64 )
65 
66 process.p = cms.Path(process.Test1)
67 
68