]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDsegmentArrayBase.h
Updated RecParam calibration object (correct subversion)
[u/mrichter/AliRoot.git] / TRD / AliTRDsegmentArrayBase.h
index b5d71881b10a4fb0bb443a2af09476a51e243b5c..8087b86d70855d4eb6578ee356ba5a600bcc9abe 100644 (file)
@@ -3,53 +3,55 @@
 /* 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 // 
-////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////
+//                                                                        //
+//  Manager class for a general Alice segment                             // 
+//                                                                        //
+////////////////////////////////////////////////////////////////////////////
 
-#include "TNamed.h"
-#include "TError.h"
-#include "TObjArray.h"
+#include <TNamed.h>
 
 class TTree;
 class TBranch;
+class TObjArray;
+
 class AliTRDarrayI;
 class AliTRDsegmentID;
-class TObjArray;
  
 class AliTRDsegmentArrayBase: public TNamed {
 
  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 Bool_t           ConnectTree(const char *treeName);
-          Bool_t           MakeArray(Int_t n);    
   virtual AliTRDsegmentID *NewSegment(); 
-  virtual void             MakeTree();           
   virtual AliTRDsegmentID *LoadSegment(Int_t index);
   virtual AliTRDsegmentID *LoadEntry(Int_t index); 
   virtual void             StoreSegment(Int_t index);
+          void             ClearSegment(Int_t index);
+  virtual void             Copy(TObject &a) const;
+  virtual Bool_t           ConnectTree(const char *treeName);
+
+          Bool_t           MakeArray(Int_t n);    
+  virtual void             MakeTree(char *file = 0);           
           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:
 
@@ -64,17 +66,4 @@ class AliTRDsegmentArrayBase: public TNamed {
 
 };
 
-//_____________________________________________________________________________
-AliTRDsegmentArrayBase &AliTRDsegmentArrayBase
-                        ::operator=(AliTRDsegmentArrayBase &a)
-{
-  //
-  // Assignment operator
-  //
-
-  if (this != &a) a.Copy(*this);
-  return *this;
-
-}
-
 #endif