LCOV - code coverage report
Current view: top level - AD/ADbase - AliADdigit.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 13 7.7 %
Date: 2016-06-14 17:26:59 Functions: 1 21 4.8 %

          Line data    Source code
       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           0 : 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             :                   Bool_t  BBflag = kFALSE,
      21             :                   Bool_t  BGflag = kFALSE,
      22             :                   Int_t *labels = 0);
      23           0 :     virtual ~AliADdigit() {};
      24             :     virtual void Print(const Option_t* option="") const;
      25             : 
      26           0 :     Int_t   PMNumber()   const {return fPMNumber;}    
      27           0 :     Short_t ADC()        const {return fChargeADC[kADNClocks/2];}
      28           0 :     Float_t Time()       const {return fTime;}
      29           0 :     Float_t Width()      const {return fWidth;} 
      30           0 :     Bool_t  Integrator() const {return fIntegrator;}
      31           0 :     Short_t ChargeADC(Int_t clock) const {return (clock >= 0 && clock < kADNClocks) ? fChargeADC[clock] : 0;}
      32             :     Bool_t  GetIntegratorFlag(Int_t clock);
      33           0 :     Bool_t  GetBBflag()  const {return fBBflag;}
      34           0 :     Bool_t  GetBGflag()  const {return fBGflag;}
      35           0 :     void    SetBBflag(Bool_t bbFlag) {fBBflag = bbFlag;}
      36           0 :     void    SetBGflag(Bool_t bgFlag) {fBGflag = bgFlag;}
      37             :     
      38             :   protected:
      39             :     Int_t   fPMNumber;      // PhotoMultiplier number (0 to 16)
      40             :     Float_t fTime;          // Time of Flight
      41             :     Float_t fWidth;         // Width of the time distribution
      42             :     Bool_t  fIntegrator;    // Integrator used in central clock
      43             :     Short_t fChargeADC[kADNClocks]; // ADC samples as present in raw data
      44             :     Bool_t  fBBflag;        // BB flag in central clock
      45             :     Bool_t  fBGflag;        // BB flag in central clock
      46             :     
      47             : 
      48          16 :   ClassDef(AliADdigit,1)  // AD Digit class
      49             : };
      50             : //typedef AliADdigit AliADdigit;
      51             : #endif

Generated by: LCOV version 1.11