@@ -155,9 +155,9 @@ constexpr double polPrefactorAntiLambda = 3.0/antiLambdaWeakDecayConstant;
155155 /* =============================== */ \
156156 /* 1D TProfiles vs v0phi */ \
157157 /* =============================== */ \
158- X (FOLDER " /pPxStarPhi" , v0phi , PolStarX) \
159- X(FOLDER " /pPyStarPhi" , v0phi , PolStarY) \
160- X(FOLDER " /pPzStarPhi" , v0phi , PolStarZ) \
158+ X (FOLDER " /pPxStarPhi" , v0phiToFillHists , PolStarX) \
159+ X(FOLDER " /pPyStarPhi" , v0phiToFillHists , PolStarY) \
160+ X(FOLDER " /pPzStarPhi" , v0phiToFillHists , PolStarZ) \
161161 /* =============================== */ \
162162 /* 1D TProfiles vs DeltaPhi_jet */ \
163163 /* =============================== */ \
@@ -342,18 +342,18 @@ struct lambdajetpolarizationionsderived {
342342 // ===============================
343343 // 1D TProfiles
344344 // ===============================
345- histos.add ((folder + " /pPxStarPhi" ).c_str (), " pPxStarPhi;#varphi_#Lambda;<P_#Lambda>_x " , kTProfile , {axisConfigurations.axisDeltaPhi });
346- histos.add ((folder + " /pPyStarPhi" ).c_str (), " pPyStarPhi;#varphi_#Lambda;<P_#Lambda>_y " , kTProfile , {axisConfigurations.axisDeltaPhi });
347- histos.add ((folder + " /pPzStarPhi" ).c_str (), " pPzStarPhi;#varphi_#Lambda;<P_#Lambda>_z " , kTProfile , {axisConfigurations.axisDeltaPhi });
348- histos.add ((folder + " /pPxStarDeltaPhi" ).c_str (), " pPxStarDeltaPhi;#Delta#varphi_{jet};<P_#Lambda>_x " , kTProfile , {axisConfigurations.axisDeltaPhi });
349- histos.add ((folder + " /pPyStarDeltaPhi" ).c_str (), " pPyStarDeltaPhi;#Delta#varphi_{jet};<P_#Lambda>_y " , kTProfile , {axisConfigurations.axisDeltaPhi });
350- histos.add ((folder + " /pPzStarDeltaPhi" ).c_str (), " pPzStarDeltaPhi;#Delta#varphi_{jet};<P_#Lambda>_z " , kTProfile , {axisConfigurations.axisDeltaPhi });
345+ histos.add ((folder + " /pPxStarPhi" ).c_str (), " pPxStarPhi;#varphi_{ #Lambda} ;<P_{ #Lambda}>_{x} " , kTProfile , {axisConfigurations.axisDeltaPhi });
346+ histos.add ((folder + " /pPyStarPhi" ).c_str (), " pPyStarPhi;#varphi_{ #Lambda} ;<P_{ #Lambda}>_{y} " , kTProfile , {axisConfigurations.axisDeltaPhi });
347+ histos.add ((folder + " /pPzStarPhi" ).c_str (), " pPzStarPhi;#varphi_{ #Lambda} ;<P_{ #Lambda}>_{z} " , kTProfile , {axisConfigurations.axisDeltaPhi });
348+ histos.add ((folder + " /pPxStarDeltaPhi" ).c_str (), " pPxStarDeltaPhi;#Delta#varphi_{jet};<P_{ #Lambda}>_{x} " , kTProfile , {axisConfigurations.axisDeltaPhi });
349+ histos.add ((folder + " /pPyStarDeltaPhi" ).c_str (), " pPyStarDeltaPhi;#Delta#varphi_{jet};<P_{ #Lambda}>_{y} " , kTProfile , {axisConfigurations.axisDeltaPhi });
350+ histos.add ((folder + " /pPzStarDeltaPhi" ).c_str (), " pPzStarDeltaPhi;#Delta#varphi_{jet};<P_{ #Lambda}>_{z} " , kTProfile , {axisConfigurations.axisDeltaPhi });
351351 // ===============================
352352 // 2D TProfiles (Lambda correlations)
353353 // ===============================
354- histos.add ((folder + " /p2dPxStarDeltaPhiVsLambdaPt" ).c_str (), " p2dPxStarDeltaPhiVsLambdaPt;#Delta#varphi_{jet};#it{p}_{T}^{#Lambda};<P_#Lambda>_x " , kTProfile2D , {axisConfigurations.axisDeltaPhi , axisConfigurations.axisPtSigExtract });
355- histos.add ((folder + " /p2dPyStarDeltaPhiVsLambdaPt" ).c_str (), " p2dPyStarDeltaPhiVsLambdaPt;#Delta#varphi_{jet};#it{p}_{T}^{#Lambda};<P_#Lambda>_y " , kTProfile2D , {axisConfigurations.axisDeltaPhi , axisConfigurations.axisPtSigExtract });
356- histos.add ((folder + " /p2dPzStarDeltaPhiVsLambdaPt" ).c_str (), " p2dPzStarDeltaPhiVsLambdaPt;#Delta#varphi_{jet};#it{p}_{T}^{#Lambda};<P_#Lambda>_z " , kTProfile2D , {axisConfigurations.axisDeltaPhi , axisConfigurations.axisPtSigExtract });
354+ histos.add ((folder + " /p2dPxStarDeltaPhiVsLambdaPt" ).c_str (), " p2dPxStarDeltaPhiVsLambdaPt;#Delta#varphi_{jet};#it{p}_{T}^{#Lambda};<P_{ #Lambda}>_{x} " , kTProfile2D , {axisConfigurations.axisDeltaPhi , axisConfigurations.axisPtSigExtract });
355+ histos.add ((folder + " /p2dPyStarDeltaPhiVsLambdaPt" ).c_str (), " p2dPyStarDeltaPhiVsLambdaPt;#Delta#varphi_{jet};#it{p}_{T}^{#Lambda};<P_{ #Lambda}>_{y} " , kTProfile2D , {axisConfigurations.axisDeltaPhi , axisConfigurations.axisPtSigExtract });
356+ histos.add ((folder + " /p2dPzStarDeltaPhiVsLambdaPt" ).c_str (), " p2dPzStarDeltaPhiVsLambdaPt;#Delta#varphi_{jet};#it{p}_{T}^{#Lambda};<P_{ #Lambda}>_{z} " , kTProfile2D , {axisConfigurations.axisDeltaPhi , axisConfigurations.axisPtSigExtract });
357357 };
358358 // Execute local lambda to register histogram families:
359359 addRingObservableFamily (" Ring" );
@@ -480,6 +480,8 @@ struct lambdajetpolarizationionsderived {
480480 PolStarZ = polPrefactorAntiLambda * protonLikeStarUnit3Vec.Z ();
481481 }
482482
483+ double v0phiToFillHists = wrapToPiFast (v0phi); // A short wrap to reuse some predefined axes
484+
483485 // Fill ring histograms: (1D, lambda 2D correlations and jet 2D correlations):
484486 RING_OBSERVABLE_FILL_LIST (APPLY_HISTO_FILL, " Ring" ) // Notice the usage of macros! If you change the variable names, this WILL break the code!
485487 RING_OBSERVABLE_SQUARED_FILL_LIST (APPLY_HISTO_FILL, " Ring" ) // No, there should NOT be any ";" here! Read the macro definition for an explanation
0 commit comments