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 */
19 class AliTOFdigit : public AliDigit {
21 //overloading of the streamer << operator
22 friend ostream& operator << ( ostream& , const AliTOFdigit&) ;
26 AliTOFdigit(Int_t* tracks, Int_t* vol, Float_t* digit);
27 // new ctor for sdigits
28 AliTOFdigit(Int_t sector, Int_t plate, Int_t strip, Int_t padx, Int_t padz, Float_t tdc, Float_t adc);
30 AliTOFdigit(const AliTOFdigit & digit) ;
31 virtual ~AliTOFdigit(){}
32 void GetLocation(Int_t* Loc) const;
33 Int_t GetTotPad() const;
34 void AddTrack(Int_t track);
35 // getters for AliTOFdigit object
36 Float_t GetTdc() const {return fTdc;}
37 Float_t GetAdc() const {return fAdc;}
38 Int_t GetSector() const {return fSector;}
39 Int_t GetPlate() const {return fPlate;}
40 Int_t GetStrip() const {return fStrip;}
41 Int_t GetPadx() const {return fPadx;}
42 Int_t GetPadz() const {return fPadz;}
44 // setters for AliTOFdigit object
45 void SetTdc(Float_t TDC){fTdc = TDC;}
46 void SetAdc(Float_t ADC){fAdc = ADC;}
48 //overloading of ==, + operators (summable digits)
50 Bool_t operator==(const AliTOFdigit& digit) const;
51 AliTOFdigit& operator+(AliTOFdigit const &digit) ;
55 Int_t fSector; // number of sector
56 Int_t fPlate; // number of plate
57 Int_t fStrip; // number of strip
58 Int_t fPadx; // number of pad along x
59 Int_t fPadz; // number of pad along z
60 Float_t fTdc; // tdc channel value, to be multiplied by
61 // AliTOFGeometry::TdcBinWidth() to have the
62 // time-of-flight measurement
63 Float_t fAdc; // adc channel value, to be multiplie by
64 // AliTOFSDigitizer::GetAdcBin() to have the
65 // 'charge' measurement
67 ClassDef(AliTOFdigit,2) // Digit for Time Of Flight
70 #endif /* ALITOFDIGIT_H */