]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDpidESD.h
Go back to raw data version 0 for the time being
[u/mrichter/AliRoot.git] / TRD / AliTRDpidESD.h
index d14bb3dc841e6d09ae50e41a36b8c88c67411a16..974c6e5431eeeb8443f35637203220d16840a777 100644 (file)
@@ -3,25 +3,49 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-//-------------------------------------------------------
-//                    TRD PID class
-// A very naive design... 
-//-------------------------------------------------------
+/* $Id$ */
+
+////////////////////////////////////////////////////////////////////////////
+//                                                                        //
+//  Assigns the PID probabilities based on TRD information to the ESDs    //
+//                                                                        //
+////////////////////////////////////////////////////////////////////////////
+
 #include <Rtypes.h>
 
+#include <TObject.h>
+
 class AliESD;
 
-class AliTRDpidESD {
-public:
-  AliTRDpidESD(Double_t *param);
+class AliTRDpidESD : public TObject {
+
+ public:
+
+  AliTRDpidESD();
+  AliTRDpidESD(const AliTRDpidESD &p);
   virtual ~AliTRDpidESD() {}
-  static Int_t MakePID(AliESD *event);
-  static Double_t Bethe(Double_t bg);
-private:
-  Double_t fMIP;          // dEdx for MIP
-  Double_t fRes;          // relative dEdx resolution
-  Double_t fRange;        // one particle type PID range (in sigmas)
-  ClassDef(AliTRDpidESD,1)   // TRD PID class
+  AliTRDpidESD &operator=(const AliTRDpidESD &p);
+
+  virtual void    Copy(TObject &p) const;
+
+  static  Int_t   MakePID(AliESD *event);
+
+          void    SetCheckTrackStatus(Bool_t status = kTRUE) { fCheckTrackStatus = status; };
+          void    SetCheckKinkStatus(Bool_t status = kTRUE)  { fCheckKinkStatus  = status; };
+          void    SetMinPlane(Int_t plane)                   { fMinPlane         = plane;  };
+
+         Bool_t  GetCheckTrackStatus()                      { return fCheckTrackStatus;   };      
+         Bool_t  GetCheckKinkStatus()                       { return fCheckKinkStatus;    };      
+          Int_t   GetMinPlane()                              { return fMinPlane;           };
+
+ private:
+
+  static  Bool_t  fCheckTrackStatus;    // Enable check on ESD track status
+  static  Bool_t  fCheckKinkStatus;     // Enable check on ESD kink track
+  static  Int_t   fMinPlane;            // Minimum number of planes
+
+  ClassDef(AliTRDpidESD,2)              // TRD PID class
+
 };
 
 #endif