Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions PWGCF/Flow/TableProducer/zdcQVectors.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ std::vector<double> e(8, 0.); // calibrated energies (a1, a2, a3, a4, c1, c2,
// Define variables needed to do the recentring steps.
double centrality = 0;
int runnumber = 0;
int lastRunNumber = 0;
int lastRunNumber = 0;
std::vector<double> v(3, 0); // vx, vy, vz
bool isSelected = true;

Expand Down Expand Up @@ -385,7 +385,8 @@ struct ZdcQVectors {
// iteration = 0 (Energy calibration) -> step 0 only
// iteration 1,2,3,4,5 = recentering -> 5 steps per iteration (1x 4D + 4x 1D)

if(cal.calibfilesLoaded[iteration][step]) return;
if (cal.calibfilesLoaded[iteration][step])
return;

if (ccdb_dir.empty() == false) {

Expand Down Expand Up @@ -548,9 +549,9 @@ struct ZdcQVectors {
runnumber = foundBC.runNumber();

// load new calibrations for new runs only
if(runnumber != lastRunNumber) {
if (runnumber != lastRunNumber) {
cal.calibfilesLoaded = std::vector<std::vector<bool>>(7, std::vector<bool>(8, false));
lastRunNumber = runnumber;
lastRunNumber = runnumber;
}

const auto& zdcCol = foundBC.zdc();
Expand Down
Loading
Loading