CMS 3D CMS Logo

EcalO2O_DAQ_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("ProcessOne")
4 
5 process.load("CondCore.DBCommon.CondDBCommon_cfi")
6 #process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_34X_ECAL'
7 process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
8 process.CondDBCommon.connect = 'sqlite_file:EcalDAQTowerStatus.db'
9 
10 
11 
12 process.MessageLogger = cms.Service("MessageLogger",
13  cerr = cms.untracked.PSet(
14  enable = cms.untracked.bool(False)
15  ),
16  cout = cms.untracked.PSet(
17  enable = cms.untracked.bool(True)
18  ),
19  debugModules = cms.untracked.vstring('*')
20 )
21 
22 process.source = cms.Source("EmptyIOVSource",
23  firstValue = cms.uint64(1000000),
24  lastValue = cms.uint64(1000000),
25  timetype = cms.string('runnumber'),
26  interval = cms.uint64(1)
27 )
28 
29 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
30  process.CondDBCommon,
31  timetype = cms.untracked.string('runnumber'),
32  toGet = cms.VPSet(
33  cms.PSet(
34  record = cms.string('EcalDAQTowerStatusRcd'),
35  tag = cms.string('EcalDAQTowerStatus_online')
36  )
37  )
38 )
39 
40 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
41  process.CondDBCommon,
42  #logconnect = cms.untracked.string('oracle://cms_orcon_prod/CMS_COND_31X_POPCONLOG'),
43  logconnect = cms.untracked.string('sqlite_file:/tmp/EcalDAQDBlog.db'),
44  timetype = cms.untracked.string('runnumber'),
45  toPut = cms.VPSet(
46  cms.PSet(
47  record = cms.string('EcalDAQTowerStatusRcd'),
48  tag = cms.string('EcalDAQTowerStatus_online')
49  )
50  )
51 )
52 
53 process.Test1 = cms.EDAnalyzer("ExTestEcalDAQAnalyzer",
54  SinceAppendMode = cms.bool(True),
55  record = cms.string('EcalDAQTowerStatusRcd'),
56  loggingOn = cms.untracked.bool(True),
57  Source = cms.PSet(
58  firstRun = cms.string('121756'),
59  lastRun = cms.string('100000000'),
60  OnlineDBUser = cms.string('cms_ecal_r'),
61  OnlineDBPassword = cms.string('******'),
62  OnlineDBSID = cms.string('cms_omds_lb'),
63  location = cms.string('P5_Co'),
64 # runtype = cms.string('Cosmic'),
65 # runtype = cms.string('Cosmic'),
66  runtype = cms.string('PHYSICS'),
67  gentag = cms.string('GLOBAL'),
68  debug = cms.bool(False)
69  )
70 )
71 
72 process.p = cms.Path(process.Test1)
73 
74