]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFCal.h
Coding conventions (Annalisa)
[u/mrichter/AliRoot.git] / TOF / AliTOFCal.h
1 #ifndef ALITOFCAL_H
2 #define ALITOFCAL_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 //////////////////////////////////////////////////////////////////
8 //     class for TOF calibration:: array of AliTOFChannels      //
9 //////////////////////////////////////////////////////////////////
10
11 //_____________________________________________________________
12
13 #include "TObject.h"
14 #include "TROOT.h"
15 #include "TBrowser.h"
16 #include "TClass.h"
17 #include "AliTOFGeometry.h"
18 #include "AliTOFChannel.h"
19
20
21 class AliTOFCal: public TObject 
22 {
23  public:
24   AliTOFCal();
25   AliTOFCal(AliTOFGeometry *geom);
26   AliTOFCal(const AliTOFCal& cal);
27   AliTOFCal& operator=(const AliTOFCal &source); // ass. op.
28   virtual ~AliTOFCal();
29   void Browse(TBrowser *b);
30   Bool_t IsFolder() const{return kTRUE;}
31   Int_t NSector()const {return fNSector;}
32   Int_t NPlate()const {return fNPlate;}
33   Int_t NStripA()const {return fNStripA;}
34   Int_t NStripB()const {return fNStripB;}
35   Int_t NStripC()const {return fNStripC;}
36   Int_t NpadZ()const {return fNpadZ;}
37   Int_t NpadX()const {return fNpadX;}
38   Int_t NPads()const {return fnpad;}
39  //void PlotPad(Int_t n) {} // *MENU*
40   AliTOFChannel* GetChannel(Int_t i) {return &fPads[i];}
41   AliTOFChannel* GetArray() {return fPads;}
42   void CreateArray();
43 private:
44
45   Int_t fNSector;  // number of TOF sectors
46   Int_t fNPlate;   // number of TOF platess
47   Int_t fNStripA;  // number of TOF strips A
48   Int_t fNStripB;  // number of TOF strips B
49   Int_t fNStripC;  // number of TOF strips C
50   Int_t fNpadZ;    // number of TOF pads Z
51   Int_t fNpadX;    // number of TOF pads X
52   Int_t fnpad;     // number of TOF channels
53
54   AliTOFGeometry *fGeom;    // AliTOFgeometry pointer
55   AliTOFChannel* fPads;  //[fnpad]  
56                          // array of AliTOFChannels storing the calib parameters
57   ClassDef(AliTOFCal,1)
58 };
59
60 #endif
61
62