More debug printout.
[u/mrichter/AliRoot.git] / VZERO / AliVZEROdigit.h
CommitLineData
f359b593 1#ifndef ALIVZERODIGIT_H
2#define ALIVZERODIGIT_H
47890cd3 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8#include "AliDigit.h"
47890cd3 9
b2501ea3 10//_____________________________________________________________________________
47890cd3 11class AliVZEROdigit: public AliDigit {
12
13 public:
6905601e 14 AliVZEROdigit();
b47d88ce 15 AliVZEROdigit(Int_t PMnumber, Float_t time,
b6fd9c4a 16 Float_t TimeWidth,
30c4ff64 17 Bool_t Integrator,
18 Short_t *chargeADC = 0,
19 Int_t *labels = 0);
b2501ea3 20 virtual ~AliVZEROdigit() {};
8db56859 21 virtual void Print(const Option_t* option="") const;
30c4ff64 22
23 enum {kNClocks = 21};
24
db0db003 25 Int_t PMNumber() const {return fPMNumber;}
b47d88ce 26 Short_t ADC() const {return fChargeADC[kNClocks/2];}
db0db003 27 Float_t Time() const {return fTime;}
28 Float_t Width() const {return fWidth;}
db0db003 29 Bool_t Integrator() const {return fIntegrator;}
30c4ff64 30 Short_t ChargeADC(Int_t clock) const {return (clock >= 0 && clock < kNClocks) ? fChargeADC[clock] : 0;}
6905601e 31
32 protected:
db0db003 33 Int_t fPMNumber; // PhotoMultiplier number (0 to 63)
db0db003 34 Float_t fTime; // Time of Flight
35 Float_t fWidth; // Width of the time distribution
db0db003 36 Bool_t fIntegrator; // Integrator used
30c4ff64 37 Short_t fChargeADC[kNClocks]; // ADC samples as present in raw data
38
7c5d42a2 39 ClassDef(AliVZEROdigit,6) // VZERO Digit class
47890cd3 40};
f359b593 41
47890cd3 42#endif