New AliTRDcluster constructor
[u/mrichter/AliRoot.git] / TOF / AliTOFcalibESD.h
CommitLineData
6dc9348d 1#ifndef ALITOFCALIBESD_H
2#define ALITOFCALIBESD_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7//////////////////////////////////////////////////////////////////
8// class for TOF calibration:: simulation of uncalibrated data //
9//////////////////////////////////////////////////////////////////
10
6dc9348d 11#include "AliESDtrack.h"
6dc9348d 12
0e46b9ae 13class AliPID;
6dc9348d 14
15class AliTOFcalibESD:public AliESDtrack{
16public:
17 AliTOFcalibESD();
18 AliTOFcalibESD(const AliTOFcalibESD& UnCalib);
19 ~AliTOFcalibESD();
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;}
340693af 27 Float_t GetP()const{return fMo;}
28 Int_t GetTOFCalChannel() const {return fTOFCalCh;}
6dc9348d 29 void SetToT(Float_t ToT) {fToT=ToT;}
30 void SetTOFtime(Float_t TOFtime) {fTOFtime=TOFtime;}
31 void SetTOFsignalND(Float_t TOFtimeND) {fTOFsignalND=TOFtimeND;}
340693af 32 void SetP(Double_t p) {fMo=p;}
6dc9348d 33 void SetIntegratedTime(const Double_t *tracktime);
34 void SetCombID(Int_t ID){fCombID = ID;} // 0->pi, 1->K, 2->p
d4ad0d6b 35 void SetTOFCalChannel(Int_t index){fTOFCalChannel=index;}
6dc9348d 36 void CopyFromAliESD(const AliESDtrack* track);
37 Bool_t IsSortable() const {return kTRUE;}
38 Int_t Compare(const TObject *uncobj) const;
6dc9348d 39private:
340693af 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
6dc9348d 49
50 ClassDef(AliTOFcalibESD,1);
51};
52#endif // AliTOFcalibESD_H