Skip to content
Snippets Groups Projects
Commit a4a6a525 authored by Shaun Roe's avatar Shaun Roe
Browse files

Solve coverity 113676

parent 06ce1b77
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#ifndef INDETLOWBETACANDIDATE_H #ifndef INDETLOWBETACANDIDATE_H
#define INDETLOWBETACANDIDATE_H #define INDETLOWBETACANDIDATE_H
#include "GaudiKernel/MsgStream.h" //#include "GaudiKernel/MsgStream.h"
#include "AthenaKernel/CLASS_DEF.h" #include "AthenaKernel/CLASS_DEF.h"
class MsgStream; class MsgStream;
...@@ -23,7 +23,6 @@ namespace InDet{ ...@@ -23,7 +23,6 @@ namespace InDet{
class InDetLowBetaCandidate{ class InDetLowBetaCandidate{
/** default, copy = operator constructors */
public: public:
InDetLowBetaCandidate(); InDetLowBetaCandidate();
...@@ -39,14 +38,13 @@ namespace InDet{ ...@@ -39,14 +38,13 @@ namespace InDet{
); );
virtual ~InDetLowBetaCandidate(); virtual ~InDetLowBetaCandidate();
InDetLowBetaCandidate(const InDetLowBetaCandidate& rhs); InDetLowBetaCandidate(const InDetLowBetaCandidate& rhs) = default;
InDetLowBetaCandidate &operator=(const InDetLowBetaCandidate &); InDetLowBetaCandidate &operator=(const InDetLowBetaCandidate &) = default;
/////////virtual VxCandidate* clone() const; InDetLowBetaCandidate &operator=(InDetLowBetaCandidate &&) = default;
/** Output Method for MsgStream, to be overloaded by child classes */ /** Output Method for MsgStream, to be overloaded by child classes */
virtual MsgStream& dump(MsgStream& sl) const; virtual MsgStream& dump(MsgStream& sl) const;
/** Output Method for std::ostream, to be overloaded by child classes */
//virtual std::ostream& dump(std::ostream& sl) const;
float getTRTCorrBitsOverThreshold() const; float getTRTCorrBitsOverThreshold() const;
float getTRTTrailingEdge() const; float getTRTTrailingEdge() const;
...@@ -70,7 +68,6 @@ namespace InDet{ ...@@ -70,7 +68,6 @@ namespace InDet{
}; //end of class definitions }; //end of class definitions
MsgStream& operator << ( MsgStream& sl, const InDetLowBetaCandidate& sf); MsgStream& operator << ( MsgStream& sl, const InDetLowBetaCandidate& sf);
//std::ostream& operator << ( std::ostream& sl, const InDetLowBetaCandidate& sf);
}//end of namsepace }//end of namsepace
......
...@@ -28,7 +28,7 @@ namespace InDet { ...@@ -28,7 +28,7 @@ namespace InDet {
float TRTLikelihoodError, float TRTLikelihoodError,
float TRTHighTbits):m_TRTCorrBitsOverThreshold(TRTCorrBitsOverThreshold), m_TRTTrailingEdge( TRTTrailingEdge), m_TRTTrailingEdgeError( TRTTrailingEdgeError), m_TRTNLastBits(TRTNLastBits), m_TRTdEdx(TRTdEdx), m_TRTLikelihoodBeta(TRTLikelihoodBeta), m_TRTLikelihoodError(TRTLikelihoodError), m_TRTHighTbits( TRTHighTbits ) {} float TRTHighTbits):m_TRTCorrBitsOverThreshold(TRTCorrBitsOverThreshold), m_TRTTrailingEdge( TRTTrailingEdge), m_TRTTrailingEdgeError( TRTTrailingEdgeError), m_TRTNLastBits(TRTNLastBits), m_TRTdEdx(TRTdEdx), m_TRTLikelihoodBeta(TRTLikelihoodBeta), m_TRTLikelihoodError(TRTLikelihoodError), m_TRTHighTbits( TRTHighTbits ) {}
/**
InDetLowBetaCandidate::InDetLowBetaCandidate(const InDetLowBetaCandidate& rhs) : InDetLowBetaCandidate::InDetLowBetaCandidate(const InDetLowBetaCandidate& rhs) :
m_TRTCorrBitsOverThreshold(rhs.m_TRTCorrBitsOverThreshold), m_TRTCorrBitsOverThreshold(rhs.m_TRTCorrBitsOverThreshold),
m_TRTTrailingEdge(rhs.m_TRTTrailingEdge), m_TRTTrailingEdge(rhs.m_TRTTrailingEdge),
...@@ -54,6 +54,7 @@ namespace InDet { ...@@ -54,6 +54,7 @@ namespace InDet {
} }
return *this; return *this;
} }
**/
InDetLowBetaCandidate::~InDetLowBetaCandidate() {} InDetLowBetaCandidate::~InDetLowBetaCandidate() {}
...@@ -70,20 +71,11 @@ namespace InDet { ...@@ -70,20 +71,11 @@ namespace InDet {
return sl; return sl;
} }
//std::ostrem& InDetLowBetaCandidate::dump(std::ostrem sl) const {
// sl << "Printing InDet::InDetLowBetaCandidate: " << endmsg;
// sl << "TRTCorrBitsOverThreshold: " << m_TRTCorrBitsOverThreshold << endmsg;
// sl << "TRTTrailingEdge: " << m_TRTTrailingEdge << endmsg;
// sl << "TRTTrailingEdgeError: " << m_TRTTrailingEdgeError << endmsg;
// sl << "TRTNLastBits: " << m_TRTNLastBits << endmsg;
// return sl;
// }
MsgStream& operator << ( MsgStream& sl, const InDetLowBetaCandidate& sf) MsgStream& operator << ( MsgStream& sl, const InDetLowBetaCandidate& sf)
{ return sf.dump(sl); } { return sf.dump(sl); }
//std::ostream& operator << ( std::ostream& sl, const InDetLowBetaCandidate& sf)
// { return sf.dump(sl); }
float InDetLowBetaCandidate::getTRTCorrBitsOverThreshold() const float InDetLowBetaCandidate::getTRTCorrBitsOverThreshold() const
{ {
......
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