]>
Commit | Line | Data |
---|---|---|
d3c7bfac | 1 | #ifndef ALITOFGEOMETRYV5_H |
2 | #define ALITOFGEOMETRYV5_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | ||
7 | /////////////////////////////////////////////////////////////////////////////// | |
8 | // // | |
9 | // TOF geometry class (new version) // | |
10 | // // | |
11 | /////////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | ||
14 | #include "AliTOFGeometry.h" | |
15 | ||
16 | class AliTOFGeometryV5: public AliTOFGeometry { | |
17 | ||
18 | public: | |
19 | AliTOFGeometryV5(); | |
20 | virtual ~AliTOFGeometryV5(); | |
21 | ||
22 | void Init(); | |
23 | Bool_t IsInsideThePad(Int_t *det, Float_t *pos); | |
24 | Float_t DistanceToPad(Int_t *det, Float_t *pos, Float_t *dist3d=0); | |
25 | Int_t GetPlate(Float_t *pos); | |
26 | Int_t GetStrip(Float_t *pos); | |
27 | Int_t GetSector(Float_t *pos); | |
28 | Int_t GetPadX(Float_t *pos); | |
29 | Int_t GetPadZ(Float_t *pos); | |
30 | Float_t GetX(Int_t *det); | |
31 | Float_t GetY(Int_t *det); | |
32 | Float_t GetZ(Int_t *det); | |
33 | Float_t GetPadDx(Float_t *pos); | |
34 | Float_t GetPadDy(Float_t *pos); | |
35 | Float_t GetPadDz(Float_t *pos); | |
36 | //Float_t GetAngles(Int_t iplate, Int_t istrip) const {return fAngles[iplate][istrip];}; | |
37 | //Float_t GetHeights(Int_t iplate, Int_t istrip) const {return fHeights[iplate][istrip];}; | |
38 | //Float_t GetDistances(Int_t iplate, Int_t istrip) const {return fDistances[iplate][istrip];}; | |
39 | ||
40 | Float_t NStirpC() { return kNStripC;}; | |
41 | Int_t NMaxNstrip() { return kMaxNstrip;}; | |
42 | Int_t NPadXSector() { return (AliTOFGeometry::kNStripA + 2*AliTOFGeometry::kNStripB + | |
43 | 2*kNStripC)*AliTOFGeometry::kNpadX*AliTOFGeometry::kNpadZ;}; | |
44 | ||
45 | Float_t RinTOF() { return fgkxTOF;}; | |
46 | Float_t Rmin() { return fgkRmin;}; | |
47 | Float_t Rmax() { return fgkRmax;}; | |
48 | ||
49 | Float_t ZlenA() { return fgkZlenA;}; | |
50 | Float_t ZlenB() { return fgkZlenB;}; | |
51 | Float_t ZlenC() { return fgkZlenC;}; | |
52 | Float_t MaxhZtof() { return fgkMaxhZtof;}; | |
53 | Float_t StripLength() { return fgkStripLength;}; | |
54 | ||
55 | void Translation(Float_t *xyz, Float_t translationVector[3]); | |
56 | void Rotation(Float_t *xyz, Double_t rotationAngles[6]); | |
57 | void InverseRotation(Float_t *xyz, Double_t rotationAngles[6]); | |
58 | ||
59 | protected: | |
60 | ||
61 | //private: | |
62 | ||
63 | static const Int_t kNStripC; // number of strips in C type module | |
64 | static const Int_t kMaxNstrip; // Max. number of strips | |
65 | ||
66 | static const Float_t fgkZlenA; // length (cm) of the A module | |
67 | static const Float_t fgkZlenB; // length (cm) of the B module | |
68 | static const Float_t fgkZlenC; // length (cm) of the C module | |
69 | static const Float_t fgkMaxhZtof; // Max half z-size of TOF (cm) | |
70 | static const Float_t fgkStripLength; // Strip Length (rho X phi direction) (cm) | |
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 | Bool_t fHoles; //logical for geometry version (w/wo holes) | |
77 | ||
78 | //Float_t *fAngles[kNPlates];//Strip tilt angles | |
79 | //Float_t *fHeights[kNPlates];//Strip heights | |
80 | //Float_t *fDistances[kNPlates];//Strip distances | |
81 | ||
82 | ClassDef(AliTOFGeometryV5,0) // TOF Geometry class | |
83 | }; | |
84 | ||
85 | #endif |