]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/Cal/AliTRDCalDCSGTUTgu.h
Introduce proper destructor
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDCalDCSGTUTgu.h
1 #ifndef ALITRDCALDCSGTUTGU_H
2 #define ALITRDCALDCSGTUTGU_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id: AliTRDCalDCSGTUTgu.h 18952 2007-06-08 11:36:12Z cblume $ */
7
8 ///////////////////////////////////////////////////////////////////////////////
9 //                                                                           //
10 //  TRD calibration class for TRD GTU configuration parameters               //
11 //                                                                           //
12 ///////////////////////////////////////////////////////////////////////////////
13
14 #include "TNamed.h"
15
16 class TString;
17 class TObjArray;
18 class AliTRDCalDCSGTUBoardInfo;
19
20 class AliTRDCalDCSGTUTgu : public TNamed {
21
22  public:
23
24   AliTRDCalDCSGTUTgu();
25   AliTRDCalDCSGTUTgu(const char *name, const char *title);
26   AliTRDCalDCSGTUTgu(const AliTRDCalDCSGTUTgu&);
27   AliTRDCalDCSGTUTgu &operator=(const AliTRDCalDCSGTUTgu &sh);
28   virtual ~AliTRDCalDCSGTUTgu();
29
30   Int_t   GetFromRunNumber() const                    { return fFromRunNum;                   }
31   Int_t   GetFromSORFlag() const                      { return fFromSORFlag;                  }
32   Int_t   GetFromChild() const                        { return fFromChild;                    }
33   TString GetSegmentMask() const                      { return fSegmentMask;                  }
34   TString GetBusyMask() const                         { return fBusyMask;                     }
35   TString GetContribMask() const                      { return fContribMask;                  }
36
37   void    SetFromRunNumber(Int_t rn)                  { fFromRunNum = rn;                     }
38   void    SetFromSORFlag(Int_t fs)                    { fFromSORFlag = fs;                    }
39   void    SetFromChild(Int_t ch)                      { fFromChild = ch;                      }
40   void    SetSegmentMask(TString sm)                  { fSegmentMask = sm;                    }
41   void    SetBusyMask(TString bm)                     { fBusyMask = bm;                       }
42   void    SetContribMask(TString cm)                  { fContribMask = cm;                    }
43
44   AliTRDCalDCSGTUBoardInfo* GetBoardInfo()            { return fBoardInfo;                    }
45   void SetBoardInfo(AliTRDCalDCSGTUBoardInfo * const bi) { fBoardInfo = bi;                   }
46
47   TObjArray* GetCtpOpcArray() const                   { return fCtpOpcArr;                    }
48   void SetCtpOpcArray(TObjArray * const ca)           { fCtpOpcArr = ca;                      }
49
50   protected:
51   Int_t   fFromRunNum; // the run number from when this data was saved
52   Int_t   fFromSORFlag; // a flag indicating wether this data was saved from the start(=1) or end(=2) of run
53   Int_t   fFromChild; // value of the attribute named child within the from tag
54   TString fSegmentMask; // value of the attribute named value within the segment tag
55   TString fBusyMask; // value of the attribute named value within the busymask tag
56   TString fContribMask; // value of the attribute named value within the contribmask tag
57
58   AliTRDCalDCSGTUBoardInfo *fBoardInfo; // BoardInfo Object holding the information about the tgu
59
60   TObjArray *fCtpOpcArr; // an array of AliTRDCalDCSGTUCtpOpc objects holding their configuration data
61   
62   ClassDef(AliTRDCalDCSGTUTgu,1)      //  TRD calibration class for TRD GTU parameters
63
64 };
65 #endif