]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RAW/AliTagNullDB.cxx
export AliRawDataHeader.h
[u/mrichter/AliRoot.git] / RAW / AliTagNullDB.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// AliTagNullDB //
22// //
23//////////////////////////////////////////////////////////////////////////
24
25#include "AliTagNullDB.h"
26
27
28ClassImp(AliTagNullDB)
29
30
31//______________________________________________________________________________
32AliTagNullDB::AliTagNullDB(AliRawEventHeader *header, Double_t maxsize) :
33 AliTagDB(header, maxsize, kFALSE)
34{
35 // Create tag db writing to /dev/null.
36
37 if (!Create())
38 MakeZombie();
39}
40
41//______________________________________________________________________________
42const char *AliTagNullDB::GetFileName() const
43{
44 // Return /dev/null as filename.
45
46 return "/dev/null";
47}
48
49//______________________________________________________________________________
50void AliTagNullDB::Close()
51{
52 // Close null tag DB.
53
54 if (!fTagDB) return;
55
56 fTagDB->cd();
57
58 // Write the tree.
59 fTree->Write();
60
61 // Close DB, this also deletes the fTree
62 fTagDB->Close();
63
64 delete fTagDB;
65 fTagDB = 0;
66}