]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFdigit.h
macro to convert Raw to Digits
[u/mrichter/AliRoot.git] / TOF / AliTOFdigit.h
index 11ba9c8e35b9025da0c2445365492b66c75f9738..09675056ec260956314aeb431ae28a52dbbc320a 100644 (file)
@@ -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,11 +12,6 @@
 //                                            //
 ////////////////////////////////////////////////
 
-#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"
@@ -24,7 +24,7 @@ class AliTOFdigit : public AliDigit {
 friend ostream& operator << ( ostream& , const AliTOFdigit&) ;
 
  public:
-  AliTOFdigit(){}
+ AliTOFdigit();
   AliTOFdigit(Int_t* tracks, Int_t* vol, Float_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);
@@ -36,21 +36,25 @@ friend ostream& operator << ( ostream& , const AliTOFdigit&) ;
   void            AddTrack(Int_t track);
   // getters for AliTOFdigit object 
   Float_t GetTdc()    const     {return fTdc;}
+  Float_t GetTdcND()  const     {return fTdcND;}
   Float_t GetAdc()    const     {return fAdc;}
   Int_t   GetSector() const     {return fSector;}
   Int_t   GetPlate()  const     {return fPlate;}
   Int_t   GetStrip()  const     {return fStrip;}
   Int_t   GetPadx()   const     {return fPadx;}
   Int_t   GetPadz()   const     {return fPadz;}
+  Float_t GetToT() const{return fToT;}         //Time Over Threshold
 
   // setters for AliTOFdigit object
   void    SetTdc(Float_t TDC){fTdc = TDC;}
+  void    SetTdcND(Float_t TDCND){fTdcND = TDCND;}
   void    SetAdc(Float_t ADC){fAdc = ADC;}
+  void    SetToT(Float_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:
@@ -62,11 +66,13 @@ protected:
   Float_t fTdc;     // tdc channel value, to be multiplied by
                    // AliTOFGeometry::TdcBinWidth() to have the
                    // time-of-flight measurement
+  Float_t fTdcND;   // simulated (non slewed) time signal
   Float_t fAdc;     // adc channel value, to be multiplie by
                    // AliTOFSDigitizer::GetAdcBin() to have the
                    // 'charge' measurement
+  Float_t  fToT;    // simulated ToT
 
-  ClassDef(AliTOFdigit,2)  // Digit for Time Of Flight
+  ClassDef(AliTOFdigit,3)  // Digit for Time Of Flight
 };
 
 #endif /* ALITOFDIGIT_H */