ROOT logo
#ifndef ALITRDPHINFO_H
#define ALITRDPHINFO_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

/* $Id: AliTRDPhInfo.h 27946 2008-08-13 15:26:24Z cblume $ */

//////////////////////////////////////////////////
//                                              //
//  TRD calibration base class for one ROC      //
//                                              //
//////////////////////////////////////////////////

#include <AliTRDUshortInfo.h>
#include <TMath.h>

//_____________________________________________________________________________
class AliTRDPhInfo : public AliTRDUshortInfo
{

 public:

  AliTRDPhInfo();
  AliTRDPhInfo(Int_t n);
  AliTRDPhInfo(const AliTRDPhInfo &c);
  virtual      ~AliTRDPhInfo();
  AliTRDPhInfo &operator=(const AliTRDPhInfo &c);

  Float_t At(Int_t bin) const                  { return (Float_t) (fData[bin]*3000.0/65535.0);  };
  Float_t AtS(Int_t bin) const                 { return (Float_t) (fData[bin]*3000.0/65535.0*fData[bin]*3000.0/65535.0);  };

  void   AddAt(Float_t value, Int_t bin)       { fData[bin] = (UShort_t) (value*65535.0/3000.0);  };
  void   AddAtS(Float_t value, Int_t bin)      { fData[bin] = (UShort_t) (TMath::Sqrt(TMath::Abs(value))*65535.0/3000.0); };
  
  
 protected:

  ClassDef(AliTRDPhInfo, 2)    

};

#endif
 AliTRDPhInfo.h:1
 AliTRDPhInfo.h:2
 AliTRDPhInfo.h:3
 AliTRDPhInfo.h:4
 AliTRDPhInfo.h:5
 AliTRDPhInfo.h:6
 AliTRDPhInfo.h:7
 AliTRDPhInfo.h:8
 AliTRDPhInfo.h:9
 AliTRDPhInfo.h:10
 AliTRDPhInfo.h:11
 AliTRDPhInfo.h:12
 AliTRDPhInfo.h:13
 AliTRDPhInfo.h:14
 AliTRDPhInfo.h:15
 AliTRDPhInfo.h:16
 AliTRDPhInfo.h:17
 AliTRDPhInfo.h:18
 AliTRDPhInfo.h:19
 AliTRDPhInfo.h:20
 AliTRDPhInfo.h:21
 AliTRDPhInfo.h:22
 AliTRDPhInfo.h:23
 AliTRDPhInfo.h:24
 AliTRDPhInfo.h:25
 AliTRDPhInfo.h:26
 AliTRDPhInfo.h:27
 AliTRDPhInfo.h:28
 AliTRDPhInfo.h:29
 AliTRDPhInfo.h:30
 AliTRDPhInfo.h:31
 AliTRDPhInfo.h:32
 AliTRDPhInfo.h:33
 AliTRDPhInfo.h:34
 AliTRDPhInfo.h:35
 AliTRDPhInfo.h:36
 AliTRDPhInfo.h:37
 AliTRDPhInfo.h:38
 AliTRDPhInfo.h:39
 AliTRDPhInfo.h:40
 AliTRDPhInfo.h:41
 AliTRDPhInfo.h:42