]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFGeometry.h
Removing non-existing AliRICHReconOld class from the list
[u/mrichter/AliRoot.git] / TOF / AliTOFGeometry.h
1 #ifndef ALITOFGEOMETRY_H
2 #define ALITOFGEOMETRY_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 /* $Id$ */
8
9 ///////////////////////////////////////////////////////////////////////////////
10 //                                                                           //
11 //  TOF geometry class                                                       //
12 //                                                                           //
13 ///////////////////////////////////////////////////////////////////////////////
14
15 #include "TGeoMatrix.h"
16 #include "TObject.h"
17
18 class AliTOFGeometry: public TObject{
19
20  public:
21   AliTOFGeometry();
22   virtual ~AliTOFGeometry();
23
24   static  Int_t NStripA()     { return kNStripA;};
25   static  Int_t NStripB()     { return kNStripB;};
26   virtual Int_t NStripC() const { return fNStripC;};
27   static  Int_t NMaxNstrip()  { return kMaxNstrip;};
28   static  Int_t NpadX()       { return kNpadX;};
29   static  Int_t NpadZ()       { return kNpadZ;};
30   static  Int_t NpadXStrip()  { return kNpadX*kNpadZ;};
31   static  Int_t NSectors()    { return kNSectors;};
32   static  Int_t NPlates()     { return kNPlates;};
33   virtual Int_t NPadXSector() const { return (kNStripA + 2*kNStripB +
34                                         2*fNStripC)*kNpadX*kNpadZ;};
35
36   virtual Float_t RinTOF() const   { return fxTOF;};
37   virtual Float_t Rmin() const     { return fRmin;};
38   virtual Float_t Rmax() const     { return fRmax;};
39
40   static  Float_t XPad()     { return fgkXPad;};
41   static  Float_t ZPad()     { return fgkZPad;};
42
43   static  Float_t StripLength() { return fgkStripLength;};
44
45   static  Int_t TimeDiff()    { return fgkTimeDiff;};
46   static  Int_t MaxTOFTree()  { return kMaxTOFTree;};
47
48   static  Int_t NDDL()        { return kNDDL;};
49   static  Int_t NTRM()        { return kNTRM;}
50   static  Int_t NTdc()        { return kNTdc;};
51   static  Int_t NChain()      { return kNChain;};
52   static  Int_t NCh()         { return kNCh;};
53   static  Int_t NPadXTRM()    { return kNCh*kNTdc*kNChain;};
54
55   virtual  Float_t ZlenA() const      { return fZlenA;};
56   virtual  Float_t ZlenB() const      { return fZlenB;};
57   virtual  Float_t ZlenC() const      { return fZlenC;};
58   virtual  Float_t MaxhZtof() const   { return fMaxhZtof;};
59
60   static  Float_t SigmaForTail1() { return fgkSigmaForTail1;};
61   static  Float_t SigmaForTail2() { return fgkSigmaForTail2;};
62  
63   static  Double_t GetAlpha()  { return 2 * 3.14159265358979323846 / kNSectors; }; 
64  
65   static Float_t TdcBinWidth() {return fgkTdcBin;};
66
67
68   virtual void    Init();
69   virtual void    ImportGeometry() {};
70   virtual void    SetHoles(Bool_t holes) {fHoles = holes;};
71   virtual Bool_t  GetHoles() const {return fHoles;};
72   virtual Bool_t  IsInsideThePadPar(Int_t */*det*/, Float_t */*pos*/) const {return kFALSE;};
73   virtual Float_t DistanceToPadPar(Int_t */*det*/, Float_t */*pos*/, Float_t *dist3d=0) const {return dist3d[0];};
74   virtual Bool_t  IsInsideThePad(Int_t */*det*/,TGeoHMatrix /*mat*/, Float_t */*pos*/) const {return kFALSE;};
75   virtual Float_t DistanceToPad(Int_t */*det*/,TGeoHMatrix /*mat*/, Float_t */*pos*/, Float_t *dist3d=0) const {return dist3d[0];};
76   virtual void    GetVolumePath(Int_t */*ind*/, Char_t */*path*/ ){};
77   virtual void    GetPos(Int_t */*det*/,Float_t */*pos*/){};
78   virtual void    GetPosPar(Int_t *det,Float_t *pos) const;
79   virtual void    GetDetID(Float_t *pos,Int_t *det) const;
80   virtual Int_t   GetPlate(Float_t */*pos*/) const {return -1;};
81   virtual Int_t   GetStrip(Float_t */*pos*/) const {return -1;};
82   virtual Int_t   GetSector(Float_t */*pos*/) const {return -1;};
83   virtual Int_t   GetPadX(Float_t */*pos*/) const {return -1;};
84   virtual Int_t   GetPadZ(Float_t */*pos*/) const {return -1;};
85   virtual Float_t GetX(Int_t */*det*/) const {return -500.;};
86   virtual Float_t GetY(Int_t */*det*/) const {return -500.;};
87   virtual Float_t GetZ(Int_t */*det*/) const {return -500.;};
88
89   Float_t GetAngles(Int_t iplate, Int_t istrip)  const {return fAngles[iplate][istrip];};
90   Float_t GetHeights(Int_t iplate, Int_t istrip) const {return fHeights[iplate][istrip];};
91   Float_t GetDistances(Int_t iplate, Int_t istrip) const {return fDistances[iplate][istrip];};
92
93   //private:
94   protected:
95
96   enum {
97     kNStripA    = 15, // number of strips in A type module 
98     kNStripB    = 19, // number of strips in B type module 
99     kNpadX      = 48, // Number of pads along X 
100     kNpadZ      = 2,  // Number of pads along Z
101     kNSectors   = 18, // Number of Sectors
102     kNPlates    = 5,  // Number of Plates
103     kMaxTOFTree = 5,  // numer of geom. levels: 
104     kMaxNstrip  = 20  // Max. number of strips
105   };
106
107   // DAQ characteristics
108   // cfr. TOF-TDR pag. 105 for Glossary
109   // TARODA : TOF-ALICE Read Out and Data Acquisition system
110   enum {
111     kNDDL        =    4, // Number of DDL (Detector Data Link) per sector
112     kNTRM        =   12, // Number of TRM ( Readout Module) per DDL
113     kNTdc        =   15, // Number of Tdc (Time to Digital Converter) per TRM
114     kNChain      =    2, // Number of chains per TRM
115     kNCh         =    8  // Number of channels per Tdc
116   };
117
118   static const Int_t fgkTimeDiff;      // Min signal separation (ps)
119
120   mutable Int_t fNStripC;       // number of strips in C type module 
121
122   mutable Float_t fZlenA;       // length (cm) of the A module
123   mutable Float_t fZlenB;       // length (cm) of the B module
124   mutable Float_t fZlenC;       // length (cm) of the C module
125   mutable Float_t fMaxhZtof;    // Max half z-size of TOF (cm)
126
127   mutable Float_t fRmin;       // Inner radius of the TOF (cm)
128   mutable Float_t fRmax;       // Outer radius of the TOF (cm)
129   mutable Float_t fxTOF;       // Inner TOF Radius used in Reconstruction (cm)
130
131   static const Float_t fgkStripLength; // Strip Length (rho X phi direction) (cm)
132
133   static const Float_t fgkXPad;     // Pad size in the x direction (cm)
134   static const Float_t fgkZPad;     // Pad size in the z direction (cm)
135
136   static const Float_t fgkSigmaForTail1;//Sig1 for simulation of TDC tails 
137   static const Float_t fgkSigmaForTail2;//Sig2 for simulation of TDC tails
138
139   Bool_t fHoles; //logical for geometry version (w/wo holes)
140
141   Float_t fAngles[kNPlates][kMaxNstrip];   //Strip Tilt Angles
142   Float_t fHeights[kNPlates][kMaxNstrip];  //Strip heights
143   Float_t fDistances[kNPlates][kMaxNstrip];//Strip distances
144
145   Float_t fPhiSec; //sector Phi width (deg)
146
147   static const Float_t fgkTdcBin;   // time-window for the TDC bins [ps]
148
149   ClassDef(AliTOFGeometry,4) // TOF Geometry base class
150 };
151
152 #endif