#ifndef ALITOFPIDESD_H
#define ALITOFPIDESD_H
+
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
// 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