X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=VZERO%2FAliVZEROdigit.h;h=24dfe9c61d92fe0de3b96d6aaa988bfeaa693322;hb=d3b7d1086a4403e7c7c775934a7f64bc826c9fa8;hp=ccee7be4aca327d57cd13bebce3bc4b41a28b0bc;hpb=61874e870dde06be7a41209bd428d8f553489ba1;p=u%2Fmrichter%2FAliRoot.git diff --git a/VZERO/AliVZEROdigit.h b/VZERO/AliVZEROdigit.h index ccee7be4aca..24dfe9c61d9 100644 --- a/VZERO/AliVZEROdigit.h +++ b/VZERO/AliVZEROdigit.h @@ -1,26 +1,42 @@ -#ifndef VZERODIGIT_H -#define VZERODIGIT_H +#ifndef ALIVZERODIGIT_H +#define ALIVZERODIGIT_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id$ */ #include "AliDigit.h" -#include "AliVZERO.h" -//___________________________________________ +//_____________________________________________________________________________ class AliVZEROdigit: public AliDigit { public: - Int_t fEvent; // Event number - Int_t fTrack; + 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; - - public: - AliVZEROdigit() {} - AliVZEROdigit(Int_t* tracks, Int_t* digits); - virtual ~AliVZEROdigit() {} + 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 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,1) //Digit (Header) object for set : VZERO + ClassDef(AliVZEROdigit,6) // VZERO Digit class }; + #endif