File indexing completed on 2025-04-30 22:24:43
0001 import FWCore.ParameterSet.Config as cms
0002
0003 from Validation.HGCalValidation.PostProcessorHGCAL_cfi import postProcessorHGCALlayerclusters as _postProcessorHGCALlayerclusters
0004 from Validation.HGCalValidation.PostProcessorHGCAL_cfi import postProcessorHGCALsimclusters as _postProcessorHGCALsimclusters
0005 from Validation.HGCalValidation.PostProcessorHGCAL_cfi import postProcessorHGCALTracksters as _postProcessorHGCALTracksters
0006 from Validation.HGCalValidation.PostProcessorHGCAL_cfi import postProcessorHGCALCandidates as _postProcessorHGCALCandidates
0007
0008 from Validation.HGCalValidation.HLT_TICLIterLabels_cff import hltTiclIterLabels as _hltTiclIterLabels
0009 from Validation.HGCalValidation.HLTHGCalValidator_cff import hltHgcalValidator as _hltHgcalValidator
0010
0011 hltPrefix = 'HLT/HGCAL/HGCalValidator/'
0012 hltTracksterLabels = _hltTiclIterLabels.copy()
0013 hltTracksterLabels.extend(['hltTiclSimTracksters', 'hltTiclSimTracksters_fromCPs'])
0014
0015 hltLcToCP_linking = _hltHgcalValidator.label_LCToCPLinking._InputTag__moduleLabel
0016 hltPostProcessorHGCALlayerclusters = _postProcessorHGCALlayerclusters.clone(
0017 subDirs = cms.untracked.vstring(hltPrefix + _hltHgcalValidator.label_layerClusterPlots._InputTag__moduleLabel + '/' + hltLcToCP_linking),
0018 )
0019
0020 hltSubdirsSim = [hltPrefix + _hltHgcalValidator.label_SimClusters._InputTag__moduleLabel + '/'+iteration+'/' for iteration in hltTracksterLabels]
0021 hltPostProcessorHGCALsimclusters = _postProcessorHGCALsimclusters.clone(
0022 subDirs = cms.untracked.vstring(hltSubdirsSim)
0023 )
0024
0025 hltTSbyHits_CP = _hltHgcalValidator.label_TSbyHitsCP.value()
0026 hltSubdirsTracksters = [hltPrefix+iteration+'/'+hltTSbyHits_CP for iteration in hltTracksterLabels]
0027
0028 hltTSbyLCs = _hltHgcalValidator.label_TSbyLCs.value()
0029 hltSubdirsTracksters.extend(hltPrefix+iteration+'/'+hltTSbyLCs for iteration in hltTracksterLabels)
0030
0031 hltTSbyLCs_CP = _hltHgcalValidator.label_TSbyLCsCP.value()
0032 hltSubdirsTracksters.extend(hltPrefix+iteration+'/'+hltTSbyLCs_CP for iteration in hltTracksterLabels)
0033
0034 hltTSbyHits = _hltHgcalValidator.label_TSbyHits.value()
0035 hltSubdirsTracksters.extend(hltPrefix+iteration+'/'+hltTSbyHits for iteration in hltTracksterLabels)
0036
0037 hltPostProcessorHGCALTracksters = _postProcessorHGCALTracksters.clone(
0038 subDirs = cms.untracked.vstring(hltSubdirsTracksters)
0039 )
0040
0041 hltNeutrals = ["photons", "neutral_pions", "neutral_hadrons"]
0042 hltCharged = ["electrons", "muons", "charged_hadrons"]
0043 hltSubDirsCandidates = [hltPrefix + _hltHgcalValidator.ticlCandidates.value() + "/" + c for cands in (hltNeutrals, hltCharged) for c in cands]
0044
0045 hltPostProcessorHGCALCandidates = _postProcessorHGCALCandidates.clone(
0046 subDirs = cms.untracked.vstring(hltSubDirsCandidates)
0047 )
0048
0049 hltHcalValidatorPostProcessor = cms.Sequence(
0050 hltPostProcessorHGCALlayerclusters+
0051 hltPostProcessorHGCALsimclusters+
0052 hltPostProcessorHGCALTracksters+
0053 hltPostProcessorHGCALCandidates
0054 )