Skip to content

Commit f662e86

Browse files
committed
Please consider the following formatting changes
1 parent 1304721 commit f662e86

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

PWGLF/Tasks/Strangeness/strangenessderivedbinnedinfo.cxx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -259,16 +259,18 @@ struct strangenessderivedbinnedinfo {
259259

260260
// Sqrt scaling function
261261
// Author: Marian Ivanov
262-
int codeSqrtScaling(float val, float sigma0, float sigma1, int clampMin, int clampMax) {
262+
int codeSqrtScaling(float val, float sigma0, float sigma1, int clampMin, int clampMax)
263+
{
263264
float code_f = std::asinh((sigma1 * val) / sigma0) / sigma0;
264265
return std::clamp(static_cast<int>(std::round(code_f)), clampMin, clampMax);
265266
}
266267

267-
// Function to decode the sqrt scaling
268+
// Function to decode the sqrt scaling
268269
// Author: Marian Ivanov
269-
float decodeSqrtScaling(int code, float sigma0, float sigma1, int clampMin, int clampMax) {
270-
float code_f = static_cast<float>(code);
271-
return (sigma0 / sigma1) * std::sinh(sigma0 * code_f);
270+
float decodeSqrtScaling(int code, float sigma0, float sigma1, int clampMin, int clampMax)
271+
{
272+
float code_f = static_cast<float>(code);
273+
return (sigma0 / sigma1) * std::sinh(sigma0 * code_f);
272274
}
273275

274276
void init(InitContext const&)
@@ -506,7 +508,7 @@ struct strangenessderivedbinnedinfo {
506508
} else {
507509
centrality = collision.centFT0C();
508510
occupancy = eventSelections.useFT0CbasedOccupancy ? collision.ft0cOccupancyInTimeRange() : collision.trackOccupancyInTimeRange();
509-
if(encodingOpts.useSqrtEncodingForOccupancy)
511+
if (encodingOpts.useSqrtEncodingForOccupancy)
510512
occupancy = std::sqrt(occupancy);
511513
}
512514
histos.fill(HIST("hEventCentrality"), centrality);

0 commit comments

Comments
 (0)