File indexing completed on 2025-05-19 07:20:05
0001 import FWCore.ParameterSet.Config as cms
0002 process = cms.Process("TEST")
0003
0004 from FWCore.ParameterSet.VarParsing import VarParsing
0005 options = VarParsing('python')
0006 options.register('modules','Geometry/HGCalMapping/data/ModuleMaps/modulelocator_test.txt',mytype=VarParsing.varType.string,
0007 info="Path to module mapper. Absolute, or relative to CMSSW src directory")
0008 options.register('sicells','Geometry/HGCalMapping/data/CellMaps/WaferCellMapTraces.txt',mytype=VarParsing.varType.string,
0009 info="Path to Si cell mapper. Absolute, or relative to CMSSW src directory")
0010 options.register('sipmcells','Geometry/HGCalMapping/data/CellMaps/channels_sipmontile.hgcal.txt',mytype=VarParsing.varType.string,
0011 info="Path to SiPM-on-tile cell mapper. Absolute, or relative to CMSSW src directory")
0012 options.register('offsetfile','Geometry/HGCalMapping/data/CellMaps/calibration_to_surrounding_offsetMap.txt',mytype=VarParsing.varType.cms.FileInPath,
0013 info="Path to calibration-to-surrounding cell offset file. Absolute, or relative to CMSSW src directory")
0014
0015 options.parseArguments()
0016
0017 process.source = cms.Source('EmptySource')
0018
0019 process.maxEvents = cms.untracked.PSet(
0020 input = cms.untracked.int32(1)
0021 )
0022
0023
0024 from Geometry.HGCalMapping.hgcalmapping_cff import customise_hgcalmapper
0025 process = customise_hgcalmapper(process,
0026 modules=options.modules,
0027 sicells=options.sicells,
0028 sipmcells=options.sipmcells,
0029 offsetfile=options.offsetfile)
0030
0031
0032 process.load('Configuration.Geometry.GeometryExtended2026D99Reco_cff')
0033
0034
0035 process.tester = cms.EDAnalyzer('HGCalMappingESSourceTester')
0036
0037 process.p = cms.Path(process.tester)