Skip to content
Snippets Groups Projects
Commit 7c6fb6f8 authored by Swagato Banerjee's avatar Swagato Banerjee
Browse files

Merge branch '21.9-IDPVMFix' into '21.9'

21.9: Fixing filling of layer numbers for ITK

See merge request atlas/athena!16489

Former-commit-id: 164d74a7f4414f9bb8bb1866511a6e5e586976bb
parents cf0a85c3 434bff2e
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,7 @@ InDetPerfPlot_hitEff::fill(const xAOD::TrackParticle& trkprt) {
SG::AuxElement::ConstAccessor<std::vector<int>> iLayer ("measurement_iLayer");
if (!iLayer.isAvailable(trkprt) && m_fillAdditionalITkPlots) result_iLayer = trkprt.auxdecor<std::vector<int> >("measurement_iLayer");
// NP: this should be fine... residual filled with -1 if not hit
//Only do this if decoration doesn't already exist
for (unsigned int idx = 0; idx < result_region.size(); ++idx) {
const int measureType = result_measureType[idx];
......@@ -99,7 +100,10 @@ InDetPerfPlot_hitEff::fill(const xAOD::TrackParticle& trkprt) {
const int det = result_det[idx]; // LAYER TYPE L0PIXBARR / PIXEL / ...
const int region = result_region[idx]; // BARREL OR ENDCAP
int layer = 0;
if (!iLayer.isAvailable(trkprt) && m_fillAdditionalITkPlots) layer = result_iLayer[idx];
if (m_fillAdditionalITkPlots){
if(!iLayer.isAvailable(trkprt)) layer = result_iLayer[idx];
else layer = (iLayer(trkprt))[idx];
}
float eta = std::fabs(trkprt.eta());
if (det == DBM) {
continue; // ignore DBM
......
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