@@ -80,6 +80,7 @@ struct FlowTask {
8080 O2_DEFINE_CONFIGURABLE (cfgUseNch, bool , false , " Use Nch for flow observables" )
8181 O2_DEFINE_CONFIGURABLE (cfgNbootstrap, int , 10 , " Number of subsamples" )
8282 O2_DEFINE_CONFIGURABLE (cfgOutputNUAWeights, bool , false , " Fill and output NUA weights" )
83+ O2_DEFINE_CONFIGURABLE (cfgOutputNUAWeightsRefPt, bool , false , " NUA weights are filled in ref pt bins" )
8384 O2_DEFINE_CONFIGURABLE (cfgEfficiency, std::string, " " , " CCDB path to efficiency object" )
8485 O2_DEFINE_CONFIGURABLE (cfgAcceptance, std::string, " " , " CCDB path to acceptance object" )
8586 O2_DEFINE_CONFIGURABLE (cfgMagnetField, std::string, " GLO/Config/GRPMagField" , " CCDB path to Magnet field object" )
@@ -717,13 +718,19 @@ struct FlowTask {
717718 continue ;
718719 if (cfgRejectionTPCsectorOverlap && !RejectionTPCoverlap (track, Magnetfield))
719720 continue ;
720- if (cfgOutputNUAWeights)
721- fWeights ->Fill (track.phi (), track.eta (), vtxz, track.pt (), cent, 0 );
722- if (!setCurrentParticleWeights (weff, wacc, track.phi (), track.eta (), track.pt (), vtxz))
723- continue ;
724721 bool WithinPtPOI = (cfgCutPtPOIMin < track.pt ()) && (track.pt () < cfgCutPtPOIMax); // within POI pT range
725722 bool WithinPtRef = (cfgCutPtRefMin < track.pt ()) && (track.pt () < cfgCutPtRefMax); // within RF pT range
726723 bool WithinEtaGap08 = (track.eta () >= -0.4 ) && (track.eta () <= 0.4 );
724+ if (cfgOutputNUAWeights) {
725+ if (cfgOutputNUAWeightsRefPt) {
726+ if (WithinPtRef)
727+ fWeights ->Fill (track.phi (), track.eta (), vtxz, track.pt (), cent, 0 );
728+ } else {
729+ fWeights ->Fill (track.phi (), track.eta (), vtxz, track.pt (), cent, 0 );
730+ }
731+ }
732+ if (!setCurrentParticleWeights (weff, wacc, track.phi (), track.eta (), track.pt (), vtxz))
733+ continue ;
727734 registry.fill (HIST (" hPt" ), track.pt ());
728735 if (WithinPtRef) {
729736 registry.fill (HIST (" hPhi" ), track.phi ());
0 commit comments