@@ -74,6 +74,7 @@ struct PidFlowPtCorr {
7474 std::string prefix = " trkQualityOpts" ;
7575 // track selections
7676 O2_DEFINE_CONFIGURABLE (cfgCutEta, float , 0 .8f , " Eta range for tracks" )
77+ O2_DEFINE_CONFIGURABLE (cfgRangeEta, float , 0 .4f , " Eta range for mean Pt" )
7778 O2_DEFINE_CONFIGURABLE (cfgCutPtMin, float , 0 .2f , " Minimal pT for ref tracks" )
7879 O2_DEFINE_CONFIGURABLE (cfgCutPtMax, float , 10 .0f , " Maximal pT for ref tracks" )
7980 // track quality selections for daughter track
@@ -432,7 +433,7 @@ struct PidFlowPtCorr {
432433 if (dnx == 0 )
433434 return ;
434435 val = fGFW ->Calculate (corrconf, 0 , kFALSE ).real () / dnx;
435-
436+
436437 if (std::fabs (val) < 1 )
437438 registry.fill (tarName, cent, ptSum / nch, val, dnx);
438439 return ;
@@ -618,8 +619,7 @@ struct PidFlowPtCorr {
618619 registry.fill (HIST (" hEta" ), track.eta ());
619620 registry.fill (HIST (" hEtaPhiVtxzREF" ), track.phi (), track.eta (), vtxz, wacc);
620621 registry.fill (HIST (" hPt" ), track.pt ());
621- // int ptbin = fPtAxis->FindBin(track.pt()) - 1;
622- if (!((track.pt () > trkQualityOpts.cfgCutPtMin .value ) && (track.pt () < trkQualityOpts.cfgCutPtMax .value )))
622+ if (!((track.pt () > trkQualityOpts.cfgCutPtMin .value ) && (track.pt () < trkQualityOpts.cfgCutPtMax .value )))
623623 continue ;
624624 fGFW ->Fill (track.eta (), 0 , track.phi (), wacc * weff, 1 ); // (eta, ptbin, phi, wacc*weff, bitmask)
625625 if (track.tpcNSigmaPi () < cfgNSigma[0 ])
@@ -638,7 +638,7 @@ struct PidFlowPtCorr {
638638 th3sList[runNumber][hPhiEtaVtxz]->Fill (track.phi (), track.eta (), vtxz);
639639 }
640640
641- if (std::fabs (track.eta ()) < 0.4 ) {
641+ if (std::fabs (track.eta ()) < cfgRangeEta ) {
642642 nch += weff;
643643 nchSquare += weff * weff;
644644 ptSum += weff * track.pt ();
@@ -647,7 +647,7 @@ struct PidFlowPtCorr {
647647 }
648648 }
649649
650- if (nch > 0 ){
650+ if (nch > 0 ) {
651651 int centbin = 0 ;
652652 centbin = fMultAxis ->FindBin (cent);
653653
@@ -677,14 +677,14 @@ struct PidFlowPtCorr {
677677 fillProfile (corrconfigs.at (20 ), HIST (" ka/c32" ), cent);
678678 fillProfile (corrconfigs.at (21 ), HIST (" pr/c32" ), cent);
679679 fillProfile (corrconfigs.at (22 ), HIST (" pr/c32" ), cent);
680-
680+
681681 fillProfile (corrconfigs.at (23 ), HIST (" pi/c34" ), cent);
682682 fillProfile (corrconfigs.at (24 ), HIST (" pi/c34" ), cent);
683683 fillProfile (corrconfigs.at (25 ), HIST (" ka/c34" ), cent);
684684 fillProfile (corrconfigs.at (26 ), HIST (" ka/c34" ), cent);
685685 fillProfile (corrconfigs.at (27 ), HIST (" pr/c34" ), cent);
686686 fillProfile (corrconfigs.at (28 ), HIST (" pr/c34" ), cent);
687-
687+
688688 fillProfilevnpt (corrconfigs.at (0 ), HIST (" covV2Pt" ), cent, ptSum, nch, 0 );
689689 fillProfilevnpt (corrconfigs.at (0 ), HIST (" covV2Pt_diffpt" ), cent, ptSum, nch, cfgMeanPt[centbin]);
690690 fillProfilevnpt (corrconfigs.at (29 ), HIST (" pi/covV2Pt" ), cent, ptSum, nch, 0 );
0 commit comments