]> git.uio.no Git - u/mrichter/AliRoot.git/blame - AD/ADbase/AliADdigit.h
Missing macros for PWGCF, PWGDQ and PWGLF
[u/mrichter/AliRoot.git] / AD / ADbase / AliADdigit.h
CommitLineData
5e319bd5 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"
aa8120bb 9#include "AliADConst.h"
5e319bd5 10
11//_____________________________________________________________________________
12class AliADdigit: public AliDigit {
13
14public:
aa8120bb 15 AliADdigit();
16 AliADdigit(Int_t PMnumber, Float_t time,
17 Float_t TimeWidth,
18 Bool_t Integrator,
19 Short_t *chargeADC = 0,
a67ec576 20 Bool_t BBflag = kFALSE,
21 Bool_t BGflag = kFALSE,
aa8120bb 22 Int_t *labels = 0);
23 virtual ~AliADdigit() {};
24 virtual void Print(const Option_t* option="") const;
5e319bd5 25
aa8120bb 26 Int_t PMNumber() const {return fPMNumber;}
27 Short_t ADC() const {return fChargeADC[kNClocks/2];}
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;}
11509371 32 Bool_t GetIntegratorFlag(Int_t clock);
a67ec576 33 Bool_t GetBBflag() const {return fBBflag;}
34 Bool_t GetBGflag() const {return fBGflag;}
5e319bd5 35
aa8120bb 36 protected:
37 Int_t fPMNumber; // PhotoMultiplier number (0 to 16)
38 Float_t fTime; // Time of Flight
39 Float_t fWidth; // Width of the time distribution
a67ec576 40 Bool_t fIntegrator; // Integrator used in central clock
aa8120bb 41 Short_t fChargeADC[kNClocks]; // ADC samples as present in raw data
a67ec576 42 Bool_t fBBflag; // BB flag in central clock
43 Bool_t fBGflag; // BB flag in central clock
44
5e319bd5 45
46 ClassDef(AliADdigit,1) // AD Digit class
47};
48//typedef AliADdigit AliADdigit;
49#endif