]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - START/AliSTARTdigit.h
New class to make V2 clusters starting from digits or hits (fast simulation). Origin...
[u/mrichter/AliRoot.git] / START / AliSTARTdigit.h
index 7070499eeb7cd970c224dc319a447a8708cb6bf5..88d75683ce85492b95d4583f8d85aaa017282258 100644 (file)
@@ -5,36 +5,49 @@
 
 /* $Id$ */
 #include <TObject.h>
-#include "AliSTART.h"
+#include <TArrayI.h>
+
 //___________________________________________
 class AliSTARTdigit: public TObject  {
 ////////////////////////////////////////////////////////////////////////
- protected:
-    Int_t fTimeAverage;     // Average time
-    Int_t fTimeDiff;  // Time difference
-
-
  public:
     AliSTARTdigit();
-    AliSTARTdigit(Int_t , Int_t );
     virtual ~AliSTARTdigit() {}
-    void Set(Int_t, Int_t);
-    Int_t GetTime();
-    void MyDump(); 
-
+    void SetTimeDiff(Int_t time) {fTimeDiff=time;}
+    void SetMeanTime(Int_t time) {fTimeAverage=time;}
+    Int_t  GetTimeDiff() {return fTimeDiff;}
+    Int_t  GetMeanTime() {return fTimeAverage;}
+    Int_t  GetBestTimeRight() {return fTimeBestRight ;}
+    Int_t  GetBestTimeLeft() {return fTimeBestLeft ;}
+    Int_t  GetSumADCRight() {return fSumADCRight ;}
+    void Print(); 
+    void SetTimeBestRight( Int_t time) {fTimeBestRight = time;}
+    void SetTimeBestLeft( Int_t time) {fTimeBestLeft = time;}
+    void SetSumADCRight( Int_t ADC) {fSumADCRight = ADC;}
+    //    void SetProcessKoef( Float_t pp) {fProcessKoef = pp;}
+    virtual void SetTimeRight (TArrayI &o);
+    virtual void SetTimeLeft (TArrayI &o);
+    virtual void GetTimeRight (TArrayI &o);
+    virtual void GetTimeLeft (TArrayI &o);
+    virtual void SetADCRight (TArrayI &o);
+    virtual void SetADCLeft (TArrayI &o);
+    virtual void GetADCRight (TArrayI &o);
+    virtual void GetADCLeft (TArrayI &o);
+  private: 
+    //    Float_t fProcessKoef;  // for pp fProcessKoef=1 ; for Pb-Pb - 0.001
+    Int_t fTimeAverage;     // Average time
+    Int_t fTimeDiff;        // Time difference
+    Int_t fTimeBestRight;   //TOF first particle on the right
+    Int_t fTimeBestLeft;    //TOF first particle on the left
+    Int_t fSumADCRight;    // multiplicity on the right side
+    TArrayI *fTimeRight;    // right array's TDC
+    TArrayI *fTimeLeft;     // left arraya's TDC
+    TArrayI *fADCRight;    // right array's ADC
+    TArrayI *fADCLeft;     // left arraya's ADC
 
     ClassDef(AliSTARTdigit,1)  //Digit (Header) object for set:START
 };
 
-inline AliSTARTdigit::AliSTARTdigit(){fTimeAverage=999999;fTimeDiff=999999;}
-inline Int_t AliSTARTdigit::GetTime(){return fTimeDiff;}
-inline void AliSTARTdigit::Set(Int_t Timeav, Int_t Timediff)
-  {fTimeAverage=Timeav; fTimeDiff=Timediff;}
-
-inline void AliSTARTdigit::MyDump(){
-  printf("AliSTARTdigit: fTimeAverage=%d, fTimeDiff=%d\n",
-        fTimeAverage, fTimeDiff);
-}
 
 #endif