@@ -220,6 +220,7 @@ struct ZdcQVectors {
220220 registry.add (Form (" QA/before/hQ%s%s_vs_vx" , coord, side), Form (" hQ%s%s_vs_vx" , coord, side), {HistType::kTProfile , {axisVx}});
221221 registry.add (Form (" QA/before/hQ%s%s_vs_vy" , coord, side), Form (" hQ%s%s_vs_vy" , coord, side), {HistType::kTProfile , {axisVy}});
222222 registry.add (Form (" QA/before/hQ%s%s_vs_vz" , coord, side), Form (" hQ%s%s_vs_vz" , coord, side), {HistType::kTProfile , {axisVz}});
223+ registry.add (Form (" QA/Q%s%s_vs_iteration" , coord, side), Form (" hQ%s%s_vs_iteration" , coord, side), {HistType::kTH2D , {{25 , 0 , 25 }, axisQ}});
223224
224225 names[0 ].push_back (TString::Format (" hQ%s%s_mean_Cent_V_run" , coord, side));
225226 names[1 ].push_back (TString::Format (" hQ%s%s_mean_cent_run" , coord, side));
@@ -444,8 +445,9 @@ struct ZdcQVectors {
444445 // iteration = 0 (Energy calibration) -> step 0 only
445446 // iteration 1,2,3,4,5 = recentering -> 5 steps per iteration (1x 4D + 4x 1D)
446447
447- if (cal.calibfilesLoaded [cm])
448+ if (cal.calibfilesLoaded [cm]) {
448449 return ;
450+ }
449451
450452 if (ccdb_dir.empty () == false ) {
451453 cal.calibList [cm] = ccdb->getForTimeStamp <TList>(ccdb_dir, timestamp);
@@ -548,7 +550,6 @@ struct ZdcQVectors {
548550
549551 isSelected = true ;
550552
551- // TODO Implement other ZDC estimators
552553 auto cent = collision.centFT0C ();
553554 if (cfgFT0Cvariant1)
554555 cent = collision.centFT0CVariant1 ();
@@ -588,10 +589,16 @@ struct ZdcQVectors {
588589 runnumber = foundBC.runNumber ();
589590
590591 // load new calibrations for new runs only
591- // UPLOAD Energy calibration and vmean in 1 histogram!
592592 if (runnumber != lastRunNumber) {
593+ cal.calibfilesLoaded [0 ] = false ;
594+ cal.calibList [0 ] = nullptr ;
595+
596+ cal.calibfilesLoaded [1 ] = false ;
597+ cal.calibList [1 ] = nullptr ;
598+
593599 cal.calibfilesLoaded [2 ] = false ;
594600 cal.calibList [2 ] = nullptr ;
601+
595602 lastRunNumber = runnumber;
596603 }
597604
@@ -844,6 +851,11 @@ struct ZdcQVectors {
844851 qRec[1 ] -= corrQyA[cor];
845852 qRec[2 ] -= corrQxC[cor];
846853 qRec[3 ] -= corrQyC[cor];
854+
855+ registry.get <TH2>(HIST (" QA/QXA_vs_iteration" ))->Fill (cor, qRec[0 ]);
856+ registry.get <TH2>(HIST (" QA/QYA_vs_iteration" ))->Fill (cor, qRec[1 ]);
857+ registry.get <TH2>(HIST (" QA/QXC_vs_iteration" ))->Fill (cor, qRec[2 ]);
858+ registry.get <TH2>(HIST (" QA/QYC_vs_iteration" ))->Fill (cor, qRec[3 ]);
847859 }
848860
849861 if (isSelected && cfgFillCommonRegistry) {
0 commit comments