From 4e0326b56b70770129814f138dac61fafce1981a Mon Sep 17 00:00:00 2001 From: Martina Date: Thu, 12 Dec 2024 22:56:08 +0100 Subject: [PATCH 1/2] add check direct hit in BTL --- Validation/MtdValidation/plugins/MtdTracksValidation.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { From 9680a468e602c46047598944fec99f2ab312c6db Mon Sep 17 00:00:00 2001 From: Martina Date: Thu, 12 Dec 2024 22:57:25 +0100 Subject: [PATCH 2/2] update --- Validation/MtdValidation/test/mtdHarvesting_cfg.py | 2 +- Validation/MtdValidation/test/mtdValidation_cfg.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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