CMS 3D CMS Logo

EcalO2O_pedestals_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.connect = 'oracle://cms_orcoff_prep/CMS_COND_ECAL'
6 #process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb/'
7 process.CondDBCommon.connect = 'sqlite_file:DB.db'
8 
9 
10 
11 process.MessageLogger = cms.Service("MessageLogger",
12  cerr = cms.untracked.PSet(
13  enable = cms.untracked.bool(False)
14  ),
15  cout = cms.untracked.PSet(
16  enable = cms.untracked.bool(True)
17  ),
18  debugModules = cms.untracked.vstring('*')
19 )
20 
21 process.source = cms.Source("EmptyIOVSource",
22  firstValue = cms.uint64(1),
23  lastValue = cms.uint64(1),
24  timetype = cms.string('runnumber'),
25  interval = cms.uint64(1)
26  )
27 
28 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
29  process.CondDBCommon,
30  timetype = cms.untracked.string('runnumber'),
31  toGet = cms.VPSet(cms.PSet(
32  record = cms.string('EcalPedestalsRcd'),
33  tag = cms.string('EcalPedestals_hlt')
34  ))
35 )
36 
37 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
38  process.CondDBCommon,
39  logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
40  timetype = cms.untracked.string('runnumber'),
41  toPut = cms.VPSet(cms.PSet(
42  record = cms.string('EcalPedestalsRcd'),
43  tag = cms.string('EcalPedestals_hlt')
44  ))
45 )
46 
47 # logconnect = cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_21X_POPCONLOG'),
48 
49 
50 
51 process.Test1 = cms.EDAnalyzer("ExTestEcalPedestalsAnalyzer",
52  SinceAppendMode = cms.bool(True),
53  record = cms.string('EcalPedestalsRcd'),
54  loggingOn = cms.untracked.bool(True),
55  Source = cms.PSet(
56  GenTag = cms.string('LOCAL'),
57  firstRun = cms.string('119000'),
58  lastRun = cms.string('100000000'),
59  LocationSource = cms.string('P5'),
60  OnlineDBUser = cms.string('cms_ecal_r'),
61  debug = cms.bool(True),
62  Location = cms.string('P5_Co'),
63  OnlineDBPassword = cms.string('xxxxxxxxxxx'),
64  OnlineDBSID = cms.string('cms_testbeam')
65  )
66 )
67 
68 process.p = cms.Path(process.Test1)
69 
70