]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFSDigit.h
Removing semaphore .done files.
[u/mrichter/AliRoot.git] / TOF / AliTOFSDigit.h
index d92bfdc990f91ab5da079cb742f269beeed4bdbc..d99a1e5e74dc6274d9ae0ca686d3b2393373f936 100644 (file)
@@ -1,44 +1,42 @@
 #ifndef ALITOFSDIGIT_H
 #define ALITOFSDIGIT_H
 
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
 ////////////////////////////////////////////////
 //                                            //
 //  Class for TOF SDigits                     //
 //                                            //
 ////////////////////////////////////////////////
 
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
 /* $Id$ */
 
+#include "TObject.h"
 #include "TArrayF.h"
 #include "TArrayI.h"
-#include "AliDigit.h"
-
-//class TArrayF;
-//class TArrayI;
 
-// number 3 is a legacy from AliDigit object
-const Int_t kMAXDIGITS = 3;
+class AliTOFGeometry;
 
 class AliTOFSDigit : public TObject {
 
   //overloading of the streamer << operator
-//friend ostream& operator << ( ostream& , const AliTOFSDigit&) ;
+  //friend ostream& operator << ( ostream& , const AliTOFSDigit&) ;
 
  public:
- AliTOFSDigit();
 AliTOFSDigit();
   AliTOFSDigit(Int_t tracknum, Int_t* vol, Float_t* digit);
 // new ctor for sdigits
   AliTOFSDigit(Int_t sector, Int_t plate, Int_t strip, Int_t padx, Int_t padz, Float_t tdc, Float_t adc);
 // copy ctor
   AliTOFSDigit(const AliTOFSDigit & digit) ;
+  AliTOFSDigit& operator=(const AliTOFSDigit & digit) ;
   virtual ~AliTOFSDigit();
   void            GetLocation(Int_t* Loc) const;
-  Int_t           GetTotPad() const;
+  Int_t           GetTotPad(AliTOFGeometry *tofGeom) const;
 
-  void Update(Int_t tdc, Int_t adc, Int_t track);
+  void Update(Float_t tdcbin, Int_t tdc, Int_t adc, Int_t track);
+  void Update(AliTOFSDigit* sdig);
 
 // getters for AliTOFSDigit object 
   Int_t   GetNDigits() const    {return fNDigits;}
@@ -52,7 +50,12 @@ class AliTOFSDigit : public TObject {
   Int_t   GetPadx()   const     {return fPadx;}
   Int_t   GetPadz()   const     {return fPadz;}
 
+  enum {
+    kMAXDIGITS = 3 // number 3 is a legacy from AliDigit object
+  };
+
 protected:
+
   Int_t   fSector;  // number of sector
   Int_t   fPlate;   // number of plate
   Int_t   fStrip;   // number of strip
@@ -67,8 +70,8 @@ protected:
 //  Float_t *fTdc;    //[fNDigits] tdc values for sdigit
 //  Float_t *fAdc;    //[fNDigits] adc values for sdigit
 //  Int_t **fTracks;  //[fNDigits] contributing tracks, pointers to
-                    //  arrays with track indices
+                     //arrays with track indices
+
   ClassDef(AliTOFSDigit,1)  // SDigit for Time Of Flight
 };