]> git.uio.no Git - u/mrichter/AliRoot.git/blob - VZERO/AliVZEROdigit.h
Adding a bit that specifies if the online (beam-beam,beam-gas) flags are filled ...
[u/mrichter/AliRoot.git] / VZERO / AliVZEROdigit.h
1 #ifndef ALIVZERODIGIT_H
2 #define ALIVZERODIGIT_H
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"
9
10 //_____________________________________________________________________________
11 class AliVZEROdigit: public AliDigit  {
12
13  public:
14     AliVZEROdigit();
15     AliVZEROdigit(Int_t   PMnumber, Float_t  adc, Float_t time);
16     AliVZEROdigit(Int_t   PMnumber, Float_t  adc, Float_t time, 
17                   Float_t TimeWidth,
18                   Bool_t  Integrator,
19                   Short_t *chargeADC = 0,
20                   Int_t *labels = 0);
21     virtual ~AliVZEROdigit() {};
22     virtual void Print(const Option_t* option="") const;
23
24     enum {kNClocks = 21};
25
26     Int_t   PMNumber()   const {return fPMNumber;}    
27     Float_t ADC()        const {return fADC;}
28     Float_t Time()       const {return fTime;}
29     Float_t Width()      const {return fWidth;} 
30     Bool_t  Integrator() const {return fIntegrator;}
31     Short_t ChargeADC(Int_t clock) const {return (clock >= 0 && clock < kNClocks) ? fChargeADC[clock] : 0;}
32     
33   protected:
34     Int_t   fPMNumber;      // PhotoMultiplier number (0 to 63)
35     Float_t fADC;           // ADC response
36     Float_t fTime;          // Time of Flight
37     Float_t fWidth;         // Width of the time distribution
38     Bool_t  fIntegrator;    // Integrator used
39     Short_t fChargeADC[kNClocks]; // ADC samples as present in raw data
40
41     ClassDef(AliVZEROdigit,5)  // VZERO Digit class
42 };
43
44 #endif