]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFdigit.h
Corrected array size
[u/mrichter/AliRoot.git] / TOF / AliTOFdigit.h
CommitLineData
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
d3c7bfac 19class AliTOFGeometry;
20
68861244 21class AliTOFdigit : public AliDigit {
22
23 //overloading of the streamer << operator
76bb3d5c 24friend ostream& operator << ( ostream& , const AliTOFdigit&) ;
68861244 25
26 public:
27 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);
31// copy ctor
32 AliTOFdigit(const AliTOFdigit & digit) ;
33 virtual ~AliTOFdigit(){}
34 void GetLocation(Int_t* Loc) const;
d3c7bfac 35 Int_t GetTotPad(AliTOFGeometry *tofGeom) const;
68861244 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;}
45
46 // setters for AliTOFdigit object
47 void SetTdc(Float_t TDC){fTdc = TDC;}
48 void SetAdc(Float_t ADC){fAdc = ADC;}
49
50 //overloading of ==, + operators (summable digits)
51
52 Bool_t operator==(const AliTOFdigit& digit) const;
53 AliTOFdigit& operator+(AliTOFdigit const &digit) ;
54
55
56protected:
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
845fe446 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
68861244 68
69 ClassDef(AliTOFdigit,2) // Digit for Time Of Flight
70};
71
72#endif /* ALITOFDIGIT_H */