Skip to content

Commit 697356a

Browse files
authored
Merge pull request #42 from alibuild/alibot-cleanup-14378
Please consider the following formatting changes to AliceO2Group#14378
2 parents 50781c4 + 17b4d31 commit 697356a

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

PWGLF/Tasks/Nuspex/neutronSkin.cxx

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,19 @@ struct NeutronSkinTask {
8787
// ==========================================================================
8888
// HELPER FUNCTIONS: INDEX CONVERSION
8989
// ==========================================================================
90-
inline int getChargeIndex(int sign) const {
91-
return (sign > 0) ? 1 : 0; // 0=negative, 1=positive
90+
inline int getChargeIndex(int sign) const
91+
{
92+
return (sign > 0) ? 1 : 0; // 0=negative, 1=positive
9293
}
9394

94-
inline int getEtaSignIndex(double eta) const {
95-
return (eta > 0) ? 1 : 0; // 0=negative eta, 1=positive eta
95+
inline int getEtaSignIndex(double eta) const
96+
{
97+
return (eta > 0) ? 1 : 0; // 0=negative eta, 1=positive eta
9698
}
9799

98-
inline int getMcTypeIndex(bool isGenerated) const {
99-
return isGenerated ? 1 : 0; // 0=Reconstructed, 1=Generated
100+
inline int getMcTypeIndex(bool isGenerated) const
101+
{
102+
return isGenerated ? 1 : 0; // 0=Reconstructed, 1=Generated
100103
}
101104

102105
// ==========================================================================
@@ -205,7 +208,7 @@ struct NeutronSkinTask {
205208
{"hZVertexCorrelation", "Z vertex correlation;MC Z vertex (cm);Reco Z vertex (cm)", {HistType::kTH2F, {{200, -20, 20}, {200, -20, 20}}}}}};
206209

207210
// THnSparse for pT analysis
208-
std::shared_ptr<THnSparse> hPtSparse; // 5D: pT × centrality × charge × eta_sign × mc_type
211+
std::shared_ptr<THnSparse> hPtSparse; // 5D: pT × centrality × charge × eta_sign × mc_type
209212

210213
// ==========================================================================
211214
// INITIALIZATION
@@ -255,8 +258,7 @@ struct NeutronSkinTask {
255258
"hPtSparse",
256259
"6D p_{T} analysis;p_{T} (GeV/c);Centrality (%);Charge;#eta sign;MC Type;#phi (rad)",
257260
HistType::kTHnSparseD,
258-
{axisPtSparse, axisCentSparse, axisChargeSparse, axisEtaSignSparse, axisMcTypeSparse, axisPhiSparse}
259-
);
261+
{axisPtSparse, axisCentSparse, axisChargeSparse, axisEtaSignSparse, axisMcTypeSparse, axisPhiSparse});
260262

261263
if (debugMode) {
262264
LOGF(info, "Created 6D THnSparse:");
@@ -273,8 +275,7 @@ struct NeutronSkinTask {
273275
"hPtSparse",
274276
"5D p_{T} analysis;p_{T} (GeV/c);Centrality (%);Charge;#eta sign;#phi (rad)",
275277
HistType::kTHnSparseD,
276-
{axisPtSparse, axisCentSparse, axisChargeSparse, axisEtaSignSparse, axisPhiSparse}
277-
);
278+
{axisPtSparse, axisCentSparse, axisChargeSparse, axisEtaSignSparse, axisPhiSparse});
278279
}
279280

280281
// Add basic eta histograms separately
@@ -507,8 +508,7 @@ struct NeutronSkinTask {
507508
static_cast<double>(chargeIdx),
508509
static_cast<double>(etaSignIdx),
509510
static_cast<double>(mcTypeIdx),
510-
phi
511-
};
511+
phi};
512512
hPtSparse->Fill(fillArray);
513513
} else {
514514
// 5D filling for data processing (no mc_type, but has phi)
@@ -517,8 +517,7 @@ struct NeutronSkinTask {
517517
centrality,
518518
static_cast<double>(chargeIdx),
519519
static_cast<double>(etaSignIdx),
520-
phi
521-
};
520+
phi};
522521
hPtSparse->Fill(fillArray);
523522
}
524523
}

0 commit comments

Comments
 (0)