Skip to content

Commit 388961d

Browse files
committed
fix bug tracker issues (clang-tidy)
1 parent 83fc1c3 commit 388961d

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

PWGHF/D2H/Tasks/taskLc.cxx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,6 @@ struct HfTaskLc {
121121
ConfigurableAxis thnConfigAxisProperDecayTime{"thnConfigAxisProperDecayTime", {200, 0, 2}, "Proper decay time, ps"};
122122
HistogramRegistry registry{"registry", {}};
123123

124-
// Factors for conversion between units
125-
constexpr static float CtToProperDecayTimePs = 1.f / o2::constants::physics::LightSpeedCm2PS;
126-
// Names of folders and suffixes for MC signal histograms
127-
constexpr static std::string_view SignalFolders[] = {"signal", "prompt", "nonprompt"};
128-
constexpr static std::string_view SignalSuffixes[] = {"", "Prompt", "NonPrompt"};
129-
130124
enum MlClasses : int {
131125
MlClassBackground = 0,
132126
MlClassPrompt,
@@ -137,9 +131,16 @@ struct HfTaskLc {
137131
enum SignalClasses : int {
138132
Signal = 0,
139133
Prompt,
140-
NonPrompt
134+
NonPrompt,
135+
NumberOfSignalClasses
141136
};
142137

138+
// Factor for conversion between units
139+
constexpr static float CtToProperDecayTimePs = 1.f / o2::constants::physics::LightSpeedCm2PS;
140+
// Names of folders and suffixes for MC signal histograms
141+
constexpr static std::array<std::string_view, NumberOfSignalClasses> SignalFolders = {"signal", "prompt", "nonprompt"};
142+
constexpr static std::array<std::string_view, NumberOfSignalClasses> SignalSuffixes = {"", "Prompt", "NonPrompt"};
143+
143144
void init(InitContext&)
144145
{
145146
const std::array<bool, 12> doprocess{doprocessDataStd, doprocessDataStdWithFT0C, doprocessDataStdWithFT0M, doprocessDataWithMl, doprocessDataWithMlWithFT0C, doprocessDataWithMlWithFT0M, doprocessMcStd, doprocessMcStdWithFT0C, doprocessMcStdWithFT0M, doprocessMcWithMl, doprocessMcWithMlWithFT0C, doprocessMcWithMlWithFT0M};

PWGHF/TableProducer/treeCreatorLcToPKPi.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,9 +419,9 @@ struct HfTreeCreatorLcToPKPi {
419419
// number showing MC status of the candidate (signal or background, prompt or non-prompt etc.)
420420
enum SigBgStatus : int {
421421
Background = 0, // combinatorial background, at least one of the prongs do not originate from the Lc decay
422-
Prompt, // signal with Lc produced directly in the event
423-
NonPrompt, // signal with Lc produced aftewards the event, e.g. during decay of beauty particle
424-
WrongOrder, // all the prongs are from Lc decay, but proton and pion hypothesis are swapped
422+
Prompt = 1, // signal with Lc produced directly in the event
423+
NonPrompt = 2, // signal with Lc produced aftewards the event, e.g. during decay of beauty particle
424+
WrongOrder = 3, // all the prongs are from Lc decay, but proton and pion hypothesis are swapped
425425
Default = -1 // impossible, should not be the case, to catch logical error if any
426426
};
427427

@@ -952,7 +952,7 @@ struct HfTreeCreatorLcToPKPi {
952952

953953
fillEventProperties<UseCentrality, IsMc>(collisions);
954954

955-
const int64_t candidatesSize = static_cast<int64_t>(candidates.size());
955+
const auto candidatesSize = static_cast<int64_t>(candidates.size());
956956
reserveTables<ReconstructionType>(candidatesSize, IsMc);
957957

958958
int iCand{0};

0 commit comments

Comments
 (0)