@@ -413,7 +413,7 @@ struct PidLongRange {
413413 }
414414
415415 // Choose if it is Nch selection or Centrality selection
416- AxisSpec axisEventClass = { 10 , 0 , 100 , " EventClass " };
416+ AxisSpec axisEventClass{ };
417417
418418 if (cfgSelCollByNch) {
419419 axisEventClass = {axisMultForCorr, " N_{ch}" };
@@ -547,9 +547,9 @@ struct PidLongRange {
547547 }
548548
549549 template <typename TCollision>
550- float getCentrality (TCollision const & collision)
550+ double getCentrality (TCollision const & collision)
551551 {
552- float cent = 0.0 ;
552+ double cent = 0.0 ;
553553 switch (cfgCentEstimator) {
554554 case kCentFT0C :
555555 cent = collision.centFT0C ();
@@ -587,7 +587,7 @@ struct PidLongRange {
587587 }
588588
589589 template <typename TCollision>
590- bool eventSelected (TCollision const & collision, const int mult, const float cent, const bool fillCounter)
590+ bool eventSelected (TCollision const & collision, const int mult, const double cent, const bool fillCounter)
591591 {
592592 if (fillCounter) {
593593 histos.fill (HIST (" hEventCount" ), kFilteredEvents );
@@ -1012,7 +1012,7 @@ struct PidLongRange {
10121012 return true ;
10131013 }
10141014
1015- bool getCentralityWeight (float & weightCent, const float centrality)
1015+ bool getCentralityWeight (float & weightCent, const double centrality)
10161016 {
10171017 float weight = 1 .;
10181018 if (mCentralityWeight ) {
@@ -1165,7 +1165,7 @@ struct PidLongRange {
11651165 }
11661166
11671167 template <typename TTracks, typename TFT0s>
1168- void fillCorrelationsTPCFT0 (const TTracks& tracks1, TFT0s const & ft0, float posZ, int system, float eventClass, int corType, float eventWeight) // function to fill the Output functions (sparse) and the delta eta and delta phi histograms
1168+ void fillCorrelationsTPCFT0 (const TTracks& tracks1, TFT0s const & ft0, float posZ, int system, double eventClass, int corType, float eventWeight) // function to fill the Output functions (sparse) and the delta eta and delta phi histograms
11691169 {
11701170 int fSampleIndex = static_cast <int >(gRandom ->Uniform (0.0 , cfgSampleSize));
11711171
@@ -1271,7 +1271,7 @@ struct PidLongRange {
12711271 }
12721272
12731273 template <typename TFT0s>
1274- void fillCorrelationsFT0AFT0C (TFT0s const & ft0Col1, TFT0s const & ft0Col2, float posZ, int system, float eventClass, float eventWeight) // function to fill the Output functions (sparse) and the delta eta and delta phi histograms
1274+ void fillCorrelationsFT0AFT0C (TFT0s const & ft0Col1, TFT0s const & ft0Col2, float posZ, int system, double eventClass, float eventWeight) // function to fill the Output functions (sparse) and the delta eta and delta phi histograms
12751275 {
12761276 int fSampleIndex = static_cast <int >(gRandom ->Uniform (0.0 , cfgSampleSize));
12771277
@@ -1429,8 +1429,8 @@ struct PidLongRange {
14291429 continue ;
14301430 }
14311431
1432- float cent1 = getCentrality (collision1);
1433- float cent2 = getCentrality (collision2);
1432+ auto cent1 = getCentrality (collision1);
1433+ auto cent2 = getCentrality (collision2);
14341434
14351435 if (cfgUseAdditionalEventCut && !eventSelected (collision1, tracks1.size (), cent1, false )) {
14361436 continue ;
@@ -1456,7 +1456,7 @@ struct PidLongRange {
14561456 loadAlignParam (bc.timestamp ());
14571457 loadCorrection (bc.timestamp ());
14581458
1459- double multiplicity = static_cast <double >(tracks1.size ());
1459+ auto multiplicity = static_cast <double >(tracks1.size ());
14601460
14611461 if (cfgStrictTrackCounter) {
14621462 trackCounter (tracks1, multiplicity);
@@ -1469,7 +1469,7 @@ struct PidLongRange {
14691469 continue ;
14701470 }
14711471
1472- float eventClass = (cfgSelCollByNch) ? multiplicity : cent1;
1472+ auto eventClass = (cfgSelCollByNch) ? multiplicity : cent1;
14731473
14741474 float eventWeight = 1 .0f ;
14751475
@@ -1509,7 +1509,7 @@ struct PidLongRange {
15091509 }
15101510 }
15111511
1512- float cent = getCentrality (collision);
1512+ auto cent = getCentrality (collision);
15131513 if (cfgUseAdditionalEventCut && !eventSelected (collision, tracks.size (), cent, true )) {
15141514 return ;
15151515 }
@@ -1533,7 +1533,7 @@ struct PidLongRange {
15331533
15341534 fillYieldFt0aFt0c (collision, tracks);
15351535
1536- double multiplicity = static_cast <double >(tracks.size ());
1536+ auto multiplicity = static_cast <double >(tracks.size ());
15371537
15381538 if (cfgQABasic) {
15391539 histos.fill (HIST (" Nch" ), multiplicity);
@@ -1554,7 +1554,7 @@ struct PidLongRange {
15541554 return ;
15551555 }
15561556
1557- float eventClass = (cfgSelCollByNch) ? multiplicity : cent;
1557+ auto eventClass = (cfgSelCollByNch) ? multiplicity : cent;
15581558
15591559 const auto & ft0 = collision.foundFT0 ();
15601560
@@ -1589,8 +1589,8 @@ struct PidLongRange {
15891589 continue ;
15901590 }
15911591
1592- float cent1 = getCentrality (collision1);
1593- float cent2 = getCentrality (collision2);
1592+ auto cent1 = getCentrality (collision1);
1593+ auto cent2 = getCentrality (collision2);
15941594
15951595 if (cfgUseAdditionalEventCut && !eventSelected (collision1, tracks1.size (), cent1, false )) {
15961596 continue ;
@@ -1615,7 +1615,7 @@ struct PidLongRange {
16151615 loadAlignParam (bc.timestamp ());
16161616 loadCorrection (bc.timestamp ());
16171617
1618- double multiplicity = static_cast <double >(tracks1.size ());
1618+ auto multiplicity = static_cast <double >(tracks1.size ());
16191619
16201620 if (cfgStrictTrackCounter) {
16211621 trackCounter (tracks1, multiplicity);
@@ -1628,7 +1628,7 @@ struct PidLongRange {
16281628 continue ;
16291629 }
16301630
1631- float eventClass = (cfgSelCollByNch) ? multiplicity : cent1;
1631+ auto eventClass = (cfgSelCollByNch) ? multiplicity : cent1;
16321632
16331633 float eventWeight = 1 .0f ;
16341634
0 commit comments