@@ -232,7 +232,7 @@ struct jEPFlowAnalysis {
232232 }
233233 PROCESS_SWITCH (jEPFlowAnalysis, processWithSC, " process with shift-corrected qvectors" , false );
234234
235- void process (MyCollisions::iterator const & coll, soa::Filtered<MyTracks> const & tracks, aod::BCsWithTimestamps const &)
235+ void processDefault (MyCollisions::iterator const & coll, soa::Filtered<MyTracks> const & tracks, aod::BCsWithTimestamps const &)
236236 {
237237 if (cfgAddEvtSel) {
238238 if (std::abs (coll.posZ ()) > cfgVertexZ)
@@ -304,12 +304,12 @@ struct jEPFlowAnalysis {
304304 if (cfgShiftCorr) {
305305 constexpr int kShiftBins = 10 ;
306306 for (int ishift = 1 ; ishift <= kShiftBins ; ishift++) {
307- auto coeffshiftxDet = shiftprofile.at (i)->GetBinContent (shiftprofile.at (i)->FindBin (cent, 0.5 , ishift - 0.5 ));
308- auto coeffshiftyDet = shiftprofile.at (i)->GetBinContent (shiftprofile.at (i)->FindBin (cent, 1.5 , ishift - 0.5 ));
309- auto coeffshiftxRefA = shiftprofile.at (i)->GetBinContent (shiftprofile.at (i)->FindBin (cent, 2.5 , ishift - 0.5 ));
310- auto coeffshiftyRefA = shiftprofile.at (i)->GetBinContent (shiftprofile.at (i)->FindBin (cent, 3 .5 , ishift - 0.5 ));
311- auto coeffshiftxRefB = shiftprofile.at (i)->GetBinContent (shiftprofile.at (i)->FindBin (cent, 4 .5 , ishift - 0.5 ));
312- auto coeffshiftyRefB = shiftprofile.at (i)->GetBinContent (shiftprofile.at (i)->FindBin (cent, 5. 5 , ishift - 0.5 )); // currently only FT0C/TPCpos/TPCneg
307+ auto coeffshiftxDet = shiftprofile.at (i)->GetBinContent (shiftprofile.at (i)->FindBin (cent, 2.0 * detId + 0.5 , ishift - 0.5 ));
308+ auto coeffshiftyDet = shiftprofile.at (i)->GetBinContent (shiftprofile.at (i)->FindBin (cent, 2.0 * detId + 1.5 , ishift - 0.5 ));
309+ auto coeffshiftxRefA = shiftprofile.at (i)->GetBinContent (shiftprofile.at (i)->FindBin (cent, 2.0 * refAId + 0. 5 , ishift - 0.5 ));
310+ auto coeffshiftyRefA = shiftprofile.at (i)->GetBinContent (shiftprofile.at (i)->FindBin (cent, 2.0 * refAId + 1 .5 , ishift - 0.5 ));
311+ auto coeffshiftxRefB = shiftprofile.at (i)->GetBinContent (shiftprofile.at (i)->FindBin (cent, 2.0 * refBId + 0 .5 , ishift - 0.5 ));
312+ auto coeffshiftyRefB = shiftprofile.at (i)->GetBinContent (shiftprofile.at (i)->FindBin (cent, 2.0 * refBId + 1. 5 , ishift - 0.5 ));
313313
314314 deltapsiDet += ((2 . / (1.0 * ishift)) * (-coeffshiftxDet * std::cos (ishift * static_cast <float >(i + 2 ) * eps[0 ]) + coeffshiftyDet * std::sin (ishift * static_cast <float >(i + 2 ) * eps[0 ]))) / static_cast <float >(i + 2 );
315315 deltapsiRefA += ((2 . / (1.0 * ishift)) * (-coeffshiftxRefA * std::cos (ishift * static_cast <float >(i + 2 ) * eps[1 ]) + coeffshiftyRefA * std::sin (ishift * static_cast <float >(i + 2 ) * eps[1 ]))) / static_cast <float >(i + 2 );
@@ -359,7 +359,7 @@ struct jEPFlowAnalysis {
359359 }
360360 }
361361 }
362- PROCESS_SWITCH (jEPFlowAnalysis, process , " default process" , true );
362+ PROCESS_SWITCH (jEPFlowAnalysis, processDefault , " default process" , true );
363363};
364364
365365WorkflowSpec defineDataProcessing (ConfigContext const & cfgc)
0 commit comments