// @(#)alimdc:$Name$:$Id$ // Author: Fons Rademakers 26/11/99 /************************************************************************** * Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ ////////////////////////////////////////////////////////////////////////// // // // AliRawNullDB // // // ////////////////////////////////////////////////////////////////////////// #include "AliRawNullDB.h" ClassImp(AliRawNullDB) //______________________________________________________________________________ AliRawNullDB::AliRawNullDB(AliRawEvent *event, #ifdef USE_HLT AliESD *esd, #endif Double_t maxsize, Int_t compress) : AliRawDB(event, #ifdef USE_HLT esd, #endif maxsize, compress, kFALSE) { // Create a new raw DB that will wrtie to /dev/null. if (!Create()) MakeZombie(); } //______________________________________________________________________________ const char *AliRawNullDB::GetFileName() const { // Return /dev/null as filename. return "/dev/null"; } //______________________________________________________________________________ void AliRawNullDB::Close() { // Close raw RFIO DB. if (!fRawDB) return; fRawDB->cd(); // Write the tree. fTree->Write(); // Close DB, this also deletes the fTree fRawDB->Close(); delete fRawDB; fRawDB = 0; }