1 ////////////////////////////////////////////////
3 // Digit class for TOF //
5 // Getters, Setters and member variables //
8 ////////////////////////////////////////////////
12 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
13 * See cxx source for full Copyright notice */
21 class AliTOFdigit : public AliDigit {
23 //overloading of the streamer << operator
24 friend ostream& operator << ( ostream& , const AliTOFdigit&) ;
28 AliTOFdigit(Int_t* tracks, Int_t* vol, Float_t* digit);
29 // new ctor for sdigits
30 AliTOFdigit(Int_t sector, Int_t plate, Int_t strip, Int_t padx, Int_t padz, Float_t tdc, Float_t adc);
32 AliTOFdigit(const AliTOFdigit & digit) ;
33 virtual ~AliTOFdigit(){}
34 void GetLocation(Int_t* Loc) const;
35 Int_t GetTotPad(AliTOFGeometry *tofGeom) const;
36 void AddTrack(Int_t track);
37 // getters for AliTOFdigit object
38 Float_t GetTdc() const {return fTdc;}
39 Float_t GetAdc() const {return fAdc;}
40 Int_t GetSector() const {return fSector;}
41 Int_t GetPlate() const {return fPlate;}
42 Int_t GetStrip() const {return fStrip;}
43 Int_t GetPadx() const {return fPadx;}
44 Int_t GetPadz() const {return fPadz;}
46 // setters for AliTOFdigit object
47 void SetTdc(Float_t TDC){fTdc = TDC;}
48 void SetAdc(Float_t ADC){fAdc = ADC;}
50 //overloading of ==, + operators (summable digits)
52 Bool_t operator==(const AliTOFdigit& digit) const;
53 AliTOFdigit& operator+(AliTOFdigit const &digit) ;
57 Int_t fSector; // number of sector
58 Int_t fPlate; // number of plate
59 Int_t fStrip; // number of strip
60 Int_t fPadx; // number of pad along x
61 Int_t fPadz; // number of pad along z
62 Float_t fTdc; // tdc channel value, to be multiplied by
63 // AliTOFGeometry::TdcBinWidth() to have the
64 // time-of-flight measurement
65 Float_t fAdc; // adc channel value, to be multiplie by
66 // AliTOFSDigitizer::GetAdcBin() to have the
67 // 'charge' measurement
69 ClassDef(AliTOFdigit,2) // Digit for Time Of Flight
72 #endif /* ALITOFDIGIT_H */