Skip to content

Commit 04a1edb

Browse files
TPC: disable VDrift scaling if refTP is negative
1 parent cf8c9dc commit 04a1edb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Detectors/TPC/calibration/src/VDriftHelper.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ void VDriftHelper::extractCCDBInputs(ProcessingContext& pc, bool laser, bool its
156156
if (float tp = mPTHelper.getTP(pc.services().get<o2::framework::TimingInfo>().creation); tp > 0) {
157157
// try to extract refTP if needed
158158
auto& vd = (mVDTPCITSTgl.creationTime < mVDLaser.creationTime) ? mVDLaser : mVDTPCITSTgl;
159-
if (mForceTPScaling) {
159+
if (vd.refTP < 0) { // negative refTP is a user-imposed sentinel to disable T/P scaling for this object
160+
mIsTPScalingPossible = false;
161+
} else if (mForceTPScaling) {
160162
const auto& gaspar = o2::tpc::ParameterGas::Instance();
161163
tp = (gaspar.Temperature > 0 && gaspar.Pressure > 0) ? ((gaspar.Temperature + 273.15) / gaspar.Pressure) : -1;
162164
mIsTPScalingPossible = (tp > 0) && (vd.refTP > 0 || extractTPForVDrift(vd));

0 commit comments

Comments
 (0)