Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:23:55

0001 #run with: cmsRun hgcsiNoiseMapTester_cfg.py doseMap=SimCalorimetry/HGCalSimProducers/data/doseParams_3000fb.txt
0002 
0003 import FWCore.ParameterSet.Config as cms
0004 from FWCore.ParameterSet.VarParsing import VarParsing
0005 #from Configuration.StandardSequences.Eras import eras
0006 
0007 options = VarParsing()
0008 options.register ("doseMapNose", "",  VarParsing.multiplicity.singleton, VarParsing.varType.string)
0009 options.parseArguments()
0010 
0011 from Configuration.Eras.Era_Phase2C10_cff import Phase2C10
0012 process = cms.Process('demo',Phase2C10)
0013 
0014 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0015 process.load('Configuration.Geometry.GeometryExtended2026D60Reco_cff')
0016 from Configuration.AlCa.GlobalTag import GlobalTag
0017 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
0018 
0019 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
0020 process.source = cms.Source("EmptySource")
0021 
0022 #doseMap is defined in 
0023 #SimCalorimetry/HGCalSimProducers/python/hgcalDigitizer_cfi.py
0024 
0025 from SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi import HGCAL_ileakParam_toUse, HGCAL_cceParams_toUse
0026 process.plotter_eol = cms.EDAnalyzer("HFNoseNoiseMapAnalyzer",
0027                                      scaleByDoseFactor  = cms.double(1.),
0028                                      doseMap            = cms.string( options.doseMapNose ),
0029                                      doseMapAlgo        = cms.uint32(0),
0030                                      ileakParam         = HGCAL_ileakParam_toUse,
0031                                      cceParams          = HGCAL_cceParams_toUse,
0032                                      aimMIPtoADC        = cms.int32(10),
0033                                      ignoreGainSettings = cms.bool(False)
0034                                  )
0035 
0036 process.plotter_eol_nogain = process.plotter_eol.clone( ignoreGainSettings = cms.bool(True) )
0037 
0038 process.plotter_start = process.plotter_eol.clone( doseMapAlgo=cms.uint32(3) )
0039 
0040 
0041 process.TFileService = cms.Service("TFileService",
0042                                    fileName = cms.string("dosemap_hfnose_output.root")
0043 )
0044 
0045 process.p = cms.Path(process.plotter_eol
0046                      *process.plotter_eol_nogain
0047                      *process.plotter_start)