3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 /* $Id: AliTRDPhInfo.h 27946 2008-08-13 15:26:24Z cblume $ */
8 //////////////////////////////////////////////////
10 // TRD calibration base class for one ROC //
12 //////////////////////////////////////////////////
14 #include <AliTRDUshortInfo.h>
17 //_____________________________________________________________________________
18 class AliTRDPhInfo : public AliTRDUshortInfo
24 AliTRDPhInfo(Int_t n);
25 AliTRDPhInfo(const AliTRDPhInfo &c);
26 virtual ~AliTRDPhInfo();
27 AliTRDPhInfo &operator=(const AliTRDPhInfo &c);
29 Float_t At(Int_t bin) const { return (Float_t) (fData[bin]*3000.0/65535.0); };
30 Float_t AtS(Int_t bin) const { return (Float_t) (fData[bin]*3000.0/65535.0*fData[bin]*3000.0/65535.0); };
32 void AddAt(Float_t value, Int_t bin) { fData[bin] = (UShort_t) (value*65535.0/3000.0); };
33 void AddAtS(Float_t value, Int_t bin) { fData[bin] = (UShort_t) (TMath::Sqrt(TMath::Abs(value))*65535.0/3000.0); };
38 ClassDef(AliTRDPhInfo, 2)