Skip to content

Commit fcf5d4f

Browse files
authored
[ALICE3,PWGHF] HfHelper: Rule of zero (#14136)
1 parent 5912d93 commit fcf5d4f

File tree

2 files changed

+4
-20
lines changed

2 files changed

+4
-20
lines changed

ALICE3/Utils/utilsHfAlice3.h

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
/// \file HfHelperAlice3.h
12+
/// \file utilsHfAlice3.h
1313
/// \brief Class with helper functions for HF analyses
1414
///
1515
/// \author Marcello Di Costanzo <marcello.di.costanzo@cern.ch>, Polytechnic University of Turin and INFN Turin
@@ -26,15 +26,7 @@ enum CharmHadAlice3 { Lc = 1 };
2626

2727
} // namespace o2::analysis
2828

29-
class HfHelperAlice3
30-
{
31-
public:
32-
/// Default constructor
33-
HfHelperAlice3() = default;
34-
35-
/// Default destructor
36-
~HfHelperAlice3() = default;
37-
29+
struct HfHelperAlice3 {
3830
/// Get candidate mass (ALICE3 HF data model)
3931
/// \tparam TCand candidate type
4032
/// \param cand candidate

PWGHF/Core/HfHelper.h

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,7 @@ concept IsB0ToDstarPiChannel = requires(T candidate) {
3838
candidate.prongD0Id();
3939
};
4040

41-
class HfHelper
42-
{
43-
public:
44-
/// Default constructor
45-
HfHelper() = default;
46-
47-
/// Default destructor
48-
~HfHelper() = default;
49-
41+
struct HfHelper {
5042
// 2-prong
5143

5244
// D0(bar) → π± K∓
@@ -526,7 +518,7 @@ class HfHelper
526518
double etaJpsi = RecoDecay::eta(std::array{candidate.pxProng0(), candidate.pyProng0(), candidate.pzProng0()});
527519
double phiJpsi = RecoDecay::phi(candidate.pxProng0(), candidate.pyProng0());
528520

529-
double etaPi, phiPi;
521+
double etaPi{}, phiPi{};
530522

531523
if (numPi <= 1) {
532524
etaPi = RecoDecay::eta(std::array{candidate.pxProng1(), candidate.pyProng1(), candidate.pzProng1()});

0 commit comments

Comments
 (0)