LCOV - code coverage report
Current view: top level - ZDC/ZDCbase - AliZDCTDCCalib.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 3 7 42.9 %
Date: 2016-06-14 17:26:59 Functions: 3 9 33.3 %

          Line data    Source code
       1             : #ifndef ALIZDCTDCCALIB_H
       2             : #define ALIZDCTDCCALIB_H
       3             : 
       4             : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       5             :  * See cxx source for full Copyright notice                               */
       6             : 
       7             : ////////////////////////////////////////////////////
       8             : //  class for ZDC calibration -> TDC mean values  //
       9             : ////////////////////////////////////////////////////
      10             : 
      11             : #include "TNamed.h"
      12             : #include "AliCDBEntry.h"
      13             : 
      14             : class AliZDC;
      15             : 
      16             : class AliZDCTDCCalib: public TNamed {
      17             : 
      18             :  public:
      19             :   AliZDCTDCCalib();
      20             :   AliZDCTDCCalib(const char* name);
      21             :   AliZDCTDCCalib(const AliZDCTDCCalib &calibda);
      22             :   AliZDCTDCCalib& operator= (const AliZDCTDCCalib &calibda);
      23             :   virtual ~AliZDCTDCCalib();
      24             :   void Reset();
      25             :   virtual void  Print(Option_t *) const; 
      26             : 
      27             :   Float_t GetMeanTDC(Int_t ch) const 
      28         144 :         {if(ch<6) return fMeanTDC[ch];
      29          48 :          else return 0.;};
      30             :   Float_t GetWidthTDC(Int_t ch) const 
      31           0 :         {if(ch<6) return fWidthTDC[ch];
      32           0 :          else return 0.;};
      33             :          
      34           0 :   void SetMeanTDC(Int_t ch, Float_t val) {fMeanTDC[ch]=val;}
      35           0 :   void SetWidthTDC(Int_t ch, Float_t val) {fWidthTDC[ch]=val;}
      36             :   void SetMeanTDC(Float_t* mean);
      37             :   void SetWidthTDC(Float_t* width);
      38             :   
      39             :  protected:
      40             :   // --- Pedestals
      41             :   Float_t  fMeanTDC[6];         // Mean TDC values 
      42             :   Float_t  fWidthTDC[6];        // TDC widths 
      43             :   //
      44          28 :   ClassDef(AliZDCTDCCalib,1)    // ZDC TDC calibration data
      45             : };
      46             : 
      47             : #endif

Generated by: LCOV version 1.11