Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-07-16 00:28:57

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run3_dd4hep_cff import Run3_dd4hep
0004 process = cms.Process('G4PrintGeometry',Run3_dd4hep)
0005 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0006 process.load('Configuration.StandardSequences.GeometrySimDB_cff')
0007 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0008 process.load('CondCore.CondDB.CondDB_cfi')
0009 from Configuration.AlCa.GlobalTag import GlobalTag
0010 
0011 process.source = cms.Source("EmptySource")
0012 
0013 process.maxEvents = cms.untracked.PSet(
0014     input = cms.untracked.int32(1)
0015 )
0016 
0017 process.CondDB.timetype = cms.untracked.string('runnumber')
0018 process.CondDB.connect = cms.string('sqlite_file:myfile.db')
0019 process.PoolDBESSourceGeometry = cms.ESSource("PoolDBESSource",
0020                                       process.CondDB,
0021                                       toGet = cms.VPSet(cms.PSet(record = cms.string('GeometryFileRcd'),
0022                                                         tag = cms.string('XMLFILE_Geometry_TagXX_Extended2021_mc'),
0023                                                         label = cms.untracked.string("Extended")),
0024                                                         cms.PSet(record = cms.string('IdealGeometryRecord'),tag = cms.string('TKRECO_Geometry_TagXX')),
0025                                                         cms.PSet(record = cms.string('PTrackerParametersRcd'),tag = cms.string('TKParameters_Geometry_TagXX')),
0026                                                         cms.PSet(record = cms.string('PEcalBarrelRcd'),   tag = cms.string('EBRECO_Geometry_TagXX')),
0027                                                         cms.PSet(record = cms.string('PEcalEndcapRcd'),   tag = cms.string('EERECO_Geometry_TagXX')),
0028                                                         cms.PSet(record = cms.string('PEcalPreshowerRcd'),tag = cms.string('EPRECO_Geometry_TagXX')),
0029                                                         cms.PSet(record = cms.string('PHcalRcd'),         tag = cms.string('HCALRECO_Geometry_TagXX')),
0030                                                         cms.PSet(record = cms.string('HcalParametersRcd'), tag = cms.string('HCALParameters_Geometry_TagXX')),
0031                                                         cms.PSet(record = cms.string('PCaloTowerRcd'),    tag = cms.string('CTRECO_Geometry_TagXX')),
0032                                                         cms.PSet(record = cms.string('PZdcRcd'),          tag = cms.string('ZDCRECO_Geometry_TagXX')),
0033                                                         cms.PSet(record = cms.string('PCastorRcd'),       tag = cms.string('CASTORRECO_Geometry_TagXX')),
0034                                                         cms.PSet(record = cms.string('CSCRecoGeometryRcd'),tag = cms.string('CSCRECO_Geometry_TagXX')),
0035                                                         cms.PSet(record = cms.string('CSCRecoDigiParametersRcd'),tag = cms.string('CSCRECODIGI_Geometry_TagXX')),
0036                                                         cms.PSet(record = cms.string('DTRecoGeometryRcd'),tag = cms.string('DTRECO_Geometry_TagXX')),
0037                                                         cms.PSet(record = cms.string('RPCRecoGeometryRcd'),tag = cms.string('RPCRECO_Geometry_TagXX')),
0038                                                         cms.PSet(record = cms.string('GEMRecoGeometryRcd'),tag = cms.string('GEMRECO_Geometry_TagXX'))
0039                                                     )
0040                                 )
0041 
0042 process.es_prefer_geometry = cms.ESPrefer( "PoolDBESSource", "PoolDBESSourceGeometry" )
0043 from SimG4Core.PrintGeomInfo.g4PrintGeomInfo_cfi import *
0044 
0045 process = printGeomInfo(process)
0046 
0047 if hasattr(process,'MessageLogger'):
0048     process.MessageLogger.G4cout=dict()
0049     process.MessageLogger.G4cerr=dict()
0050 
0051 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0052     DumpSummary      = cms.untracked.bool(False),
0053     DumpLVTree       = cms.untracked.bool(False),
0054     DumpMaterial     = cms.untracked.bool(False),
0055     DumpLVList       = cms.untracked.bool(False),
0056     DumpLV           = cms.untracked.bool(False),
0057     DumpSolid        = cms.untracked.bool(False),
0058     DumpAttributes   = cms.untracked.bool(False),
0059     DumpPV           = cms.untracked.bool(False),
0060     DumpRotation     = cms.untracked.bool(False),
0061     DumpReplica      = cms.untracked.bool(False),
0062     DumpTouch        = cms.untracked.bool(False),
0063     DumpSense        = cms.untracked.bool(True),
0064     DumpParams       = cms.untracked.bool(True),
0065     DumpRegion       = cms.untracked.bool(True),
0066     DD4hep           = cms.untracked.bool(True),
0067     Name             = cms.untracked.string(''),
0068     Names            = cms.untracked.vstring(''),
0069     FileDetail       = cms.untracked.bool(True),
0070     type             = cms.string('PrintGeomInfoAction')
0071 ))