]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFCal.h
Changes for TOF Reconstruction using TGeo
[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 "AliTOFGeometryV4.h"
18 #include "AliTOFChannel.h"
19
20
21 class AliTOFCal: public TObject 
22 {
23  public:
24   AliTOFCal();
25   AliTOFCal(const AliTOFCal& cal);
26   virtual ~AliTOFCal();
27   void Browse(TBrowser *b);
28   Bool_t IsFolder() const{return kTRUE;}
29   Int_t NSector()const {return fNSector;}
30   Int_t NPlate()const {return fNPlate;}
31   Int_t NStripA()const {return fNStripA;}
32   Int_t NStripB()const {return fNStripB;}
33   Int_t NStripC()const {return fNStripC;}
34   Int_t NpadZ()const {return fNpadZ;}
35   Int_t NpadX()const {return fNpadX;}
36   Int_t NPads()const {return fnpad;}
37  //void PlotPad(Int_t n) {} // *MENU*
38   AliTOFChannel* GetChannel(Int_t i) {return &fPads[i];}
39   AliTOFChannel* GetArray() {return fPads;}
40   void CreateArray();
41 private:
42
43   Int_t fNSector;  // number of TOF sectors
44   Int_t fNPlate;   // number of TOF platess
45   Int_t fNStripA;  // number of TOF strips A
46   Int_t fNStripB;  // number of TOF strips B
47   Int_t fNStripC;  // number of TOF strips C
48   Int_t fNpadZ;    // number of TOF pads Z
49   Int_t fNpadX;    // number of TOF pads X
50   Int_t fnpad;     // number of TOF channels
51
52   AliTOFChannel* fPads;  //[fnpad]  
53                          // array of AliTOFChannels storing the calib parameters
54   ClassDef(AliTOFCal,1)
55 };
56
57 #endif
58
59