Skip to content

Commit 5adebea

Browse files
authored
[EMCAL-688] Fix ClusterLabel.h constructor (#12932)
The order in which the labels and the energy fraction are given inside the addValue are label first, fraction second. However the constructer was expecting energy first and label second. This is now changed in the constructer.
1 parent 9ad1144 commit 5adebea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

DataFormats/Detectors/EMCAL/include/DataFormatsEMCAL/ClusterLabel.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ class ClusterLabel
3838
struct labelWithE {
3939

4040
/// \brief Constructor
41-
labelWithE() : energyFraction(0.), label(0) {}
41+
labelWithE() : label(0), energyFraction(0.) {}
4242

4343
/// \brief Constructor
44-
/// \param e Energy fraction
4544
/// \param l MC label
46-
labelWithE(float e, int l) : energyFraction(e), label(l) {}
45+
/// \param e Energy fraction
46+
labelWithE(int l, float e) : label(l), energyFraction(e) {}
4747

4848
/// \brief Comparison lower operator comparing cells based on energy
4949
///

0 commit comments

Comments
 (0)