]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFdigit.h
Corrected t0spread stored in AliTOFHeader object and changed log infos
[u/mrichter/AliRoot.git] / TOF / AliTOFdigit.h
1 #ifndef ALITOFDIGIT_H
2 #define ALITOFDIGIT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 ////////////////////////////////////////////////
7 //                                            //
8 //  Digit class for TOF                       //
9 //  Interface                                 //
10 //  Getters, Setters and member variables     //
11 //  declared here                             //
12 //                                            //
13 ////////////////////////////////////////////////
14
15 /* $Id$ */
16
17 #include "AliDigit.h"
18
19 class AliTOFdigit : public AliDigit {
20   
21   //overloading of the streamer << operator
22   friend ostream& operator << (ostream &, const AliTOFdigit&) ;
23
24  public:
25  AliTOFdigit();
26   AliTOFdigit(Int_t* tracks, Int_t* vol, Int_t* digit);
27 // new ctor for sdigits
28   AliTOFdigit(Int_t sector, Int_t plate, Int_t strip, Int_t padx, Int_t padz, Int_t tdc, Int_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   Int_t   GetTdc()    const     {return fTdc;}
37   Int_t   GetTdcND()  const     {return fTdcND;}
38   Int_t   GetAdc()    const     {return fAdc;}
39   Int_t   GetToT()    const     {return fToT;}  //Time Over Threshold
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;}
45
46   // setters for AliTOFdigit object
47   void    SetTdc(Int_t TDC){fTdc = TDC;}
48   void    SetTdcND(Int_t TDCND){fTdcND = TDCND;}
49   void    SetAdc(Int_t ADC){fAdc = ADC;}
50   void    SetToT(Int_t ToT) {fToT=ToT;}
51
52   //overloading of ==, + operators (summable digits)
53   
54   Bool_t operator==(const AliTOFdigit& digit) const;
55   AliTOFdigit operator+(const AliTOFdigit &digit) ;  
56
57
58 protected:
59   Int_t   fSector;  // number of sector
60   Int_t   fPlate;   // number of plate
61   Int_t   fStrip;   // number of strip
62   Int_t   fPadx;    // number of pad along x
63   Int_t   fPadz;    // number of pad along z
64   Int_t   fTdc;     // tdc channel value, to be multiplied by
65                     // AliTOFGeometry::TdcBinWidth() to have the
66                     // time-of-flight measurement
67   Int_t   fTdcND;   // simulated (non slewed) time signal
68   Int_t   fAdc;     // adc channel value, to be multiplie by
69                     // AliTOFSDigitizer::GetAdcBin() to have the
70                     // 'charge' measurement
71   Int_t   fToT;     // simulated ToT
72
73  private:
74   AliTOFdigit &operator=(const AliTOFdigit& digit);
75
76   ClassDef(AliTOFdigit,5)  // Digit for Time Of Flight
77 };
78
79 #endif /* ALITOFDIGIT_H */