]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/AliTOFGeometryV4.h
Possibility to use loadlibs.C on Solaris x86
[u/mrichter/AliRoot.git] / TOF / AliTOFGeometryV4.h
CommitLineData
d3c7bfac 1#ifndef ALITOFGEOMETRYV4_H
2#define ALITOFGEOMETRYV4_H
0e46b9ae 3
d3c7bfac 4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
d3c7bfac 7///////////////////////////////////////////////////////////////////////////////
8// //
9// TOF geometry class (PPR version) //
10// //
11///////////////////////////////////////////////////////////////////////////////
12
d3c7bfac 13#include "AliTOFGeometry.h"
14
15class AliTOFGeometryV4: public AliTOFGeometry {
16
17 public:
18 AliTOFGeometryV4();
19 virtual ~AliTOFGeometryV4();
20
a6a9820c 21 void ImportGeometry();
d3c7bfac 22 void Init();
7aeeaf38 23 Bool_t IsInsideThePad(Int_t *det, TGeoHMatrix mat, Float_t *pos) const ;
24 Float_t DistanceToPad(Int_t *det, TGeoHMatrix mat, Float_t *pos, Float_t *dist3d=0) const ;
25 Bool_t IsInsideThePadPar(Int_t *det, Float_t *pos) const ;
26 Float_t DistanceToPadPar(Int_t *det, Float_t *pos, Float_t *dist3d=0) const ;
a6a9820c 27 void GetVolumePath(Int_t *ind, Char_t *path );
7aeeaf38 28 Int_t GetPlate(Float_t *pos) const ;
29 Int_t GetStrip(Float_t *pos) const ;
30 Int_t GetSector(Float_t *pos) const ;
31 Int_t GetPadX(Float_t *pos) const ;
32 Int_t GetPadZ(Float_t *pos) const ;
a6a9820c 33 void GetPos(Int_t *det,Float_t *pos);
7aeeaf38 34 Float_t GetX(Int_t *det) const ;
35 Float_t GetY(Int_t *det) const ;
36 Float_t GetZ(Int_t *det) const ;
37 Float_t GetMinPlateTheta(Int_t iPlate) const;
38 Float_t GetMaxPlateTheta(Int_t iPlate) const;
39 Float_t GetMinStripTheta(Int_t iPlate, Int_t iStrip) const;
40 Float_t GetMaxStripTheta(Int_t iPlate, Int_t iStrip) const;
41 Float_t GetStripTheta(Int_t iPlate, Int_t iStrip) const;
d3c7bfac 42
340693af 43 Int_t NStripC() const { return kNStripC;};
44 Int_t NPadXSector() const { return (AliTOFGeometry::kNStripA + 2*AliTOFGeometry::kNStripB +
d3c7bfac 45 2*kNStripC)*AliTOFGeometry::kNpadX*AliTOFGeometry::kNpadZ;};
46
340693af 47 Float_t RinTOF() const { return fgkxTOF;};
48 Float_t Rmin() const { return fgkRmin;};
49 Float_t Rmax() const { return fgkRmax;};
d3c7bfac 50
340693af 51 Float_t ZlenA() const { return fgkZlenA;};
52 Float_t ZlenB() const { return fgkZlenB;};
53 Float_t ZlenC() const { return fgkZlenC;};
54 Float_t MaxhZtof() const { return fgkMaxhZtof;};
d3c7bfac 55
56 static Float_t DeadBndX() { return fgkDeadBndX;};
57 static Float_t DeadBndZ() { return fgkDeadBndZ;};
58 static Float_t OverSpc() { return fgkOverSpc;};
59
60 protected:
7aeeaf38 61 enum {
62 kNStripC = 20 // number of strips in C type module
63 };
d3c7bfac 64
65 //private:
66
d3c7bfac 67 static const Float_t fgkZlenA; // length (cm) of the A module
68 static const Float_t fgkZlenB; // length (cm) of the B module
69 static const Float_t fgkZlenC; // length (cm) of the C module
70 static const Float_t fgkMaxhZtof; // Max half z-size of TOF (cm)
d3c7bfac 71
72 static const Float_t fgkRmin; // Inner radius of the TOF (cm)
73 static const Float_t fgkRmax; // Outer radius of the TOF (cm)
74 static const Float_t fgkxTOF; // Inner TOF Radius used in Reconstruction (cm)
75
76 static const Float_t fgkDeadBndX; // Dead Boundaries of a Strip along Z direction (width)
77 static const Float_t fgkDeadBndZ; // Dead Boundaries of a Strip along X direction (length)
78 static const Float_t fgkOverSpc; // Space available for sensitive layers in radial direction (cm)
79
80 static const Float_t fgkDprecMin;//num.prec.tolerance on Thmin
81 static const Float_t fgkDprecMax;//num.prec.tolerance on Thma
82 static const Float_t fgkDprecCen;//num.prec.tolerance on <Theta>
83
4402e7cb 84 ClassDef(AliTOFGeometryV4,1) // TOF Geometry class
d3c7bfac 85};
86
87#endif