]> git.uio.no Git - u/mrichter/AliRoot.git/blob - CRT/AliCRTConstants.cxx
Macro to plot pathlengths of back-to-back jets. (A. Dainese)
[u/mrichter/AliRoot.git] / CRT / AliCRTConstants.cxx
1  /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 /* $Id$ */
17
18 ////////////////////////////////////////////////////////////////////////
19 //
20 // AliCRTConstants class
21 //
22 // This class serves to group constants needed by CRT detector in 1
23 // easily accessible place. All constants are public const static data 
24 // members. The class is never instatiated.
25 //
26 // Author: Arturo Fernandez, Enrique Gamez
27 //         FCFM-UAP, Mexico.
28 //
29 ////////////////////////////////////////////////////////////////////////
30
31 #include "AliCRTConstants.h"
32
33 AliCRTConstants* AliCRTConstants::fgInstance = 0;
34
35 const Float_t AliCRTConstants::fgkCageLenght          = 477.6;
36 const Float_t AliCRTConstants::fgkCageWidth           = 166.7;
37 const Float_t AliCRTConstants::fgkCageHeight          =  10.7;
38 const Float_t AliCRTConstants::fgkSinglePaletteLenght = 363.0;
39 const Float_t AliCRTConstants::fgkSinglePaletteWidth  =  19.7;
40 const Float_t AliCRTConstants::fgkSinglePaletteHeight =   1;
41 const Float_t AliCRTConstants::fgkActiveAreaGap       = 0.7;
42 const Float_t AliCRTConstants::fgkActiveAreaLenght    = AliCRTConstants::fgkSinglePaletteLenght;
43 const Float_t AliCRTConstants::fgkActiveAreaWidth     = 156.7;
44 const Float_t AliCRTConstants::fgkActiveAreaHeight    = 2*AliCRTConstants::fgkSinglePaletteHeight + AliCRTConstants::fgkActiveAreaGap;
45 const Float_t AliCRTConstants::fgkMagnetWidth         = 654.4;
46 const Float_t AliCRTConstants::fgkMagnetLenght        = 1200;
47 const Float_t AliCRTConstants::fgkMagMinRadius        = 790;
48 const Float_t AliCRTConstants::fgkMagMaxRadius        = AliCRTConstants::fgkMagMinRadius + 20;
49 const Float_t AliCRTConstants::fgkDepth               =4420; // cm
50
51 ClassImp(AliCRTConstants)
52
53 //_____________________________________________________________________________
54 AliCRTConstants* AliCRTConstants::Instance()
55 {
56   if ( !fgInstance ) {
57     fgInstance = new AliCRTConstants;
58   }
59   return fgInstance;
60 }
61
62 //_____________________________________________________________________________
63 AliCRTConstants::~AliCRTConstants()
64 {
65   fgInstance = 0;
66 }
67
68 //_____________________________________________________________________________
69 const Float_t AliCRTConstants::CageLenght() const
70 {
71   // Module lenght
72   return fgkCageLenght;
73 }
74
75 //_____________________________________________________________________________
76 const Float_t AliCRTConstants::CageWidth() const
77 {
78   // Module width
79   return fgkCageWidth;
80 }
81
82 //_____________________________________________________________________________
83 const Float_t AliCRTConstants::CageHeight() const
84 {
85   // Module height
86   return fgkCageHeight;
87 }
88
89 //_____________________________________________________________________________
90 const Float_t AliCRTConstants::SinglePaletteLenght() const
91 {
92   // Lenght of the scintillator active zone for a single counter
93   return fgkSinglePaletteLenght;
94 }
95
96 //_____________________________________________________________________________
97 const Float_t AliCRTConstants::SinglePaletteWidth() const
98 {
99   // Width of the scintillator active zone for a single counter
100   return fgkSinglePaletteWidth;
101 }
102
103 //_____________________________________________________________________________
104 const Float_t AliCRTConstants::SinglePaletteHeight() const
105 {
106   // Height of the scintillator active zone for a single counter
107   return fgkSinglePaletteHeight;
108 }
109
110 //_____________________________________________________________________________
111 const Float_t AliCRTConstants::ActiveAreaGap() const
112
113   // Gap betwen scintillators
114   return fgkActiveAreaGap;
115 }
116
117 //_____________________________________________________________________________
118 const Float_t AliCRTConstants::ActiveAreaLenght() const
119 {
120   // Lenght of the scintillator active zone
121   return fgkActiveAreaLenght;
122 }
123
124 //_____________________________________________________________________________
125 const Float_t AliCRTConstants::ActiveAreaWidth() const
126 {
127   // Width of the scintillator active zone
128   return fgkActiveAreaWidth;
129 }
130
131 //_____________________________________________________________________________
132 const Float_t AliCRTConstants::ActiveAreaHeight() const
133 {
134   // Height of the scintillator active zone
135   return fgkActiveAreaHeight;
136 }
137
138 //_____________________________________________________________________________
139 const Float_t AliCRTConstants::MagnetWidth() const
140 {
141   // Magnet  width
142   return fgkMagnetWidth;
143 }
144
145 //_____________________________________________________________________________
146 const Float_t AliCRTConstants::MagnetLenght() const
147 {
148   // Magnet lenght
149   return fgkMagnetLenght;
150 }
151
152 //_____________________________________________________________________________
153 const Float_t AliCRTConstants::MagMinRadius() const
154 {
155   // Magnet Inner radius
156   return fgkMagMinRadius;
157 }
158
159 //_____________________________________________________________________________
160 const Float_t AliCRTConstants::MagMaxRadius() const
161 {
162   // Magnet outer radius
163   return fgkMagMaxRadius;
164 }
165
166 //_____________________________________________________________________________
167 const Float_t AliCRTConstants::Depth() const
168 {
169   // Alice IP depth
170   return fgkDepth;
171 }