Skip to content
Merged
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
10 changes: 5 additions & 5 deletions PWGCF/Flow/TableProducer/zdcQVectors.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ struct ZdcQVectors {
cal.shiftprofileA = reinterpret_cast<TProfile3D*>(hcorrList->FindObject("ShiftZDCA"));
if (!cal.shiftprofileC || !cal.shiftprofileA) {
LOGF(error, "Shift profile not found in CCDB for runnumber: %d", runnumber);
} else {
} else {
LOGF(error, "Shift profile found in CCDB for runnumber: %d", runnumber);
cal.isShiftProfileFound = true;
}
Expand All @@ -951,13 +951,13 @@ struct ZdcQVectors {
registry.fill(HIST("QA/ShiftZDCA"), centrality, 1.5, ishift - 0.5, std::cos(ishift * 1.0 * psiZDCA));
}

if(cal.isShiftProfileFound){
if (cal.isShiftProfileFound) {
int binshiftxZDCC = cal.shiftprofileC->FindBin(centrality, 0.5, ishift - 0.5);
int binshiftyZDCC = cal.shiftprofileC->FindBin(centrality, 1.5, ishift - 0.5);
int binshiftxZDCA = cal.shiftprofileA->FindBin(centrality, 0.5, ishift - 0.5);
int binshiftyZDCA = cal.shiftprofileA->FindBin(centrality, 1.5, ishift - 0.5);
int binshiftyZDCA = cal.shiftprofileA->FindBin(centrality, 1.5, ishift - 0.5);

if(binshiftxZDCC > 0 && binshiftyZDCC > 0 && binshiftxZDCA > 0 && binshiftyZDCA > 0){
if (binshiftxZDCC > 0 && binshiftyZDCC > 0 && binshiftxZDCA > 0 && binshiftyZDCA > 0) {
coeffshiftxZDCC = cal.shiftprofileC->GetBinContent(binshiftxZDCC);
coeffshiftyZDCC = cal.shiftprofileC->GetBinContent(binshiftyZDCC);
coeffshiftxZDCA = cal.shiftprofileA->GetBinContent(binshiftxZDCA);
Expand All @@ -973,7 +973,7 @@ struct ZdcQVectors {

// Normalize angles to [-pi, pi]
psiZDCCshift = std::atan2(std::sin(psiZDCCshift), std::cos(psiZDCCshift));
psiZDCAshift = std::atan2(std::sin(psiZDCAshift), std::cos(psiZDCAshift));
psiZDCAshift = std::atan2(std::sin(psiZDCAshift), std::cos(psiZDCAshift));

if (cfgFillCommonRegistry) {
registry.fill(HIST("QA/psiZDCA"), psiZDCA);
Expand Down
Loading