Macro to Create pulser run data from an LDC
[u/mrichter/AliRoot.git] / TOF / AliTOFGeometryV5.h
CommitLineData
d3c7bfac 1#ifndef ALITOFGEOMETRYV5_H
2#define ALITOFGEOMETRYV5_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 (new version) //
10// //
11///////////////////////////////////////////////////////////////////////////////
12
d3c7bfac 13#include "AliTOFGeometry.h"
14
15class AliTOFGeometryV5: public AliTOFGeometry {
16
17 public:
18 AliTOFGeometryV5();
19 virtual ~AliTOFGeometryV5();
a6a9820c 20
21 void ImportGeometry();
d3c7bfac 22 void Init();
6dbd0cd6 23 Bool_t IsInsideThePad(TGeoHMatrix mat, Float_t *pos, Float_t *dist3d=0) const;
7aeeaf38 24 Bool_t IsInsideThePadPar(Int_t *det, Float_t *pos) const;
25 Float_t DistanceToPadPar(Int_t *det, Float_t *pos, Float_t *dist3d=0) const;
a6a9820c 26 void GetVolumePath(Int_t *ind, Char_t *path );
48e6af28 27 void GetVolumePath(Int_t sector, Char_t *path );
28 void GetVolumePath(Int_t sector, Int_t plate, Int_t strip, Char_t *path );
7aeeaf38 29 Int_t GetPlate(Float_t *pos) const;
30 Int_t GetStrip(Float_t *pos) const;
31 Int_t GetSector(Float_t *pos) const;
32 Int_t GetPadX(Float_t *pos) const;
33 Int_t GetPadZ(Float_t *pos) const;
a6a9820c 34 void GetPos(Int_t *det,Float_t *pos);
7aeeaf38 35 Float_t GetX(Int_t *det) const;
36 Float_t GetY(Int_t *det) const;
37 Float_t GetZ(Int_t *det) const;
d3c7bfac 38 Float_t GetPadDx(Float_t *pos);
39 Float_t GetPadDy(Float_t *pos);
40 Float_t GetPadDz(Float_t *pos);
d3c7bfac 41
340693af 42 Int_t NStripC() const { return kNStripC;};
43 Int_t NPadXSector() const { return (AliTOFGeometry::kNStripA + 2*AliTOFGeometry::kNStripB +
d3c7bfac 44 2*kNStripC)*AliTOFGeometry::kNpadX*AliTOFGeometry::kNpadZ;};
45
340693af 46 Float_t RinTOF() const { return fgkxTOF;};
47 Float_t Rmin() const { return fgkRmin;};
48 Float_t Rmax() const { return fgkRmax;};
d3c7bfac 49
340693af 50 Float_t ZlenA() const { return fgkZlenA;};
51 Float_t ZlenB() const { return fgkZlenB;};
52 Float_t ZlenC() const { return fgkZlenC;};
53 Float_t MaxhZtof() const { return fgkMaxhZtof;};
d3c7bfac 54
7aeeaf38 55 void Translation(Float_t *xyz, Float_t translationVector[3]) const;
56 void Rotation(Float_t *xyz, Double_t rotationAngles[6]) const;
57 void InverseRotation(Float_t *xyz, Double_t rotationAngles[6]) const;
d3c7bfac 58
48e6af28 59 void DetToSectorRF(Int_t vol[5], Double_t **coord);
60
d3c7bfac 61 protected:
62
7aeeaf38 63 enum {
64 kNStripC = 19 // number of strips in C type module
65 };
d3c7bfac 66
7aeeaf38 67 //private:
d3c7bfac 68
69 static const Float_t fgkZlenA; // length (cm) of the A module
70 static const Float_t fgkZlenB; // length (cm) of the B module
71 static const Float_t fgkZlenC; // length (cm) of the C module
72 static const Float_t fgkMaxhZtof; // Max half z-size of TOF (cm)
d3c7bfac 73
74 static const Float_t fgkRmin; // Inner radius of the TOF (cm)
75 static const Float_t fgkRmax; // Outer radius of the TOF (cm)
76 static const Float_t fgkxTOF; // Inner TOF Radius used in Reconstruction (cm)
77
4402e7cb 78 ClassDef(AliTOFGeometryV5,1) // TOF Geometry class
d3c7bfac 79};
80
81#endif