Skip to content
Snippets Groups Projects
Commit 552dae50 authored by Duc Ta's avatar Duc Ta
Browse files

Merge branch '24.0_fix_truth_si_hit_counting' into '24.0'

Also count the first hit associated to a truth particle.

See merge request atlas/athena!69369
parents 53a5c05b aec5fdff
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
/**
......@@ -100,7 +100,7 @@ InDetPhysValTruthDecoratorAlg::execute(const EventContext &ctx) const {
std::map<int, float>::iterator it;
for (auto barcode = truth_barcode.begin(); barcode != truth_barcode.end(); ++barcode) {
auto result = barcodeSCTclustercount.emplace( std::pair<int, float>(*barcode, 0.0) );
if (!result.second) ++(result.first->second);
++(result.first->second);
}
}
} // Loop over SCT clusters
......@@ -114,7 +114,7 @@ InDetPhysValTruthDecoratorAlg::execute(const EventContext &ctx) const {
std::map<int, float>::iterator it;
for (auto barcode = truth_barcode.begin(); barcode != truth_barcode.end(); ++barcode) {
auto result = barcodePIXclustercount.emplace( std::pair<int, float>(*barcode, 0.0) );
if (!result.second) ++(result.first->second);
++(result.first->second);
}
}
} // Loop over PIX clusters
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment