]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDDetector.h
Migrated to a geometry implemented via AliFMDGeometry (derives from
[u/mrichter/AliRoot.git] / FMD / AliFMDDetector.h
1 #ifndef ALIFMDDETECTOR_H
2 #define ALIFMDDETECTOR_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
4  * reserved. 
5  *
6  * Latest changes by Christian Holm Christensen <cholm@nbi.dk>
7  *
8  * See cxx source for full Copyright notice                               
9  */
10 #ifndef ROOT_TNamed
11 # include <TNamed.h>
12 #endif
13 class AliFMDRing;
14
15
16 //__________________________________________________________________
17 /** Base class for the geometry description and parameters of the FMD
18     sub detectors FMD1, FMD2, and FMD3.
19
20     This class hold common parameters of the specific FMD detectors.
21 */
22 class AliFMDDetector : public TNamed 
23 {
24 public:
25   AliFMDDetector(Int_t id, AliFMDRing* inner, AliFMDRing* outer);
26   virtual ~AliFMDDetector() {}
27   /** Initialize the geometry */
28   virtual void Init();
29     
30   /** @param x Detector number */
31   void SetId(Int_t x) { fId = x; }
32   /** @param x Position of outer ring along z */
33   void SetInnerZ(Double_t x) { fInnerZ = x; }
34   /** @param x Position of outer ring along z */
35   void SetOuterZ(Double_t x) { fOuterZ = x; }
36   /** @param x Thickness of honeycomb plate */
37   void SetHoneycombThickness(Double_t x=1) { fHoneycombThickness = x; }
38   /** @param x Thickness of aluminium of honeycomb */
39   void SetAlThickness(Double_t x=.1) { fAlThickness = x; }
40   /** @param x Inner radius of inner honeycomb */
41   void SetInnerHoneyLowR(Double_t x) { fInnerHoneyLowR = x; }
42   /** @param x Outer radius of inner honeycomb */
43   void SetInnerHoneyHighR(Double_t x) { fInnerHoneyHighR = x; }
44   /** @param x Inner radius of outer honeycomb */
45   void SetOuterHoneyLowR(Double_t x) { fOuterHoneyLowR = x; }
46   /** @param x Outer radius of outer honeycomb */
47   void SetOuterHoneyHighR(Double_t x) { fOuterHoneyHighR = x; }
48     
49   /** @return Detector number */
50   Int_t GetId() const { return fId; }
51   /** @return Position of outer ring along z */
52   Double_t GetInnerZ() const { return fInnerZ; }
53   /** @return Position of outer ring along z */
54   Double_t GetOuterZ() const { return fOuterZ; }
55   /** @return Thickness of honeycomb plate */
56   Double_t GetHoneycombThickness() const { return fHoneycombThickness; }
57   /** @return Thickness of aluminium of honeycomb */
58   Double_t GetAlThickness() const { return fAlThickness; }
59   /** @return Inner radius of inner honeycomb */
60   Double_t GetInnerHoneyLowR() const { return fInnerHoneyLowR; }
61   /** @return Outer radius of inner honeycomb */
62   Double_t GetInnerHoneyHighR() const { return fInnerHoneyHighR; }
63   /** @return Inner radius of outer honeycomb */
64   Double_t GetOuterHoneyLowR() const { return fOuterHoneyLowR; }
65   /** @return Outer radius of outer honeycomb */
66   Double_t GetOuterHoneyHighR() const { return fOuterHoneyHighR; }
67     
68   /** @return Inner ring information */
69   AliFMDRing* GetInner() const { return fInner; }
70   /** @return Outer ring information */
71   AliFMDRing* GetOuter() const { return fOuter; }
72   /** @param id Id of ring to get 
73       @return Pointer to ring, 0 on failure */
74   AliFMDRing* GetRing(Char_t id) const;
75   /** @param id Id of ring to get 
76       @return Z position of ring or 0 on failure */
77   Double_t GetRingZ(Char_t id) const;
78   
79   void Detector2XYZ(Char_t ring, UShort_t sector, UShort_t strip, 
80                     Double_t& x, Double_t& y, Double_t& z) const;
81
82 protected:
83   Int_t         fId;                    // Detector number
84   Double_t      fInnerZ;                // Position of outer ring along z
85   Double_t      fOuterZ;                // Position of outer ring along z
86   Double_t      fHoneycombThickness;    // Thickness of honeycomb plate
87   Double_t      fAlThickness;           // Thickness of aluminium of honeycomb
88   Double_t      fInnerHoneyLowR;        // Inner radius of inner honeycomb
89   Double_t      fInnerHoneyHighR;       // Outer radius of inner honeycomb
90   Double_t      fOuterHoneyLowR;        // Inner radius of outer honeycomb
91   Double_t      fOuterHoneyHighR;       // Outer radius of outer honeycomb
92   AliFMDRing*   fInner;                 // Pointer to inner ring information
93   AliFMDRing*   fOuter;                 // Pointer to outer ring information
94   
95   ClassDef(AliFMDDetector, 1); // 
96 };
97
98 #endif
99 //____________________________________________________________________
100 //
101 // Local Variables:
102 //   mode: C++
103 // End:
104 //
105 // EOF
106 //