]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFpidESD.h
1-pass reference to aod branch to the frame, not the pointer; 2-track references...
[u/mrichter/AliRoot.git] / TOF / AliTOFpidESD.h
index 1fd17feb9f15bac8a5d0a465153909cd37ea7197..aa39bb49c277ea3580a0b42360da2b27511bf315 100644 (file)
@@ -1,5 +1,6 @@
 #ifndef ALITOFPIDESD_H
 #define ALITOFPIDESD_H
+
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
@@ -8,31 +9,32 @@
 //   Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch 
 //-------------------------------------------------------
 
-#include <TObject.h>
-#include <TMath.h>
+#include "TObject.h"
+
+class AliESDEvent;
 
 class AliTOFGeometry;
-class AliESD;
 
 class AliTOFpidESD : public TObject {
-enum {kMaxCluster=77777}; //maximal number of the TOF clusters
 public:
-  AliTOFpidESD(){fN=0; fEventN=0;}
+  AliTOFpidESD();
   AliTOFpidESD(Double_t *param);
-  ~AliTOFpidESD(){}
+ ~AliTOFpidESD(){}
+  void     SetMaxMismatchProbability(Double_t p) {fPmax=p;}
+  Double_t GetMaxMismatchProbability() const {return fPmax;}
 
-  Int_t MakePID(AliESD *event);
-  void  SetEventNumber(Int_t n) {fEventN=n;}
-  Int_t GetEventNumber() const {return fEventN;}
+  Int_t MakePID(AliESDEvent *event);
+  Int_t MakePID(AliESDEvent *event, Double_t timeZero);
 
 private:
-  Int_t fN;               // number of the TOF clusters
-  Int_t fEventN;          // event number
+  Double_t GetMismatchProbability(Double_t p,Double_t mass) const;
+
   Double_t fSigma;        // intrinsic TOF resolution
   Double_t fRange;        // one particle type PID range (in sigmas)
+  Double_t fPmax;         // "maximal" probability of mismathing (at ~0.5 GeV/c)
 
-  ClassDef(AliTOFpidESD,1)   // TOF PID class
+  ClassDef(AliTOFpidESD,2)   // TOF PID class
 };
 
 #endif