fTriggerDecoder(),
fLastPublishTime(-1),
fCurrentEventTime(-1),
- fPublishDelay(1),
+ fPublishDelay(0),
fSuppressEmptyHists(false),
- fProcessDataEventsOnly(false)
+ fProcessDataEventsOnly(false),
+ fClearAfterPublish(false)
{
/// Default constructor initialises all histogram object pointers to NULL.
if (result != 0) return result;
fLastPublishTime = fCurrentEventTime = -1;
- fPublishDelay = 1;
+ fPublishDelay = 0;
bool pubDelaySet = false;
fSuppressEmptyHists = false;
fProcessDataEventsOnly = false;
+ fClearAfterPublish = false;
fTrackerDecoder.TryRecover(false);
fTriggerDecoder.TryRecover(false);
continue;
}
+ if (strcmp(argv[i], "-clearafterpub") == 0)
+ {
+ fClearAfterPublish = true;
+ continue;
+ }
+
if (strcmp(argv[i], "-tryrecover") == 0)
{
fTrackerDecoder.TryRecover(true);
AliHLTMUONConstants::HistogramDataType(),
AliHLTMUONUtils::DDLNumberToSpec(i)
);
- // clear histogram when published.
- fErrorHist[i]->Reset("M");
+ // If requested, clear histogram when published.
+ if (fClearAfterPublish) fErrorHist[i]->Reset("M");
}
for (int i = 0; i < 20; i++)
{
if (not (fSuppressEmptyHists and fManuHist[i]->GetEntries() == 0))
{
PushBack(fManuHist[i], AliHLTMUONConstants::HistogramDataType(), spec);
- fManuHist[i]->Reset("M");
+ if (fClearAfterPublish) fManuHist[i]->Reset("M");
}
if (not (fSuppressEmptyHists and fSignalHist[i]->GetEntries() == 0))
{
PushBack(fSignalHist[i], AliHLTMUONConstants::HistogramDataType(), spec);
- fSignalHist[i]->Reset("M");
+ if (fClearAfterPublish) fSignalHist[i]->Reset("M");
}
}
fLastPublishTime = fCurrentEventTime;