test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
localDBGeometry.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 def customiseDBRecords(process):
4 
5  process.PoolDBESSourceGeometry = cms.ESSource("PoolDBESSource",
6  process.CondDBSetup,
7  timetype = cms.string('runnumber'),
8  toGet = cms.VPSet(
9  #cms.PSet(record = cms.string('GeometryFileRcd'), tag = cms.string('XMLFILE_Geometry_Extended_61YV5_mc')),
10  cms.PSet(record = cms.string('PEcalBarrelRcd'), tag = cms.string('EBRECO_Geometry_61YV5')),
11  cms.PSet(record = cms.string('PEcalEndcapRcd'), tag = cms.string('EERECO_Geometry_61YV5')),
12  cms.PSet(record = cms.string('PEcalPreshowerRcd'), tag = cms.string('EPRECO_Geometry_61YV5')),
13  cms.PSet(record = cms.string('PHcalRcd'), tag = cms.string('HCALRECO_Geometry_61YV5')),
14  cms.PSet(record = cms.string('PCaloTowerRcd'), tag = cms.string('CTRECO_Geometry_61YV5')),
15  cms.PSet(record = cms.string('PZdcRcd'), tag = cms.string('ZDCRECO_Geometry_61YV5')),
16  cms.PSet(record = cms.string('PCastorRcd'), tag = cms.string('CASTORRECO_Geometry_61YV5'))
17 ## cms.PSet(record = cms.string('CSCRecoGeometryRcd'), tag = cms.string('CSCRECO_Geometry_61YV5')),
18 ## cms.PSet(record = cms.string('CSCRecoDigiParametersRcd'),tag = cms.string('CSCRECODIGI_Geometry_61YV5')),
19 ## cms.PSet(record = cms.string('DTRecoGeometryRcd'), tag = cms.string('DTRECO_Geometry_61YV5')),
20 ## cms.PSet(record = cms.string('IdealGeometryRecord'), tag = cms.string('TKRECO_Geometry_61YV5')),
21 ## cms.PSet(record = cms.string('PGeometricDetExtraRcd'), tag = cms.string('TKExtra_Geometry_61YV5')),
22 ## cms.PSet(record = cms.string('PZdcRcd'), tag = cms.string('ZDCRECO_Geometry_61YV5')),
23 ## cms.PSet(record = cms.string('RPCRecoGeometryRcd'), tag = cms.string('RPCRECO_Geometry_61YV5'))
24  ),
25  connect = cms.string('sqlite_file:myfile.db')
26  )
27 
28  process.es_prefer_geometry = cms.ESPrefer( "PoolDBESSource", "PoolDBESSourceGeometry" )
29 
30  return process