X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TOF%2FAliTOFdigit.h;h=6c5281465ae24e7bbfeb0df9528edadc795b3fa8;hb=de8b244081d1ac55431107d2f232cdba97ea7335;hp=528bdbf29b6a98778d2e0792f5d8e18d3c56d848;hpb=76bb3d5c04effdaf48267edcf9b632b3ac68671e;p=u%2Fmrichter%2FAliRoot.git diff --git a/TOF/AliTOFdigit.h b/TOF/AliTOFdigit.h index 528bdbf29b6..6c5281465ae 100644 --- a/TOF/AliTOFdigit.h +++ b/TOF/AliTOFdigit.h @@ -1,3 +1,8 @@ +#ifndef ALITOFDIGIT_H +#define ALITOFDIGIT_H +/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * + * See cxx source for full Copyright notice */ + //////////////////////////////////////////////// // // // Digit class for TOF // @@ -7,25 +12,21 @@ // // //////////////////////////////////////////////// -#ifndef ALITOFDIGIT_H -#define ALITOFDIGIT_H -/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * - * See cxx source for full Copyright notice */ - /* $Id$ */ #include "AliDigit.h" +using std::ostream; class AliTOFdigit : public AliDigit { - + //overloading of the streamer << operator -friend ostream& operator << ( ostream& , const AliTOFdigit&) ; + friend ostream& operator << (ostream &, const AliTOFdigit&) ; public: - AliTOFdigit(){} - AliTOFdigit(Int_t* tracks, Int_t* vol, Float_t* digit); + AliTOFdigit(); + AliTOFdigit(Int_t* tracks, Int_t* vol, Int_t* digit); // new ctor for sdigits - AliTOFdigit(Int_t sector, Int_t plate, Int_t strip, Int_t padx, Int_t padz, Float_t tdc, Float_t adc); + AliTOFdigit(Int_t sector, Int_t plate, Int_t strip, Int_t padx, Int_t padz, Int_t tdc, Int_t adc); // copy ctor AliTOFdigit(const AliTOFdigit & digit) ; virtual ~AliTOFdigit(){} @@ -33,8 +34,10 @@ friend ostream& operator << ( ostream& , const AliTOFdigit&) ; Int_t GetTotPad() const; void AddTrack(Int_t track); // getters for AliTOFdigit object - Float_t GetTdc() const {return fTdc;} - Float_t GetAdc() const {return fAdc;} + Int_t GetTdc() const {return fTdc;} + Int_t GetTdcND() const {return fTdcND;} + Int_t GetAdc() const {return fAdc;} + Int_t GetToT() const {return fToT;} //Time Over Threshold Int_t GetSector() const {return fSector;} Int_t GetPlate() const {return fPlate;} Int_t GetStrip() const {return fStrip;} @@ -42,13 +45,15 @@ friend ostream& operator << ( ostream& , const AliTOFdigit&) ; Int_t GetPadz() const {return fPadz;} // setters for AliTOFdigit object - void SetTdc(Float_t TDC){fTdc = TDC;} - void SetAdc(Float_t ADC){fAdc = ADC;} + void SetTdc(Int_t TDC){fTdc = TDC;} + void SetTdcND(Int_t TDCND){fTdcND = TDCND;} + void SetAdc(Int_t ADC){fAdc = ADC;} + void SetToT(Int_t ToT) {fToT=ToT;} //overloading of ==, + operators (summable digits) Bool_t operator==(const AliTOFdigit& digit) const; - AliTOFdigit& operator+(AliTOFdigit const &digit) ; + AliTOFdigit operator+(const AliTOFdigit &digit) ; protected: @@ -57,10 +62,19 @@ protected: Int_t fStrip; // number of strip Int_t fPadx; // number of pad along x Int_t fPadz; // number of pad along z - Float_t fTdc; // tdc values for digit - Float_t fAdc; // adc values for digit + Int_t fTdc; // tdc channel value, to be multiplied by + // AliTOFGeometry::TdcBinWidth() to have the + // time-of-flight measurement + Int_t fTdcND; // simulated (non slewed) time signal + Int_t fAdc; // adc channel value, to be multiplie by + // AliTOFSDigitizer::GetAdcBin() to have the + // 'charge' measurement + Int_t fToT; // simulated ToT + + private: + AliTOFdigit &operator=(const AliTOFdigit& digit); - ClassDef(AliTOFdigit,2) // Digit for Time Of Flight + ClassDef(AliTOFdigit,5) // Digit for Time Of Flight }; #endif /* ALITOFDIGIT_H */