]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDpid.h
Load gAlice only if it was not loaded before
[u/mrichter/AliRoot.git] / TRD / AliTRDpid.h
index 99da2182ad392d14572909a62940560e43595a30..00d00a1e929bb66e5456c7270395175c2fc248b4 100644 (file)
@@ -4,6 +4,15 @@
  * See cxx source for full Copyright notice                               */
 
 /* $Id$ */                   
+///////////////////////////////////////////////////////////////////////////////
+//                                                                           //
+//   The TRD particle identification base class                              //
+//                                                                           //
+//   Its main purposes are:                                                  //
+//      - Provide I/O framework for all neccessary files                     //
+//      - Assignment of a e/pi propability to a given track                  //
+//                                                                           //
+///////////////////////////////////////////////////////////////////////////////
 
 #include <TNamed.h>
 
@@ -54,16 +63,17 @@ class AliTRDpid : public TNamed {
           void          SetPIDindexMax(Int_t max)           { fPIDindexMax   = max;    };
 
           void          SetThreePadOnly(Bool_t only)        { fThreePadOnly  = only;   };
+          void          SetEvent(Int_t event)               { fEvent         = event;  };
 
-          TObjArray    *GetTrackArray()                     { return fTrackArray;      }; 
-          TObjArray    *GetClusterArray()                   { return fClusterArray;    };
+          TObjArray    *GetTrackArray()               const { return fTrackArray;      }; 
+          TObjArray    *GetClusterArray()             const { return fClusterArray;    };
 
-          Float_t       GetPIDratioMin()                    { return fPIDratioMin;     };
-          Bool_t        GetPIDpurePoints()                  { return fPIDpurePoints;   };
-          Float_t       GetPIDindexMin()                    { return fPIDindexMin;     };
-          Float_t       GetPIDindexMax()                    { return fPIDindexMax;     };
+          Float_t       GetPIDratioMin()              const { return fPIDratioMin;     };
+          Bool_t        GetPIDpurePoints()            const { return fPIDpurePoints;   };
+          Float_t       GetPIDindexMin()              const { return fPIDindexMin;     };
+          Float_t       GetPIDindexMax()              const { return fPIDindexMax;     };
 
-          Bool_t        GetThreePadOnly()                   { return fThreePadOnly;    };
+          Bool_t        GetThreePadOnly()             const { return fThreePadOnly;    };
 
  protected:
 
@@ -80,6 +90,8 @@ class AliTRDpid : public TNamed {
 
   Bool_t          fThreePadOnly;     //  Use only three pad cluster in the charge sum
 
+  Int_t           fEvent;            //  Event number
+
   TObjArray      *fTrackArray;       //! Array containing the tracks
   TObjArray      *fClusterArray;     //! Array containing the cluster
   AliTRDgeometry *fGeometry;         //! The TRD geometry