]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDsegmentArrayBase.h
Removing warnings (Sun)
[u/mrichter/AliRoot.git] / TRD / AliTRDsegmentArrayBase.h
index b5d71881b10a4fb0bb443a2af09476a51e243b5c..c4b7d7e28814cedf7086f4525029ac61aba00a37 100644 (file)
@@ -3,15 +3,13 @@
 /* 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;
@@ -24,32 +22,31 @@ 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 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:
 
@@ -64,17 +61,4 @@ class AliTRDsegmentArrayBase: public TNamed {
 
 };
 
-//_____________________________________________________________________________
-AliTRDsegmentArrayBase &AliTRDsegmentArrayBase
-                        ::operator=(AliTRDsegmentArrayBase &a)
-{
-  //
-  // Assignment operator
-  //
-
-  if (this != &a) a.Copy(*this);
-  return *this;
-
-}
-
 #endif