]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - START/AliSTARTdigit.h
Simplified a bit the DrawView method, thanks to new
[u/mrichter/AliRoot.git] / START / AliSTARTdigit.h
index f98762f86c7905c81873a8d280fbfb51f9701ac3..4e1ae543175cd40e83d63b1ddc9d3473ef69f8f0 100644 (file)
@@ -1,40 +1,58 @@
-#ifndef STARTDIGIT_H
-#define STARTDIGIT_H
+#ifndef ALISTARTDIGIT_H
+#define ALISTARTDIGIT_H
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
 /* $Id$ */
 #include <TObject.h>
-#include "AliSTART.h"
-//___________________________________________
-class AliSTARTdigit: public TObject  {
-////////////////////////////////////////////////////////////////////////
- public:
-    Int_t fTime_average;     // Average time
-    Int_t fTime_diff;  // Time difference
-
+class TClonesArray;
+class TArrayI;
 
+//___________________________________________
+class AliSTARTdigit: public TObject {
+  ////////////////////////////////////////////////////////////////////////
  public:
-    AliSTARTdigit();
-    AliSTARTdigit(Int_t , Int_t );
-    virtual ~AliSTARTdigit() {}
-    void Set(Int_t, Int_t);
-    void MyDump(); 
-
-
-    ClassDef(AliSTARTdigit,1)  //Digit (Header) object for set:START
-};
-
-inline AliSTARTdigit::AliSTARTdigit(){fTime_average=99999.;fTime_diff=99999.;}
-inline void AliSTARTdigit::Set(Int_t Timeav, Int_t Timediff)
-  {fTime_average=Timeav; fTime_diff=Timediff;}
-
-inline void AliSTARTdigit::MyDump(){
-  printf("AliSTARTdigit: fTime_average=%d, fTime_diff=%d\n",
-        fTime_average, fTime_diff);
-}
+  AliSTARTdigit();
+  virtual ~AliSTARTdigit();
+  Int_t BestTimeRight() {return fBestTimeRight;}
+  Int_t BestTimeLeft() {return fBestTimeLeft;}
+  Int_t MeanTime() {return fTimeAverage;}
+  Int_t TimeDiff() {return fTimeDiff;}
+  void SetTimeBestRight( Int_t time) {fBestTimeRight = time;}
+  void SetTimeBestLeft( Int_t time) {fBestTimeLeft = time;}
+  void SetMeanTime(Int_t time) {fTimeAverage=time;}
+  void SetDiffTime(Int_t time) {fTimeDiff=time;}
+  
+  virtual void SetTime (TArrayI &o);
+  virtual void GetTime (TArrayI &o);
+  virtual void SetADC (TArrayI &o);
+  virtual void GetADC (TArrayI &o);
+  virtual void SetSumMult( TArrayI &o);
+  virtual void GetSumMult( TArrayI &o);
+  
+  virtual void SetTimeAmp (TArrayI &o);
+  virtual void GetTimeAmp (TArrayI &o);
+  virtual void SetADCAmp (TArrayI &o);
+  virtual void GetADCAmp (TArrayI &o);
+ private: 
+
+  Int_t fBestTimeRight;        // TOF first particle on the right 
+  Int_t fBestTimeLeft;         // TOF first particle on the left
+  Int_t fTimeAverage;             // mean time (start signal)
+  Int_t fTimeDiff;             // time difference (vertex position)
+
+  TArrayI *fTime;    // array's TDC
+  TArrayI *fADC;    // array's ADC
+  TArrayI *fTimeAmp;    // array's TDC
+  TArrayI *fADCAmp;    // array's ADC
+  TArrayI *fSumMult;   //multiplisity
+  
+  ClassDef(AliSTARTdigit,4)  //Digit (Header) object for set:START
+    };
+    
 
 #endif
 
 
 
+