]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDPrfInfo.h
fixed sig.segv
[u/mrichter/AliRoot.git] / TRD / AliTRDPrfInfo.h
1 #ifndef ALITRDPRFINFO_H
2 #define ALITRDPRFINFO_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id: AliTRDPrfInfo.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 <TObject.h>
15
16
17 //_____________________________________________________________________________
18 class AliTRDPrfInfo : public TObject 
19 {
20
21  public:
22
23   AliTRDPrfInfo();
24   AliTRDPrfInfo(Int_t n);
25   AliTRDPrfInfo(const AliTRDPrfInfo &c);
26   virtual      ~AliTRDPrfInfo();
27   AliTRDPrfInfo &operator=(const AliTRDPrfInfo &c);
28   virtual void  Copy(TObject &c) const;
29
30   Int_t         GetSize()  const                { return fSize;  };
31   Float_t       At(Int_t bin) const             { return (Float_t) (fData[bin]/255.0); };
32   
33   void          AddAt(Float_t value, Int_t bin)   { fData[bin] = (UChar_t) (value*255.0); };
34   void          SetSize(Int_t size);
35   
36  protected:
37   
38   Int_t     fSize;              //  Size
39   UChar_t  *fData;              //[fSize] Data
40
41   ClassDef(AliTRDPrfInfo, 2)   
42
43 };
44
45 #endif