Skip to content
Snippets Groups Projects
Commit 3abc4c2e authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

TrkVKalVrtFitter: Fix gcc12 warnings.

Fix use of uninitialized eigen objects.
parent dce7b2c6
5 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!49612TrkVKalVrtFitter: Fix gcc12 warnings.
/*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
// TEMPORARY until track EDM is finalised!!!!
......@@ -64,6 +64,7 @@ namespace Trk {
tmp_refFrameY += perGlobalPos.y() ;
tmp_refFrameZ += perGlobalPos.z() ;
TrkMatControl tmpMat; // Here we create structure to control material effects
tmpMat.trkSavedLocalVertex.setZero();
tmpMat.trkRefGlobPos=Amg::Vector3D(perGlobalPos.x(), perGlobalPos.y(), perGlobalPos.z());
if(m_firstMeasuredPoint){ tmpMat.extrapolationType=0;} //First measured point strategy
else{ tmpMat.extrapolationType=1;} //Any measured point strategy
......@@ -173,6 +174,7 @@ namespace Trk {
tmp_refFrameY += perGlobalPos.y() ;
tmp_refFrameZ += perGlobalPos.z() ;
TrkMatControl tmpMat; // Here we create structure to control material effects
tmpMat.trkSavedLocalVertex.setZero();
tmpMat.trkRefGlobPos=Amg::Vector3D(perGlobalPos.x(), perGlobalPos.y(), perGlobalPos.z()); // on track extrapolation
tmpMat.extrapolationType=0; //First measured point strategy
tmpMat.TrkPnt=nullptr; //No reference point for neutral track for the moment !!!
......
......@@ -61,6 +61,7 @@ namespace Trk {
tmp_refFrameY += perGlobalPos.y() ; // Use hit position itself to get more precise
tmp_refFrameZ += perGlobalPos.z() ; // magnetic field
TrkMatControl tmpMat;
tmpMat.trkSavedLocalVertex.setZero();
tmpMat.trkRefGlobPos=Amg::Vector3D( perGlobalPos.x(), perGlobalPos.y(), perGlobalPos.z());
tmpMat.extrapolationType=2; // Perigee point strategy
tmpMat.TrkPnt=mPer;
......@@ -157,6 +158,7 @@ namespace Trk {
tmp_refFrameY += perGlobalPos.y() ; // Use hit position itself to get more precise
tmp_refFrameZ += perGlobalPos.z() ; // magnetic field
TrkMatControl tmpMat;
tmpMat.trkSavedLocalVertex.setZero();
tmpMat.trkRefGlobPos=Amg::Vector3D( perGlobalPos.x(), perGlobalPos.y(), perGlobalPos.z());
tmpMat.extrapolationType=2; // Perigee point strategy
tmpMat.TrkPnt=nullptr; //No reference point for neutral particle for the moment
......
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