/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-/* $Id: AliTRDsegmentArrayBase.h,v */
+/* $Id$ */
////////////////////////////////////////////////
// Manager class for a general Alice segment //
////////////////////////////////////////////////
-#include "TNamed.h"
-#include "TError.h"
-#include "TObjArray.h"
+#include <TNamed.h>
class TTree;
class TBranch;
public:
AliTRDsegmentArrayBase();
- AliTRDsegmentArrayBase(Text_t *classname, Int_t n);
- AliTRDsegmentArrayBase(AliTRDsegmentArrayBase &a);
+ AliTRDsegmentArrayBase(const char *classname, Int_t n);
+ AliTRDsegmentArrayBase(const AliTRDsegmentArrayBase &a);
virtual ~AliTRDsegmentArrayBase();
+ AliTRDsegmentArrayBase &operator=(const AliTRDsegmentArrayBase &a);
- const AliTRDsegmentID *At(Int_t i);
- const AliTRDsegmentID *operator[](Int_t i);
+ const AliTRDsegmentID *At(Int_t i) const;
+ const AliTRDsegmentID *operator[](Int_t i) const;
Bool_t AddSegment(AliTRDsegmentID *segment);
AliTRDsegmentID *AddSegment(Int_t index);
void ClearSegment(Int_t index);
- virtual void Copy(AliTRDsegmentArrayBase &a);
+ virtual void Copy(TObject &a);
virtual Bool_t ConnectTree(const char *treeName);
Bool_t MakeArray(Int_t n);
virtual AliTRDsegmentID *NewSegment();
- virtual void MakeTree();
+ virtual void MakeTree(char *file = 0);
virtual AliTRDsegmentID *LoadSegment(Int_t index);
virtual AliTRDsegmentID *LoadEntry(Int_t index);
virtual void StoreSegment(Int_t index);
Bool_t MakeDictionary(Int_t size);
- Bool_t SetClass(Text_t *classname);
+ Bool_t SetClass(const char *classname);
- TClass *GetClass() { return fClass; };
- TTree *GetTree() { return fTree; };
-
- inline AliTRDsegmentArrayBase &operator=(AliTRDsegmentArrayBase &a);
+ TClass *GetClass() const { return fClass; };
+ TTree *GetTree() const { return fTree; };
protected:
};
-//_____________________________________________________________________________
-AliTRDsegmentArrayBase &AliTRDsegmentArrayBase
- ::operator=(AliTRDsegmentArrayBase &a)
-{
- //
- // Assignment operator
- //
-
- if (this != &a) a.Copy(*this);
- return *this;
-
-}
-
#endif