]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AD/AliADdigit.h
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / AD / AliADdigit.h
1 #ifndef ALIADDIGIT_H
2 #define ALIADDIGIT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id: AliADdigit.h  $ */
7
8 #include "AliDigit.h"
9 #include "AliADConst.h"
10
11 //_____________________________________________________________________________
12 class AliADdigit: public AliDigit  {
13
14 public:
15     AliADdigit();
16     AliADdigit(Int_t   PMnumber, Float_t time, 
17                   Float_t TimeWidth,
18                   Bool_t  Integrator,
19                   Short_t *chargeADC = 0,
20                   Int_t *labels = 0);
21     virtual ~AliADdigit() {};
22     virtual void Print(const Option_t* option="") const;
23
24     Int_t   PMNumber()   const {return fPMNumber;}    
25     Short_t ADC()        const {return fChargeADC[kNClocks/2];}
26     Float_t Time()       const {return fTime;}
27     Float_t Width()      const {return fWidth;} 
28     Bool_t  Integrator() const {return fIntegrator;}
29     Short_t ChargeADC(Int_t clock) const {return (clock >= 0 && clock < kNClocks) ? fChargeADC[clock] : 0;}
30     
31   protected:
32     Int_t   fPMNumber;      // PhotoMultiplier number (0 to 16)
33     Float_t fTime;          // Time of Flight
34     Float_t fWidth;         // Width of the time distribution
35     Bool_t  fIntegrator;    // Integrator used
36     Short_t fChargeADC[kNClocks]; // ADC samples as present in raw data
37
38   ClassDef(AliADdigit,1)  // AD Digit class
39 };
40 //typedef AliADdigit AliADdigit;
41 #endif