Introduction of the online monitoring code into the alimdc package. Fixed some memory...
[u/mrichter/AliRoot.git] / RAW / AliRawNullDB.cxx
CommitLineData
a197a4ce 1// @(#)alimdc:$Name$:$Id$
2// Author: Fons Rademakers 26/11/99
3
4/**************************************************************************
5 * Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
6 * *
7 * Author: The ALICE Off-line Project. *
8 * Contributors are mentioned in the code where appropriate. *
9 * *
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 **************************************************************************/
18
19//////////////////////////////////////////////////////////////////////////
20// //
21// AliRawNullDB //
22// //
23//////////////////////////////////////////////////////////////////////////
24
25#include "AliRawNullDB.h"
26
27
28ClassImp(AliRawNullDB)
29
30
31//______________________________________________________________________________
a109e73e 32AliRawNullDB::AliRawNullDB(AliRawEvent *event,
33#ifdef USE_HLT
34 AliESD *esd,
35#endif
36 Double_t maxsize, Int_t compress)
37 : AliRawDB(event,
38#ifdef USE_HLT
39 esd,
40#endif
41 maxsize, compress, kFALSE)
a197a4ce 42{
43 // Create a new raw DB that will wrtie to /dev/null.
44
45 if (!Create())
46 MakeZombie();
47}
48
49//______________________________________________________________________________
50const char *AliRawNullDB::GetFileName() const
51{
52 // Return /dev/null as filename.
53
54 return "/dev/null";
55}
56
57//______________________________________________________________________________
58void AliRawNullDB::Close()
59{
60 // Close raw RFIO DB.
61
62 if (!fRawDB) return;
63
64 fRawDB->cd();
65
66 // Write the tree.
67 fTree->Write();
68
69 // Close DB, this also deletes the fTree
70 fRawDB->Close();
71
72 delete fRawDB;
73 fRawDB = 0;
74}