diff --git a/Validation/MtdValidation/plugins/MtdTracksValidation.cc b/Validation/MtdValidation/plugins/MtdTracksValidation.cc index 5ea8cf8fa7611..40fb68cabf357 100644 --- a/Validation/MtdValidation/plugins/MtdTracksValidation.cc +++ b/Validation/MtdValidation/plugins/MtdTracksValidation.cc @@ -749,7 +749,8 @@ void MtdTracksValidation::analyze(const edm::Event& iEvent, const edm::EventSetu }); // Find the first direct hit in time directSimClusIt = std::find_if(simClustersRefs.begin(), simClustersRefs.end(), [](const auto& simCluster) { - return simCluster->trackIdOffset() == 0; + MTDDetId mtddetid = simCluster->detIds_and_rows().front().first; + return (mtddetid.mtdSubDetector() == 1 && simCluster->trackIdOffset() == 0); }); // Check if TP has direct or other sim cluster for BTL for (const auto& simClusterRef : simClustersRefs) { diff --git a/Validation/MtdValidation/test/mtdHarvesting_cfg.py b/Validation/MtdValidation/test/mtdHarvesting_cfg.py index ab8b3c99200f9..aa6ad60b4cdce 100644 --- a/Validation/MtdValidation/test/mtdHarvesting_cfg.py +++ b/Validation/MtdValidation/test/mtdHarvesting_cfg.py @@ -8,7 +8,7 @@ process.load('Configuration.StandardSequences.EDMtoMEAtRunEnd_cff') process.load('SimGeneral.MixingModule.mixNoPU_cfi') -process.load("Configuration.Geometry.GeometryExtended2026D110Reco_cff") +process.load("Configuration.Geometry.GeometryExtendedRun4D110Reco_cff") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) diff --git a/Validation/MtdValidation/test/mtdValidation_cfg.py b/Validation/MtdValidation/test/mtdValidation_cfg.py index 7d9f4e8d189bf..ab3fb00444b24 100644 --- a/Validation/MtdValidation/test/mtdValidation_cfg.py +++ b/Validation/MtdValidation/test/mtdValidation_cfg.py @@ -10,7 +10,7 @@ process.load('Configuration.StandardSequences.EndOfProcess_cff') process.load('SimGeneral.MixingModule.mixNoPU_cfi') -process.load("Configuration.Geometry.GeometryExtended2026D110Reco_cff") +process.load("Configuration.Geometry.GeometryExtendedRun4D110Reco_cff") process.load('Configuration.StandardSequences.MagneticField_cff') process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') from Configuration.AlCa.GlobalTag import GlobalTag