LCOV - code coverage report
Current view: top level - TRD/TRDbase - AliTRDPhInfo.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 5 20.0 %
Date: 2016-06-14 17:26:59 Functions: 1 9 11.1 %

          Line data    Source code
       1             : #ifndef ALITRDPHINFO_H
       2             : #define ALITRDPHINFO_H
       3             : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       4             :  * See cxx source for full Copyright notice                               */
       5             : 
       6             : /* $Id: AliTRDPhInfo.h 27946 2008-08-13 15:26:24Z cblume $ */
       7             : 
       8             : //////////////////////////////////////////////////
       9             : //                                              //
      10             : //  TRD calibration base class for one ROC      //
      11             : //                                              //
      12             : //////////////////////////////////////////////////
      13             : 
      14             : #include <AliTRDUshortInfo.h>
      15             : #include <TMath.h>
      16             : 
      17             : //_____________________________________________________________________________
      18             : class AliTRDPhInfo : public AliTRDUshortInfo
      19             : {
      20             : 
      21             :  public:
      22             : 
      23             :   AliTRDPhInfo();
      24             :   AliTRDPhInfo(Int_t n);
      25             :   AliTRDPhInfo(const AliTRDPhInfo &c);
      26             :   virtual      ~AliTRDPhInfo();
      27             :   AliTRDPhInfo &operator=(const AliTRDPhInfo &c);
      28             : 
      29           0 :   Float_t At(Int_t bin) const                  { return (Float_t) (fData[bin]*3000.0/65535.0);  };
      30           0 :   Float_t AtS(Int_t bin) const                 { return (Float_t) (fData[bin]*3000.0/65535.0*fData[bin]*3000.0/65535.0);  };
      31             : 
      32           0 :   void   AddAt(Float_t value, Int_t bin)       { fData[bin] = (UShort_t) (value*65535.0/3000.0);  };
      33           0 :   void   AddAtS(Float_t value, Int_t bin)      { fData[bin] = (UShort_t) (TMath::Sqrt(TMath::Abs(value))*65535.0/3000.0); };
      34             :   
      35             :   
      36             :  protected:
      37             : 
      38          48 :   ClassDef(AliTRDPhInfo, 2)    
      39             : 
      40             : };
      41             : 
      42             : #endif

Generated by: LCOV version 1.11