]> 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 fca4beb074ed5fcacb48e24506ecaed57261a541..4e1ae543175cd40e83d63b1ddc9d3473ef69f8f0 100644 (file)
@@ -5,51 +5,54 @@
 
 /* $Id$ */
 #include <TObject.h>
+class TClonesArray;
 class TArrayI;
 
 //___________________________________________
-class AliSTARTdigit: public TObject  {
-////////////////////////////////////////////////////////////////////////
+class AliSTARTdigit: public TObject {
+  ////////////////////////////////////////////////////////////////////////
  public:
-    AliSTARTdigit();
-    virtual ~AliSTARTdigit() {}
-    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
-};
-
+  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
 
 
 
+