fMaxEquId(-1),
fVerbose(kFALSE),
fDataType(kAliHLTVoidDataType),
- fSpecification(kAliHLTVoidDataSpec)
+ fSpecification(kAliHLTVoidDataSpec),
+ fSkipEmpty(kFALSE)
{
// see header file for class documentation
// or
} else if (argument.CompareTo("-verbose")==0) {
fVerbose=kTRUE;
+ // -skipempty
+ } else if (argument.CompareTo("-skipempty")==0) {
+ fSkipEmpty=kTRUE;
+
// -datatype
} else if (argument.CompareTo("-datatype")==0) {
if ((bMissingParam=(++i>=argc))) break;
if (pRawReader) {
pRawReader->Reset();
pRawReader->SelectEquipment(-1, fMinEquId, fMaxEquId);
- AliInfo(Form("get event from RawReader %p equipment id range [%d,%d]", pRawReader, fMinEquId, fMaxEquId));
+ if (fVerbose) {
+ AliInfo(Form("get event from RawReader %p equipment id range [%d,%d]", pRawReader, fMinEquId, fMaxEquId));
+ } else {
+ AliDebug(0, Form("get event from RawReader %p equipment id range [%d,%d]", pRawReader, fMinEquId, fMaxEquId));
+ }
list<int> processedIds;
while (pRawReader->ReadHeader() && (iResult>=0 || iResult==-ENOSPC)) {
const AliRawDataHeader* pHeader=pRawReader->GetDataHeader();
}
offset+=readSize;
}
- if (processedIds.size()!=size_t(fMaxEquId-fMinEquId+1)) {
+ if (!fSkipEmpty && processedIds.size()!=size_t(fMaxEquId-fMinEquId+1)) {
// add further empty data blocks
AliRawDataHeader header;
header.fSize=sizeof(AliRawDataHeader);
* the maximum equipmentid including detector offset (default = minid)
* \li -verbose<br>
* print out some more info messages, mainly for the sake of tutorials
+ * \li -skipempty
+ * skip all empty ddls in the specified range; by default, the component
+ * generates and inserts empty data blocks
* \li -datatype <i> datatype dataorigin </i> <br>
* data type ID and origin, e.g. <tt>-datatype DIGITS TPC </tt>
* \li -dataspec <i> specification </i> <br>
/** data specification */
AliHLTUInt32_t fSpecification; //!transient
- ClassDef(AliHLTRawReaderPublisherComponent, 0);
+ /** skip the generation of empty data blocks */
+ Bool_t fSkipEmpty; //!transient
+
+ ClassDef(AliHLTRawReaderPublisherComponent, 1);
};
#endif