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

CscClusterization: use initializer list (cppcheck)

parent b87f8009
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
*/
// ICscClusterFitter.h
......@@ -74,11 +74,11 @@ public: // Embedded class.
DataMap dataMap; // Extra data
Result(int stat = 0, Muon::CscClusterStatus cstat = Muon::CscStatusUndefined,
Muon::CscTimeStatus tstat = Muon::CscTimeStatusUndefined) {
fitStatus = stat;
clusterStatus = cstat;
timeStatus = tstat;
}
Muon::CscTimeStatus tstat = Muon::CscTimeStatusUndefined) :
fitStatus(stat),
clusterStatus(cstat),
timeStatus(tstat)
{}
Result(const Result&) = default;
~Result() = default;
};
......
/*
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
*/
#ifndef ICscStripFitter_H
#define ICscStripFitter_H
......@@ -42,10 +42,10 @@ public: // Embedded class.
double charge_beforeGainCorr{0.}; // Time (ns) of the peak. without t0 correction
double charge_beforeBPCorr{0.}; // Time (ns) of the peak. without t0 correction
Muon::CscTimeStatus timeStatus{Muon::CscTimeStatusUndefined};
Result(Muon::CscStripStatus sstat = Muon::CscStrStatUndefined, Muon::CscTimeStatus tstat = Muon::CscTimeStatusUndefined) {
stripStatus = sstat;
timeStatus = tstat;
}
Result(Muon::CscStripStatus sstat = Muon::CscStrStatUndefined, Muon::CscTimeStatus tstat = Muon::CscTimeStatusUndefined) :
stripStatus(sstat),
timeStatus(tstat)
{}
Result(const Result&) = default;
~Result() = default;
};
......
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