Skip to content

Commit 7499dc2

Browse files
clang fixes
clang fixes
1 parent c846f84 commit 7499dc2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

PWGJE/Tasks/jetSpectraCharged.cxx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
#include <Framework/runDataProcessing.h>
3030

3131
#include <THn.h>
32-
#include <random>
3332

3433
#include <cmath>
34+
#include <random>
3535
#include <string>
3636
#include <type_traits>
3737
#include <vector>
@@ -269,10 +269,10 @@ struct JetSpectraCharged {
269269
Filter eventCuts = (nabs(aod::jcollision::posZ) < vertexZCut);
270270
Filter mcEventCuts = (nabs(aod::jmccollision::posZ) < vertexZCut);
271271

272-
273272
template <typename TCollision>
274-
bool randomTestBasedOnCollisionIndex(TCollision collision) {
275-
// int seed = collision.globalIndex();
273+
bool randomTestBasedOnCollisionIndex(TCollision collision)
274+
{
275+
// int seed = collision.globalIndex();
276276
// TRandom3 randomNumber(seed);
277277
// if (randomNumber.Uniform(0, 1) > splitRespVsDataUnfoldClosureRatio) {
278278
// return false;
@@ -281,8 +281,8 @@ struct JetSpectraCharged {
281281

282282
int seed = collision.globalIndex(); // all collisions with same global index will get the same output for randomSplitDistrib()
283283
std::mt19937 gen(seed);
284-
std::uniform_int_distribution<int> randomSplitDistrib(0,99); // gives random int between 0 and 99 included
285-
if (randomSplitDistrib(gen)/100. > splitRespVsDataUnfoldClosureRatio) {
284+
std::uniform_int_distribution<int> randomSplitDistrib(0, 99); // gives random int between 0 and 99 included
285+
if (randomSplitDistrib(gen) / 100. > splitRespVsDataUnfoldClosureRatio) {
286286
return false;
287287
}
288288
return true;
@@ -332,7 +332,7 @@ struct JetSpectraCharged {
332332

333333
float centrality = -1.0;
334334
// checkCentFT0M ? centrality = mccollision.centFT0M() : centrality = mccollision.centFT0C();
335-
checkCentFT0M ? centrality = mccollision.centFT0M() : (collisions.size() > 0 ? collisions.begin().centFT0C() : -1); // once we have mccollisoin.centFT0C we can clean this up
335+
checkCentFT0M ? centrality = mccollision.centFT0M() : (collisions.size() > 0 ? collisions.begin().centFT0C() : -1); // once we have mccollisoin.centFT0C we can clean this up
336336

337337
if (fillHistograms) {
338338
registry.fill(HIST("h_mccollisions"), 0.5);

0 commit comments

Comments
 (0)