]>
Commit | Line | Data |
---|---|---|
68861244 | 1 | //////////////////////////////////////////////// |
2 | // // | |
3 | // Digit class for TOF // | |
4 | // Interface // | |
5 | // Getters, Setters and member variables // | |
6 | // declared here // | |
7 | // // | |
8 | //////////////////////////////////////////////// | |
9 | ||
10 | #ifndef ALITOFDIGIT_H | |
11 | #define ALITOFDIGIT_H | |
12 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
13 | * See cxx source for full Copyright notice */ | |
14 | ||
15 | /* $Id$ */ | |
16 | ||
17 | #include "AliDigit.h" | |
18 | ||
19 | class AliTOFdigit : public AliDigit { | |
20 | ||
21 | //overloading of the streamer << operator | |
76bb3d5c | 22 | friend ostream& operator << ( ostream& , const AliTOFdigit&) ; |
68861244 | 23 | |
24 | public: | |
25 | 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); | |
29 | // copy ctor | |
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;} | |
43 | ||
44 | // setters for AliTOFdigit object | |
45 | void SetTdc(Float_t TDC){fTdc = TDC;} | |
46 | void SetAdc(Float_t ADC){fAdc = ADC;} | |
47 | ||
48 | //overloading of ==, + operators (summable digits) | |
49 | ||
50 | Bool_t operator==(const AliTOFdigit& digit) const; | |
51 | AliTOFdigit& operator+(AliTOFdigit const &digit) ; | |
52 | ||
53 | ||
54 | protected: | |
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 values for digit | |
61 | Float_t fAdc; // adc values for digit | |
62 | ||
63 | ClassDef(AliTOFdigit,2) // Digit for Time Of Flight | |
64 | }; | |
65 | ||
66 | #endif /* ALITOFDIGIT_H */ |