1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 ////////////////////////////////////////////////////////////////////////
20 // AliCRTConstants class
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.
26 // Author: Arturo Fernandez, Enrique Gamez
29 ////////////////////////////////////////////////////////////////////////
31 #include "AliCRTConstants.h"
33 AliCRTConstants* AliCRTConstants::fgInstance = 0;
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
51 ClassImp(AliCRTConstants)
53 //_____________________________________________________________________________
54 AliCRTConstants* AliCRTConstants::Instance()
57 fgInstance = new AliCRTConstants;
62 //_____________________________________________________________________________
63 AliCRTConstants::~AliCRTConstants()
68 //_____________________________________________________________________________
69 const Float_t AliCRTConstants::CageLenght() const
75 //_____________________________________________________________________________
76 const Float_t AliCRTConstants::CageWidth() const
82 //_____________________________________________________________________________
83 const Float_t AliCRTConstants::CageHeight() const
89 //_____________________________________________________________________________
90 const Float_t AliCRTConstants::SinglePaletteLenght() const
92 // Lenght of the scintillator active zone for a single counter
93 return fgkSinglePaletteLenght;
96 //_____________________________________________________________________________
97 const Float_t AliCRTConstants::SinglePaletteWidth() const
99 // Width of the scintillator active zone for a single counter
100 return fgkSinglePaletteWidth;
103 //_____________________________________________________________________________
104 const Float_t AliCRTConstants::SinglePaletteHeight() const
106 // Height of the scintillator active zone for a single counter
107 return fgkSinglePaletteHeight;
110 //_____________________________________________________________________________
111 const Float_t AliCRTConstants::ActiveAreaGap() const
113 // Gap betwen scintillators
114 return fgkActiveAreaGap;
117 //_____________________________________________________________________________
118 const Float_t AliCRTConstants::ActiveAreaLenght() const
120 // Lenght of the scintillator active zone
121 return fgkActiveAreaLenght;
124 //_____________________________________________________________________________
125 const Float_t AliCRTConstants::ActiveAreaWidth() const
127 // Width of the scintillator active zone
128 return fgkActiveAreaWidth;
131 //_____________________________________________________________________________
132 const Float_t AliCRTConstants::ActiveAreaHeight() const
134 // Height of the scintillator active zone
135 return fgkActiveAreaHeight;
138 //_____________________________________________________________________________
139 const Float_t AliCRTConstants::MagnetWidth() const
142 return fgkMagnetWidth;
145 //_____________________________________________________________________________
146 const Float_t AliCRTConstants::MagnetLenght() const
149 return fgkMagnetLenght;
152 //_____________________________________________________________________________
153 const Float_t AliCRTConstants::MagMinRadius() const
155 // Magnet Inner radius
156 return fgkMagMinRadius;
159 //_____________________________________________________________________________
160 const Float_t AliCRTConstants::MagMaxRadius() const
162 // Magnet outer radius
163 return fgkMagMaxRadius;
166 //_____________________________________________________________________________
167 const Float_t AliCRTConstants::Depth() const