public:
AliVZEROdigit();
- AliVZEROdigit(Int_t* tracks, Int_t* digits);
- AliVZEROdigit(Int_t /* PMnumber */, Int_t /* ADC */, Int_t /* Time */);
- AliVZEROdigit(Int_t /* PMnumber */, Int_t /* ADC */, Int_t /* Time */,
- Int_t /* TimeWidth*/, Bool_t /* BBFlag */, Bool_t /* BGFlag */);
- AliVZEROdigit(Int_t /* PMnumber */, Int_t /* ADC */, Int_t /* Time */,
- Int_t /* TimeWidth*/, Bool_t /* BBFlag */, Bool_t /* BGFlag */, Bool_t /* Integrator */);
+ 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;
-
- Int_t PMNumber() const {return fPMNumber;}
- Int_t ADC() const {return fADC;}
- Int_t Time() const {return fTime;}
- Int_t Width() const {return fWidth;}
- Bool_t BBFlag() const {return fBBFlag;}
- Bool_t BGFlag() const {return fBGFlag;}
- Bool_t Integrator() const {return fIntegrator;}
-
- private:
- Int_t fTrack; // Track number
+
+ 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;}
protected:
- Int_t fEvent; // Event number
- Int_t fPMNumber; // PhotoMultiplier number (0 to 63)
- Int_t fADC; // ADC response
- Int_t fTime; // Time of Flight
- Int_t fWidth; // Width of the time distribution
- Bool_t fBBFlag; // Beam-Beam Flag given by Yannick in Raw Data only
- Bool_t fBGFlag; // Beam-Gas Flag given by Yannick in Raw Data only
- Bool_t fIntegrator; // Integrator used
-
- ClassDef(AliVZEROdigit,3) //Digit (Header) object for set : VZERO
+ 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