1 // @(#)alimdc:$Name$:$Id$
2 // Author: Fons Rademakers 26/11/99
4 /**************************************************************************
5 * Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
7 * Author: The ALICE Off-line Project. *
8 * Contributors are mentioned in the code where appropriate. *
10 * Permission to use, copy, modify and distribute this software and its *
11 * documentation strictly for non-commercial purposes is hereby granted *
12 * without fee, provided that the above copyright notice appears in all *
13 * copies and that both the copyright notice and this permission notice *
14 * appear in the supporting documentation. The authors make no claims *
15 * about the suitability of this software for any purpose. It is *
16 * provided "as is" without express or implied warranty. *
17 **************************************************************************/
19 //////////////////////////////////////////////////////////////////////////
23 //////////////////////////////////////////////////////////////////////////
25 #include "AliRawNullDB.h"
28 ClassImp(AliRawNullDB)
31 //______________________________________________________________________________
32 AliRawNullDB::AliRawNullDB(AliRawEvent *event,
36 : AliRawDB(event, esd, compress, fileName)
38 // Create a new raw DB that will wrtie to /dev/null.
42 //______________________________________________________________________________
43 const char *AliRawNullDB::GetFileName() const
45 // Return /dev/null as filename.
50 //______________________________________________________________________________
51 Int_t AliRawNullDB::Close()
55 if (!fRawDB) return 0;
57 if (!fRawDB->IsOpen()) return 0;
62 Bool_t error = kFALSE;
63 if (fTree->Write() == 0)
66 if (fESDTree->Write() == 0)
69 // Close DB, this also deletes the fTree
72 Int_t filesize = fRawDB->GetEND();