]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDsegmentArrayBase.h
Removing warnings (Sun)
[u/mrichter/AliRoot.git] / TRD / AliTRDsegmentArrayBase.h
index ef6bf48e0111acd87b5c574cc25b2fd125284edc..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,13 +22,13 @@ class AliTRDsegmentArrayBase: public TNamed {
  public:
 
   AliTRDsegmentArrayBase();
-  AliTRDsegmentArrayBase(Text_t *classname, Int_t n); 
+  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);  
@@ -39,16 +37,16 @@ class AliTRDsegmentArrayBase: public TNamed {
   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;  };   
+          TClass          *GetClass() const { return fClass; };
+          TTree           *GetTree() const  { return fTree;  };   
 
  protected: