]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - START/AliSTARTdigit.h
function to return the RunLoader instead of AliRun
[u/mrichter/AliRoot.git] / START / AliSTARTdigit.h
index cfe1a8e3d11a96ff1e2f346fa49c226f929facd1..7fd0f0667970c1ca42063bac086463b75e838512 100644 (file)
@@ -1,26 +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 "AliDigit.h"
-#include "AliSTART.h"
+#include <TObject.h>
+class TClonesArray;
+class TArrayI;
 
 //___________________________________________
-class AliSTARTdigit: public AliDigit  {
-////////////////////////////////////////////////////////////////////////
+class AliSTARTdigit: public TObject {
+  ////////////////////////////////////////////////////////////////////////
  public:
-    Int_t fEvent;            // Event number
-    Int_t fTime_average;     // Average time
-    Int_t fTime_diff;  // Time difference
+  AliSTARTdigit();
+  virtual ~AliSTARTdigit();
+  Int_t BestTimeRight() {return fBestTimeRight;}
+  Int_t BestTimeLeft() {return fBestTimeLeft;}
+  Int_t MeanTime() {return fTimeAverage;}
+  Int_t TimeDiff() {return fTimeDiff;}
+  Int_t SumMult() {return fSumMult;}
+  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;}
+  void SetSumMult(Int_t time) {fSumMult=time;}
+  
+  virtual void SetTime (TArrayI &o);
+  virtual void GetTime (TArrayI &o);
+  virtual void SetADC (TArrayI &o);
+  virtual void GetADC (TArrayI &o);
+  
+  virtual void SetTimeAmp (TArrayI &o);
+  virtual void GetTimeAmp (TArrayI &o);
+  virtual void SetADCAmp (TArrayI &o);
+  virtual void GetADCAmp (TArrayI &o);
+ private: 
 
- public:
-    AliSTARTdigit() {}
-    AliSTARTdigit(Int_t *tracks, Int_t *digits);
-    virtual ~AliSTARTdigit() {}
+  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
+  Int_t fSumMult;   //multiplisity
+  
+  ClassDef(AliSTARTdigit,4)  //Digit (Header) object for set:START
+    };
+    
 
-    ClassDef(AliSTARTdigit,1)  //Digit (Header) object for set:ITS
-};
 #endif
+
+
+
+