Skip to content
Snippets Groups Projects

MuonAlignErrorBase: Fix cppcheck warnings.

3 files
+ 23
11
Compare changes
  • Side-by-side
  • Inline
Files
3
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
#ifndef MUONALIGNERRORBASE_ALIGNMENTDEVIATION_H
@@ -19,6 +19,10 @@ namespace Trk {
*/
class AlignmentDeviation {
public:
AlignmentDeviation (const std::vector<const Trk::RIO_OnTrack*>& hits, // not owned
std::size_t hitshash,
bool hitshashdone);
virtual ~AlignmentDeviation() {}
/**
@@ -69,6 +73,16 @@ namespace Trk {
bool m_hitshashdone;
};
inline
AlignmentDeviation::AlignmentDeviation (const std::vector<const Trk::RIO_OnTrack*>& hits, // not owned
std::size_t hitshash,
bool hitshashdone)
: m_hits (hits),
m_hitshash (hitshash),
m_hitshashdone (hitshashdone)
{
}
inline void AlignmentDeviation::getListOfHits(std::vector<const Trk::RIO_OnTrack*>& hits) const { hits = m_hits; }
inline std::size_t AlignmentDeviation::getHashOfHits() const { return m_hitshash; }
Loading