Introduction of the online monitoring code into the alimdc package. Fixed some memory...
[u/mrichter/AliRoot.git] / HLT / misc / AliL3DDLDataFileHandler.cxx
index f6b2fcb..80a383e 100644 (file)
@@ -56,13 +56,26 @@ void AliL3DDLDataFileHandler::FreeAll()
 {
   // frees all heap memory
   if(fReader) delete fReader;
-  if(fTPCStream) delete fTPCStream;
   fReader = 0;
+  if(fTPCStream) delete fTPCStream;
   fTPCStream = 0;
 }
 
 
 #ifdef use_newio
+Bool_t AliL3DDLDataFileHandler::SetReaderInput(AliRawEvent *rawevent)
+{
+  // sets the input of the reader
+  fEvent=-1;
+  fFilename="";
+  if(fReader) delete fReader;
+  fReader=new AliRawReaderRoot(rawevent);
+  if(fTPCStream) delete fTPCStream;
+  fTPCStream=new AliTPCRawStream(fReader);
+
+  return kTRUE;
+}
+
 Bool_t AliL3DDLDataFileHandler::SetReaderInput(Char_t *name,Int_t event)
 {
   // sets the input of the reader