1 #ifndef ALITOFCALIBESD_H
2 #define ALITOFCALIBESD_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 //////////////////////////////////////////////////////////////////
8 // class for TOF calibration:: simulation of uncalibrated data //
9 //////////////////////////////////////////////////////////////////
11 #include "AliESDtrack.h"
15 class AliTOFcalibESD:public AliESDtrack{
18 AliTOFcalibESD(const AliTOFcalibESD& UnCalib);
20 Float_t GetToT() const{return fToT;} //Time Over Threshold
21 Float_t GetTOFsignal() const{return fTOFtime;}
22 Float_t GetTOFsignalND() const{return fTOFsignalND;}
23 Float_t GetIntegratedLength() const{return fIntLen;}
24 void GetExternalCovariance(Double_t cov[15]) const;
25 void GetIntegratedTimes(Double_t exp[AliPID::kSPECIES]) const;
26 Int_t GetCombID()const{return fCombID;}
27 Float_t GetP()const{return fMo;}
28 Int_t GetTOFCalChannel() const {return fTOFCalCh;}
29 void SetToT(Float_t ToT) {fToT=ToT;}
30 void SetTOFtime(Float_t TOFtime) {fTOFtime=TOFtime;}
31 void SetTOFsignalND(Float_t TOFtimeND) {fTOFsignalND=TOFtimeND;}
32 void SetP(Double_t p) {fMo=p;}
33 void SetIntegratedTime(const Double_t *tracktime);
34 void SetCombID(Int_t ID){fCombID = ID;} // 0->pi, 1->K, 2->p
35 void SetTOFCalChannel(Int_t index){fTOFCalChannel=index;}
36 void CopyFromAliESD(const AliESDtrack* track);
37 Bool_t IsSortable() const {return kTRUE;}
38 Int_t Compare(const TObject *uncobj) const;
40 Int_t fCombID; //PID for calibration, this track
41 Int_t fTOFCalCh; //TOF cal Channel
42 Float_t fToT; //ToT signal
43 Float_t fIntLen; //track int. length
44 Float_t fTOFtime;//Time signal
45 Double_t fMo;//momentum
46 Float_t fTOFsignalND; //non-decalibrated time signal
47 Double_t fTrTime[AliPID::kSPECIES]; // TOFs estimated by the tracking
48 Double_t fExtCov[15];// external covariance matrix of the track
50 ClassDef(AliTOFcalibESD,1);
52 #endif // AliTOFcalibESD_H