CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  debugModules = cms.untracked.vstring('*'),
14  destinations = cms.untracked.vstring('cout')
15  )
16 
17 process.source = cms.Source("EmptyIOVSource",
18  firstValue = cms.uint64(1),
19  lastValue = cms.uint64(1),
20  timetype = cms.string('runnumber'),
21  interval = cms.uint64(1)
22  )
23 
24 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
25  process.CondDBCommon,
26  timetype = cms.untracked.string('runnumber'),
27  toGet = cms.VPSet(cms.PSet(
28  record = cms.string('EcalChannelStatusRcd'),
29  tag = cms.string('EcalChannelStatus_online')
30  ))
31 )
32 
33 process.es_prefer_ChannelStatusDB = cms.ESPrefer("PoolDBESSource", "")
34 
35 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
36  process.CondDBCommon,
37  logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
38  timetype = cms.untracked.string('runnumber'),
39  toPut = cms.VPSet(cms.PSet(
40  record = cms.string('EcalChannelStatusRcd'),
41  tag = cms.string('EcalChannelStatus_online')
42  ))
43 )
44 
45 process.Test1 = cms.EDAnalyzer("ExTestEcalChannelStatusAnalyzer",
46  SinceAppendMode = cms.bool(True),
47  record = cms.string('EcalChannelStatusRcd'),
48  loggingOn = cms.untracked.bool(True),
49  Source = cms.PSet(
50  GenTag = cms.string('GLOBAL'), # LOCAL or GLOBAL
51  RunType = cms.string('COSMIC'), # PEDESTAL, LASER or COSMIC
52  firstRun = cms.string('112639'),
53  lastRun = cms.string('112639'),
54  LocationSource = cms.string('P5'),
55  OnlineDBUser = cms.string('cms_ecal_r'),
56  debug = cms.bool(True),
57  Location = cms.string('P5_Co'),
58  OnlineDBPassword = cms.string('******'),
59  OnlineDBSID = cms.string('cms_testbeam'),
60  )
61 )
62 
63 process.p = cms.Path(process.Test1)
64 
65