]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawRootdDB.cxx
Removing RAW/alimdc.spec, not used
[u/mrichter/AliRoot.git] / RAW / AliRawRootdDB.cxx
index 13d6d9753052992f2769ef4136d7f60a76e52253..89c86e2d78c0fe20d3375ecab4477622c24d1291 100644 (file)
@@ -1,4 +1,4 @@
-// @(#)alimdc:$Name$:$Id$
+// @(#) $Id$
 // Author: Fons Rademakers  26/11/99
 
 /**************************************************************************
@@ -31,15 +31,17 @@ ClassImp(AliRawRootdDB)
 
 
 //______________________________________________________________________________
-AliRawRootdDB::AliRawRootdDB(AliRawEvent *event,
+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.
 
+#if ROOT_VERSION_CODE < ROOT_VERSION(5,99,0)
    if (fRawDB) fRawDB->UseCache(50, 0x200000);  //0x100000 = 1MB)
+#endif
 }
 
 //______________________________________________________________________________
@@ -87,7 +89,7 @@ const char *AliRawRootdDB::GetFileName() const
 }
 
 //______________________________________________________________________________
-Int_t AliRawRootdDB::Close()
+Long64_t AliRawRootdDB::Close()
 {
    // Close raw rootd DB.
 
@@ -99,8 +101,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 +111,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