Skip to content

Commit d4c36c0

Browse files
author
Sushanta Tripathy
committed
Updates related to formatting errors
1 parent 8669749 commit d4c36c0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

PWGCF/TwoParticleCorrelations/Tasks/nucleibalance.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ using namespace o2::framework;
7171
using namespace o2::framework::expressions;
7272
using namespace constants::math;
7373

74-
#define O2_DEFINE_CONFIGURABLE(NAME, TYPE, DEFAULT, HELP) Configurable<TYPE> NAME{#NAME, DEFAULT, HELP};
74+
#define O2_DEFINE_CONFIGURABLE(NAME, TYPE, DEFAULT, HELP) Configurable<TYPE> NAME{#NAME, (DEFAULT), (HELP)};
7575

7676
static constexpr float PairCutOff = -1.f;
77-
static constexpr float CfgPairCutDefaults[1][5] = {{PairCutOff, PairCutOff, PairCutOff, PairCutOff, PairCutOff}};
77+
static constexpr std::array<std::array<float, 5>, 1> CfgPairCutDefaults{{{PairCutOff, PairCutOff, PairCutOff, PairCutOff, PairCutOff}}};
7878

7979
struct Nucleibalance {
8080
SliceCache cache;
@@ -125,7 +125,7 @@ struct Nucleibalance {
125125
O2_DEFINE_CONFIGURABLE(cfgAssociatedSpecies, int, 2, "Associated species for BF: 0 = #pi, 1 = K, 2 = p, 3 = d, -1 = all charged tracks");
126126

127127
// Suggested values: Photon: 0.004; K0 and Lambda: 0.005
128-
Configurable<LabeledArray<float>> cfgPairCut{"cfgPairCut", {CfgPairCutDefaults[0], 5, {"Photon", "K0", "Lambda", "Phi", "Rho"}}, "Pair cuts on various particles"};
128+
Configurable<LabeledArray<float>> cfgPairCut{"cfgPairCut", {CfgPairCutDefaults[0].data(), 5, {"Photon", "K0", "Lambda", "Phi", "Rho"}}, "Pair cuts on various particles"};
129129

130130
O2_DEFINE_CONFIGURABLE(cfgEfficiencyTrigger, std::string, "", "CCDB path to efficiency object for trigger particles")
131131
O2_DEFINE_CONFIGURABLE(cfgEfficiencyAssociated, std::string, "", "CCDB path to efficiency object for associated particles")
@@ -134,7 +134,7 @@ struct Nucleibalance {
134134

135135
O2_DEFINE_CONFIGURABLE(cfgVerbosity, int, 1, "Verbosity level (0 = major, 1 = per collision)")
136136

137-
O2_DEFINE_CONFIGURABLE(cfgMcTriggerPDGs, std::vector<int>, {}, "MC PDG codes to use exclusively as trigger particles and exclude from associated particles. Empty = no selection.")
137+
O2_DEFINE_CONFIGURABLE(cfgMcTriggerPDGs, std::vector<int>, std::vector<int>{}, "MC PDG codes to use exclusively as trigger particles and exclude from associated particles. Empty = no selection.")
138138

139139
ConfigurableAxis axisVertex{"axisVertex", {7, -7, 7}, "vertex axis for histograms"};
140140
ConfigurableAxis axisDeltaPhi{"axisDeltaPhi", {72, -PIHalf, PIHalf * 3}, "delta phi axis for histograms"};
@@ -406,7 +406,7 @@ struct Nucleibalance {
406406

407407
static SimpleTrack makeSimpleTrack(float eta, float phi, float pt, int charge)
408408
{
409-
return SimpleTrack{eta, phi, pt, charge};
409+
return SimpleTrack{.eta = eta, .phi = phi, .pt = pt, .charge = charge};
410410
}
411411

412412
struct MixEventEntry {

0 commit comments

Comments
 (0)