CMS 3D CMS Logo

EcalO2O_channelStatus_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 = 'sqlite_file:DB.db'
6 
7 process.load("Geometry.EcalMapping.EcalMapping_cfi")
8 process.load("Geometry.EcalMapping.EcalMappingRecord_cfi")
9 process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
10 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
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(1),
24  lastValue = cms.uint64(1),
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(cms.PSet(
33  record = cms.string('EcalChannelStatusRcd'),
34  tag = cms.string('EcalChannelStatus_online')
35  ))
36 )
37 
38 process.es_prefer_ChannelStatusDB = cms.ESPrefer("PoolDBESSource", "")
39 
40 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
41  process.CondDBCommon,
42  logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
43  timetype = cms.untracked.string('runnumber'),
44  toPut = cms.VPSet(cms.PSet(
45  record = cms.string('EcalChannelStatusRcd'),
46  tag = cms.string('EcalChannelStatus_online')
47  ))
48 )
49 
50 process.Test1 = cms.EDAnalyzer("ExTestEcalChannelStatusAnalyzer",
51  SinceAppendMode = cms.bool(True),
52  record = cms.string('EcalChannelStatusRcd'),
53  loggingOn = cms.untracked.bool(True),
54  Source = cms.PSet(
55  GenTag = cms.string('GLOBAL'), # LOCAL or GLOBAL
56  RunType = cms.string('COSMIC'), # PEDESTAL, LASER or COSMIC
57  firstRun = cms.string('112639'),
58  lastRun = cms.string('112639'),
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('******'),
64  OnlineDBSID = cms.string('cms_testbeam'),
65  )
66 )
67 
68 process.p = cms.Path(process.Test1)
69 
70