You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOGP(info, "Invalid TPC scaler value {} received for IDC-based scaling! Using CTP fallback", tpcScaler);
63
+
mIDC2CTPFallbackActive = true;
64
+
if (std::abs(getMeanLumi() - mCorrMap->getLumi()) > 1e-6f) {
65
+
// update only mean lumi if changed
66
+
setMeanLumi(mCorrMap->getLumi(), false);
67
+
setUpdatedMap();
68
+
}
69
+
if (std::abs(getMeanLumiRef() - mCorrMapRef->getLumi()) > 1e-6f) {
70
+
// update only mean lumi ref if changed
71
+
setMeanLumiRef(mCorrMapRef->getLumi());
72
+
setUpdatedMapRef();
73
+
}
74
+
setLumiScaleType(1);
75
+
} elseif (mCorrMap) {
76
+
// CTP scaling is not possible, dont do any scaling to avoid applying wrong corrections
77
+
constfloat storedIDC = mCorrMap->getIDC();
78
+
LOGP(warning, "Invalid TPC scaler value {} received for IDC-based scaling! CTP fallback not possible, using stored IDC of {} from the map to avoid applying wrong corrections", tpcScaler, storedIDC);
79
+
setInstLumi(storedIDC);
80
+
}
81
+
} else {
82
+
if (mIDC2CTPFallbackActive) {
83
+
// reset back to normal operation
84
+
LOGP(info, "Valid TPC scaler value {} received, switching back to IDC-based scaling", tpcScaler);
85
+
mIDC2CTPFallbackActive = false;
86
+
setMeanLumi(mCorrMap->getIDC(), false);
87
+
setUpdatedMap();
88
+
setMeanLumiRef(mCorrMapRef->getIDC());
89
+
setUpdatedMapRef();
90
+
setLumiScaleType(2);
91
+
}
92
+
// correct IDC received
93
+
setInstLumi(tpcScaler);
94
+
}
95
+
}
96
+
56
97
if (getLumiCTPAvailable() && mInstCTPLumiOverride <= 0.) {
57
98
if (pc.inputs().get<gsl::span<char>>("CTPLumi").size() == sizeof(o2::ctp::LumiInfo)) {
0 commit comments