Skip to content
Snippets Groups Projects
Commit aaa0a752 authored by Tadej Novak's avatar Tadej Novak
Browse files

Merge branch 'tpcnv' into 'main'

TrackParticleTPCnv+HGTD_EventTPCnv: fix uninitMemberVar cppcheck warning

See merge request atlas/athena!72864
parents 013497c5 f8b500ba
No related branches found
No related tags found
No related merge requests found
/** /**
* Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration. * Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration.
* *
* @file HGTD_EventTPCnv/HGTD_RDO_p1.h * @file HGTD_EventTPCnv/HGTD_RDO_p1.h
* @author Alexander Leopold <alexander.leopold@cern.ch> * @author Alexander Leopold <alexander.leopold@cern.ch>
...@@ -21,12 +21,12 @@ public: ...@@ -21,12 +21,12 @@ public:
friend class HGTD_RDO_Cnv_p1; friend class HGTD_RDO_Cnv_p1;
private: private:
IdType_t m_rdo_id; IdType_t m_rdo_id{};
float m_toa; float m_toa{};
unsigned int m_tot; unsigned int m_tot{};
unsigned short m_bcid; unsigned short m_bcid{};
unsigned short m_l1_id; unsigned short m_l1_id{};
unsigned short m_l1_a; unsigned short m_l1_a{};
}; };
#endif // HGTD_RDO_P1_H #endif // HGTD_RDO_P1_H
/* /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/ */
#ifndef TRACKPARTICLE_P2_REC_H #ifndef TRACKPARTICLE_P2_REC_H
...@@ -15,17 +15,17 @@ namespace Rec ...@@ -15,17 +15,17 @@ namespace Rec
class TrackParticle_p2 class TrackParticle_p2
{ {
public: public:
TrackParticle_p2():m_fitQuality_m_chiSquared(0),m_fitQuality_m_numberDoF(0){/* nop */} TrackParticle_p2() = default;
ElementLinkInt_p3 m_originalTrack; ElementLinkInt_p3 m_originalTrack;
ElementLinkInt_p3 m_elVxCandidate; ElementLinkInt_p3 m_elVxCandidate;
std::vector< TPObjRef > m_trackParameters; std::vector< TPObjRef > m_trackParameters;
TPObjRef m_trackSummary; TPObjRef m_trackSummary;
float m_fitQuality_m_chiSquared; float m_fitQuality_m_chiSquared{};
float m_fitQuality_m_numberDoF; float m_fitQuality_m_numberDoF{};
unsigned int bitsAndPieces[6]; // contains the 6 things below in the same order unsigned int bitsAndPieces[6]{}; // contains the 6 things below in the same order
// unsigned int m_trackParticleOrigin; // unsigned int m_trackParticleOrigin;
// // data properties related to the TrackInfo // // data properties related to the TrackInfo
// unsigned int m_fitter; // unsigned int m_fitter;
......
/* /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/ */
#ifndef TRACKPARTICLE_P3_REC_H #ifndef TRACKPARTICLE_P3_REC_H
...@@ -15,15 +15,15 @@ namespace Rec ...@@ -15,15 +15,15 @@ namespace Rec
class TrackParticle_p3 class TrackParticle_p3
{ {
public: public:
TrackParticle_p3():m_fitQuality_m_chiSquared{},m_fitQuality_m_numberDoF{}{/* nop */} TrackParticle_p3() = default;
ElementLinkInt_p3 m_originalTrack; ElementLinkInt_p3 m_originalTrack;
ElementLinkInt_p3 m_elVxCandidate; ElementLinkInt_p3 m_elVxCandidate;
std::vector< TPObjRef > m_trackParameters; std::vector< TPObjRef > m_trackParameters;
TPObjRef m_trackSummary; TPObjRef m_trackSummary;
float m_fitQuality_m_chiSquared; float m_fitQuality_m_chiSquared{};
float m_fitQuality_m_numberDoF; float m_fitQuality_m_numberDoF{};
/** bitsAndPieces contains the following: /** bitsAndPieces contains the following:
* unsigned int m_trackParticleOrigin; * unsigned int m_trackParticleOrigin;
...@@ -35,7 +35,7 @@ namespace Rec ...@@ -35,7 +35,7 @@ namespace Rec
* unsigned int m_patternRecognition; * unsigned int m_patternRecognition;
* unsigned int m_extPatternRecognition; * unsigned int m_extPatternRecognition;
*/ */
unsigned int bitsAndPieces[6]; // contains the 6 things below in the same order unsigned int bitsAndPieces[6]{}; // contains the 6 things below in the same order
......
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