Adding warning if no data header was found in HLTRawReaderPublisher
authortbreitne <timo.gunther.breitner@cern.ch>
Wed, 28 May 2014 07:41:51 +0000 (09:41 +0200)
committertbreitne <timo.gunther.breitner@cern.ch>
Fri, 30 May 2014 13:09:51 +0000 (15:09 +0200)
HLT/BASE/util/AliHLTRawReaderPublisherComponent.cxx

index 8ac428c..49fa36d 100644 (file)
@@ -317,6 +317,9 @@ int AliHLTRawReaderPublisherComponent::GetEvent(const AliHLTComponentEventData&
        }
        header=&headerV2;
       } else { //assuming V3 even if no header at all was found above
+       if(! headerVersion){
+         AliWarning("No data header found! Creating dummy header for empty blocks assuming CDH v3.");
+       }
         headerV3.fSize=sizeof(AliRawDataHeaderV3);
         const UInt_t* triggermask=pRawReader->GetTriggerPattern();
         if (triggermask) {