Skip to content

Commit 06d1e2f

Browse files
matthias-kleinershahor02
authored andcommitted
TPC IDC: Adding check for default GPECS object
1 parent 0fa4db4 commit 06d1e2f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Detectors/TPC/workflow/include/TPCWorkflow/TPCDistributeIDCSpec.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,13 @@ class TPCDistributeIDCSpec : public o2::framework::Task
9393
LOGP(info, "Updating ORBITRESET");
9494
std::fill(mSendCCDBOutputOrbitReset.begin(), mSendCCDBOutputOrbitReset.end(), true);
9595
} else if (matcher == ConcreteDataMatcher("GLO", "GRPECS", 0)) {
96-
LOGP(info, "Updating GRPECS");
97-
std::fill(mSendCCDBOutputGRPECS.begin(), mSendCCDBOutputGRPECS.end(), true);
96+
// check if received object is valid
97+
if (o2::base::GRPGeomHelper::instance().getGRPECS()->getRun() != 0) {
98+
LOGP(info, "Updating GRPECS");
99+
std::fill(mSendCCDBOutputGRPECS.begin(), mSendCCDBOutputGRPECS.end(), true);
100+
} else {
101+
LOGP(info, "Detected default GRPECS object");
102+
}
98103
}
99104
}
100105

0 commit comments

Comments
 (0)