Skip to content
Snippets Groups Projects
Commit 3d8d60f9 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

TrigMuonEvent: fix uninitMemberVar cppcheck warning

parent 55244b46
No related branches found
No related tags found
No related merge requests found
// -*- c++ -*-
/*
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
#ifndef TRIGMUONEVENT_TRIGMUONEF_H
......@@ -28,7 +28,7 @@ class TrigMuonEF : public P4IPtCotThPhiM,
public:
/** Default constructor */
TrigMuonEF( );
TrigMuonEF( ) = default;
// /** Default constructor */
TrigMuonEF( double theIPt, double theCotTh, double thePhi, double theM );
......@@ -40,7 +40,7 @@ public:
TrigMuonEF& operator=( const TrigMuonEF& rhs ) = delete;
/** Destructor */
~TrigMuonEF();
virtual ~TrigMuonEF();
/* set methods */
/** Set MuonCode */
......@@ -65,9 +65,9 @@ public:
private:
/** what kind of track we are dealing with (Moore, StandAlone, Combined) */
int m_muonCode;
int m_muonCode{0};
std::string m_roi;
double m_charge;
double m_charge{0};
};
......
/*
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
/*****************************************************************************
......@@ -28,14 +28,9 @@ Nov.2006: A simple AOD containing just track parameters and status for re-runnin
// "Distance" used by the comparison operator(s):
static const double DELTA = 0.001;
TrigMuonEF::TrigMuonEF() :
P4IPtCotThPhiM( 0., 0., 0., 0. ),
m_muonCode(0){
}
TrigMuonEF::TrigMuonEF(double theIPt, double theCotTh, double thePhi, double theM) :
P4IPtCotThPhiM(theIPt , theCotTh, thePhi ,theM ),
m_muonCode(0){
P4IPtCotThPhiM(theIPt , theCotTh, thePhi ,theM ) {
}
/** set data member */
......
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