@@ -230,7 +230,9 @@ struct ZdcQVectors {
230230 std::vector<const char *> capCOORDS = {" X" , " Y" };
231231
232232 AxisSpec axisPsiA = {100 , -PI, PI, " #Psi_{1} ZNA" };
233+ AxisSpec axisPsiAShifted = {100 , -PI, PI, " #Psi_{1} ZNA Shifted" };
233234 AxisSpec axisPsiC = {100 , -PI, PI, " #Psi_{1} ZNC" };
235+ AxisSpec axisPsiCShifted = {100 , -PI, PI, " #Psi_{1} ZNC Shifted" };
234236
235237 // This is the only histogram that is AL~WA~YS filled.
236238 registry.add (" hEventCount" , " Number of Event; Cut; #Events Passed Cut" , {HistType::kTH1D , {{nEventSelections, 0 , nEventSelections}}});
@@ -306,12 +308,16 @@ struct ZdcQVectors {
306308 registry.add <TProfile>(" QA/ZNA_Energy" , " ZNA_Energy" , kTProfile , {{8 , 0 , 8 }});
307309 registry.add <TProfile>(" QA/ZNC_Energy" , " ZNC_Energy" , kTProfile , {{8 , 0 , 8 }});
308310
309- registry.add <TH2>(" QA/psiZDCA" , " psiZDCA" , kTH2D , {axisPsiA, {100 , 0 , 100 }});
310- registry.add <TH2>(" QA/psiZDCA_shift" , " psiZDCA_shift" , kTH2D , {axisPsiA, {100 , 0 , 100 }});
311- registry.add <TH2>(" QA/psiZDCC" , " psiZDCC" , kTH2D , {axisPsiC, {100 , 0 , 100 }});
312- registry.add <TH2>(" QA/psiZDCC_shift" , " psiZDCC_shift" , kTH2D , {axisPsiC, {100 , 0 , 100 }});
313- registry.add <TH2>(" QA/psiZDCAC" , " psiZDCAC" , kTH2D , {axisPsiA, axisPsiC});
314- registry.add <TH2>(" QA/psiZDCAC_shift" , " psiZDCAC_shift" , kTH2D , {axisPsiA, axisPsiC});
311+ registry.add <TH2>(" QA/shift/psiZDCA" , " psiZDCA" , kTH2D , {axisPsiA, {100 , 0 , 100 }});
312+ registry.add <TH2>(" QA/shift/psiZDCA_shift" , " psiZDCA_shift" , kTH2D , {axisPsiA, {100 , 0 , 100 }});
313+ registry.add <TH2>(" QA/shift/psiZDCC" , " psiZDCC" , kTH2D , {axisPsiC, {100 , 0 , 100 }});
314+ registry.add <TH2>(" QA/shift/psiZDCC_shift" , " psiZDCC_shift" , kTH2D , {axisPsiC, {100 , 0 , 100 }});
315+ registry.add <TH2>(" QA/shift/psiZDCAC" , " psiZDCAC" , kTH2D , {axisPsiA, axisPsiC});
316+ registry.add <TH2>(" QA/shift/psiZDCAC_shift" , " psiZDCAC_shift" , kTH2D , {axisPsiA, axisPsiC});
317+
318+ registry.add <TH2>(" QA/shift/DeltaPsiZDCA" , " DeltaPsiZDCA" , kTH2D , {axisPsiAShifted, axisPsiA});
319+ registry.add <TH2>(" QA/shift/DeltaPsiZDCC" , " DeltaPsiZDCC" , kTH2D , {axisPsiCShifted, axisPsiC});
320+ registry.add <TH2>(" QA/shift/DeltaPsiZDCAC" , " DeltaPsiZDCAC" , kTH2D , {axisPsiA, axisPsiC});
315321
316322 registry.add <TProfile>(" QA/before/ZNA_pmC" , " ZNA_pmC" , kTProfile , {{1 , 0 , 1 .}});
317323 registry.add <TProfile>(" QA/before/ZNA_pm1" , " ZNA_pm1" , kTProfile , {{1 , 0 , 1 .}});
@@ -1162,12 +1168,15 @@ struct ZdcQVectors {
11621168 psiZDCAshift = std::atan2 (std::sin (psiZDCAshift), std::cos (psiZDCAshift));
11631169
11641170 if (cfgFillHistRegistry && !cfgFillNothing) {
1165- registry.fill (HIST (" QA/psiZDCA" ), psiZDCA, centrality);
1166- registry.fill (HIST (" QA/psiZDCC" ), psiZDCC, centrality);
1167- registry.fill (HIST (" QA/psiZDCAC" ), psiZDCA, psiZDCC);
1168- registry.fill (HIST (" QA/psiZDCA_shift" ), psiZDCAshift, centrality);
1169- registry.fill (HIST (" QA/psiZDCC_shift" ), psiZDCCshift, centrality);
1170- registry.fill (HIST (" QA/psiZDCAC_shift" ), psiZDCAshift, psiZDCCshift);
1171+ registry.fill (HIST (" QA/shift/psiZDCA" ), psiZDCA, centrality);
1172+ registry.fill (HIST (" QA/shift/psiZDCC" ), psiZDCC, centrality);
1173+ registry.fill (HIST (" QA/shift/psiZDCAC" ), psiZDCA, psiZDCC);
1174+ registry.fill (HIST (" QA/shift/psiZDCA_shift" ), psiZDCAshift, centrality);
1175+ registry.fill (HIST (" QA/shift/psiZDCC_shift" ), psiZDCCshift, centrality);
1176+ registry.fill (HIST (" QA/shift/psiZDCAC_shift" ), psiZDCAshift, psiZDCCshift);
1177+ registry.fill (HIST (" QA/shift/DeltaPsiZDCA" ), psiZDCAshift, psiZDCA);
1178+ registry.fill (HIST (" QA/shift/DeltaPsiZDCC" ), psiZDCCshift, psiZDCC);
1179+ registry.fill (HIST (" QA/shift/DeltaPsiZDCAC" ), psiZDCAshift - psiZDCA, psiZDCCshift - psiZDCC);
11711180 }
11721181
11731182 double qXaShift = std::hypot (qRec[1 ], qRec[0 ]) * std::cos (psiZDCAshift);
@@ -1178,10 +1187,10 @@ struct ZdcQVectors {
11781187 if (isSelected && cfgFillHistRegistry && !cfgFillNothing) {
11791188 fillCommonRegistry<kAfter >(qRec[0 ], qRec[1 ], qRec[2 ], qRec[3 ], v, centrality, rsTimestamp);
11801189 registry.fill (HIST (" QA/centrality_after" ), centrality);
1181- registry.get <TProfile>(HIST (" QA/after/ZNA_Qx" ))->Fill (Form (" %d" , runnumber), qRec[ 0 ] );
1182- registry.get <TProfile>(HIST (" QA/after/ZNA_Qy" ))->Fill (Form (" %d" , runnumber), qRec[ 1 ] );
1183- registry.get <TProfile>(HIST (" QA/after/ZNC_Qx" ))->Fill (Form (" %d" , runnumber), qRec[ 2 ] );
1184- registry.get <TProfile>(HIST (" QA/after/ZNC_Qy" ))->Fill (Form (" %d" , runnumber), qRec[ 3 ] );
1190+ registry.get <TProfile>(HIST (" QA/after/ZNA_Qx" ))->Fill (Form (" %d" , runnumber), qXaShift );
1191+ registry.get <TProfile>(HIST (" QA/after/ZNA_Qy" ))->Fill (Form (" %d" , runnumber), qYaShift );
1192+ registry.get <TProfile>(HIST (" QA/after/ZNC_Qx" ))->Fill (Form (" %d" , runnumber), qXcShift );
1193+ registry.get <TProfile>(HIST (" QA/after/ZNC_Qy" ))->Fill (Form (" %d" , runnumber), qYcShift );
11851194 }
11861195
11871196 spTableZDC (runnumber, cents, v, foundBC.timestamp (), qXaShift, qYaShift, qXcShift, qYcShift, isSelected, eventSelectionFlags);
0 commit comments