1 // Author: Cvetan Cheshkov 27/03/2007
3 /**************************************************************************
4 * Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
6 * Author: The ALICE Off-line Project. *
7 * Contributors are mentioned in the code where appropriate. *
9 * Permission to use, copy, modify and distribute this software and its *
10 * documentation strictly for non-commercial purposes is hereby granted *
11 * without fee, provided that the above copyright notice appears in all *
12 * copies and that both the copyright notice and this permission notice *
13 * appear in the supporting documentation. The authors make no claims *
14 * about the suitability of this software for any purpose. It is *
15 * provided "as is" without express or implied warranty. *
16 **************************************************************************/
18 //////////////////////////////////////////////////////////////////////////
21 // A container object which is used in order to write the sub-detector //
22 // raw-data payloads into a separate branches //
24 //////////////////////////////////////////////////////////////////////////
26 #include <TObjArray.h>
28 #include "AliRawDataArray.h"
31 ClassImp(AliRawDataArray)
33 AliRawDataArray::AliRawDataArray():
36 // Default constructor
39 AliRawDataArray::AliRawDataArray(Int_t n):
40 fRawDataArray(new TObjArray(n))
42 // Default constructor
45 AliRawDataArray::~AliRawDataArray()
47 if (fRawDataArray) delete fRawDataArray;
50 void AliRawDataArray::ClearData()
52 if (fRawDataArray) fRawDataArray->Clear();
55 void AliRawDataArray::Add(AliRawData *data)
58 fRawDataArray->Add((TObject *)data);
60 Error("Add", "TObjArray is not initialized! Cannot add raw-data payload!");