]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDPhInfo.h
ALIROOT-5634 Install all needed files
[u/mrichter/AliRoot.git] / TRD / AliTRDPhInfo.h
CommitLineData
e526983e 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//_____________________________________________________________________________
18class 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 Float_t At(Int_t bin) const { return (Float_t) (fData[bin]*3000.0/65535.0); };
2c919856 30 Float_t AtS(Int_t bin) const { return (Float_t) (fData[bin]*3000.0/65535.0*fData[bin]*3000.0/65535.0); };
e526983e 31
32 void AddAt(Float_t value, Int_t bin) { fData[bin] = (UShort_t) (value*65535.0/3000.0); };
2c919856 33 void AddAtS(Float_t value, Int_t bin) { fData[bin] = (UShort_t) (TMath::Sqrt(TMath::Abs(value))*65535.0/3000.0); };
e526983e 34
35
36 protected:
37
38 ClassDef(AliTRDPhInfo, 2)
39
40};
41
42#endif