Skip to content

Commit 477e5e5

Browse files
committed
TRD PH calib send dummy message even if STOP requested
1 parent 879a84c commit 477e5e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Detectors/TRD/workflow/include/TRDWorkflow/TRDPulseHeightSpec.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "DetectorsBase/GRPGeomHelper.h"
2323
#include "ReconstructionDataFormats/GlobalTrackID.h"
2424
#include "TRDCalibration/PulseHeight.h"
25+
#include "DataFormatsTRD/PHData.h"
2526

2627
using namespace o2::framework;
2728
using GID = o2::dataformats::GlobalTrackID;
@@ -50,6 +51,8 @@ class PuseHeightDevice : public o2::framework::Task
5051
mRunStopRequested = false;
5152
}
5253
if (mRunStopRequested) {
54+
std::vector<PHData> mPHValues{}; // the calibration expects data at every TF, so inject dummy
55+
pc.outputs().snapshot(Output{"TRD", "PULSEHEIGHT", 0, Lifetime::Timeframe}, mPHValues);
5356
return;
5457
}
5558
RecoContainer recoData;

0 commit comments

Comments
 (0)