]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawRootdDB.cxx
Fix for #88591 Request to commit/port fix in AliRawReaderChain (setter instead of...
[u/mrichter/AliRoot.git] / RAW / AliRawRootdDB.cxx
index 542e3de5d00e43345717e679884efadd5d411d87..74102545bd9fd6eab5cb48edffb1a62ddc21837a 100644 (file)
@@ -1,4 +1,4 @@
-// @(#)alimdc:$Name$:$Id$
+// @(#) $Id$
 // Author: Fons Rademakers  26/11/99
 
 /**************************************************************************
@@ -31,11 +31,11 @@ ClassImp(AliRawRootdDB)
 
 
 //______________________________________________________________________________
-AliRawRootdDB::AliRawRootdDB(AliRawEvent *event,
-                            AliESD *esd,
+AliRawRootdDB::AliRawRootdDB(AliRawEventV2 *event,
+                            AliESDEvent *esd,
                             Int_t compress,
-                            const char* fileName)
-   : AliRawDB(event, esd, compress, fileName)
+                            const char* fileName,Int_t basketsize)
+   : AliRawDB(event, esd, compress, fileName, basketsize)
 {
    // Create a new raw DB that will be accessed via rootd daemon.
 
@@ -87,7 +87,7 @@ const char *AliRawRootdDB::GetFileName() const
 }
 
 //______________________________________________________________________________
-Int_t AliRawRootdDB::Close()
+Long64_t AliRawRootdDB::Close()
 {
    // Close raw rootd DB.
 
@@ -99,8 +99,9 @@ Int_t AliRawRootdDB::Close()
 
    // Write the tree.
    Bool_t error = kFALSE;
-   if (fTree->Write() == 0)
-     error = kTRUE;
+   if (fTree)
+     if (fTree->Write() == 0)
+       error = kTRUE;
    if (fESDTree)
      if (fESDTree->Write() == 0)
        error = kTRUE;
@@ -108,7 +109,9 @@ Int_t AliRawRootdDB::Close()
    // Close DB, this also deletes the fTree
    fRawDB->Close();
 
-   Int_t filesize = fRawDB->GetEND();
+   fTree = NULL;
+
+   Long64_t filesize = fRawDB->GetEND();
 
 #if 0
    // can use services of TFTP