]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - VZERO/AliVZEROdigit.h
fix finding of pad neighbours; remove methods to write them in OCDB
[u/mrichter/AliRoot.git] / VZERO / AliVZEROdigit.h
index 08454eb1253be82b1640281f3fcbca2e0e470ab7..24dfe9c61d92fe0de3b96d6aaa988bfeaa693322 100644 (file)
@@ -7,19 +7,36 @@
 
 #include "AliDigit.h"
 
-//___________________________________________
+//_____________________________________________________________________________
 class AliVZEROdigit: public AliDigit  {
 
  public:
-    AliVZEROdigit() {}
-    AliVZEROdigit(Int_t* tracks, Int_t* digits);
-    virtual ~AliVZEROdigit() {}
+    AliVZEROdigit();
+    AliVZEROdigit(Int_t   PMnumber, Float_t time, 
+                  Float_t TimeWidth,
+                 Bool_t  Integrator,
+                 Short_t *chargeADC = 0,
+                 Int_t *labels = 0);
+    virtual ~AliVZEROdigit() {};
+    virtual void Print(const Option_t* option="") const;
+
+    enum {kNClocks = 21};
+
+    Int_t   PMNumber()   const {return fPMNumber;}    
+    Short_t ADC()        const {return fChargeADC[kNClocks/2];}
+    Float_t Time()       const {return fTime;}
+    Float_t Width()      const {return fWidth;} 
+    Bool_t  Integrator() const {return fIntegrator;}
+    Short_t ChargeADC(Int_t clock) const {return (clock >= 0 && clock < kNClocks) ? fChargeADC[clock] : 0;}
     
-  private:
-    Int_t fEvent;         // Event number
-    Int_t fTrack;         // Track number
-   
-    ClassDef(AliVZEROdigit,1)  //Digit (Header) object for set : VZERO
+  protected:
+    Int_t   fPMNumber;      // PhotoMultiplier number (0 to 63)
+    Float_t fTime;          // Time of Flight
+    Float_t fWidth;         // Width of the time distribution
+    Bool_t  fIntegrator;    // Integrator used
+    Short_t fChargeADC[kNClocks]; // ADC samples as present in raw data
+
+    ClassDef(AliVZEROdigit,6)  // VZERO Digit class
 };
 
 #endif