File indexing completed on 2024-10-16 05:06:45
0001 import FWCore.ParameterSet.Config as cms
0002
0003 from DQMServices.Core.DQM_cfg import *
0004 from Validation.HGCalValidation.hgcalValidator_cfi import hgcalValidator as _hgcalValidator
0005 from RecoHGCal.TICL.iterativeTICL_cff import ticlIterLabels, associatorsInstances
0006
0007
0008 hgcalValidator = _hgcalValidator.clone(
0009 label_tst = cms.VInputTag(*[cms.InputTag(label) for label in ticlIterLabels] + [cms.InputTag("ticlSimTracksters", "fromCPs"), cms.InputTag("ticlSimTracksters")]),
0010 allTracksterTracksterAssociatorsLabels = cms.VInputTag( *[cms.InputTag('allTrackstersToSimTrackstersAssociationsByLCs:'+associator) for associator in associatorsInstances] ),
0011 allTracksterTracksterByHitsAssociatorsLabels = cms.VInputTag( *[cms.InputTag('allTrackstersToSimTrackstersAssociationsByHits:'+associator) for associator in associatorsInstances] )
0012 )
0013
0014 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
0015 premix_stage2.toModify(hgcalValidator,
0016 label_cp_fake = "mixData:MergedCaloTruth"
0017 )
0018
0019 from Configuration.Eras.Modifier_phase2_hgcalV10_cff import phase2_hgcalV10
0020 phase2_hgcalV10.toModify(hgcalValidator, totallayers_to_monitor = cms.int32(50))
0021
0022 from Configuration.Eras.Modifier_phase2_hgcalV16_cff import phase2_hgcalV16
0023 phase2_hgcalV16.toModify(hgcalValidator, totallayers_to_monitor = cms.int32(47))
0024
0025 from Configuration.ProcessModifiers.ticl_v5_cff import ticl_v5
0026
0027 lcInputMask_v5 = ["ticlTrackstersCLUE3DHigh"]
0028 lcInputMask_v5.extend([cms.InputTag("ticlSimTracksters", "fromCPs"), cms.InputTag("ticlSimTracksters")])
0029
0030 ticl_v5.toModify(hgcalValidator,
0031 LayerClustersInputMask = cms.VInputTag(lcInputMask_v5),
0032 ticlTrackstersMerge = cms.InputTag("ticlCandidate"),
0033 isticlv5 = cms.untracked.bool(True),
0034 mergeSimToRecoAssociator = cms.InputTag("allTrackstersToSimTrackstersAssociationsByLCs:ticlSimTrackstersfromCPsToticlCandidate"),
0035 mergeRecoToSimAssociator = cms.InputTag("allTrackstersToSimTrackstersAssociationsByLCs:ticlCandidateToticlSimTrackstersfromCPs"),
0036 )