]> git.uio.no Git - u/mrichter/AliRoot.git/blame - CRT/AliCRTConstants.cxx
Macro to plot pathlengths of back-to-back jets. (A. Dainese)
[u/mrichter/AliRoot.git] / CRT / AliCRTConstants.cxx
CommitLineData
fb7a1f55 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
803d1ab0 16/* $Id$ */
fb7a1f55 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//
fb7a1f55 26// Author: Arturo Fernandez, Enrique Gamez
27// FCFM-UAP, Mexico.
28//
29////////////////////////////////////////////////////////////////////////
30
31#include "AliCRTConstants.h"
32
fddb5247 33AliCRTConstants* AliCRTConstants::fgInstance = 0;
34
35const Float_t AliCRTConstants::fgkCageLenght = 477.6;
36const Float_t AliCRTConstants::fgkCageWidth = 166.7;
37const Float_t AliCRTConstants::fgkCageHeight = 10.7;
38const Float_t AliCRTConstants::fgkSinglePaletteLenght = 363.0;
39const Float_t AliCRTConstants::fgkSinglePaletteWidth = 19.7;
40const Float_t AliCRTConstants::fgkSinglePaletteHeight = 1;
41const Float_t AliCRTConstants::fgkActiveAreaGap = 0.7;
42const Float_t AliCRTConstants::fgkActiveAreaLenght = AliCRTConstants::fgkSinglePaletteLenght;
43const Float_t AliCRTConstants::fgkActiveAreaWidth = 156.7;
44const Float_t AliCRTConstants::fgkActiveAreaHeight = 2*AliCRTConstants::fgkSinglePaletteHeight + AliCRTConstants::fgkActiveAreaGap;
45const Float_t AliCRTConstants::fgkMagnetWidth = 654.4;
46const Float_t AliCRTConstants::fgkMagnetLenght = 1200;
47const Float_t AliCRTConstants::fgkMagMinRadius = 790;
48const Float_t AliCRTConstants::fgkMagMaxRadius = AliCRTConstants::fgkMagMinRadius + 20;
49const Float_t AliCRTConstants::fgkDepth =4420; // cm
fb7a1f55 50
51ClassImp(AliCRTConstants)
fddb5247 52
53//_____________________________________________________________________________
54AliCRTConstants* AliCRTConstants::Instance()
55{
56 if ( !fgInstance ) {
57 fgInstance = new AliCRTConstants;
58 }
59 return fgInstance;
60}
61
62//_____________________________________________________________________________
63AliCRTConstants::~AliCRTConstants()
64{
65 fgInstance = 0;
66}
67
68//_____________________________________________________________________________
69const Float_t AliCRTConstants::CageLenght() const
70{
71 // Module lenght
72 return fgkCageLenght;
73}
74
75//_____________________________________________________________________________
76const Float_t AliCRTConstants::CageWidth() const
77{
78 // Module width
79 return fgkCageWidth;
80}
81
82//_____________________________________________________________________________
83const Float_t AliCRTConstants::CageHeight() const
84{
85 // Module height
86 return fgkCageHeight;
87}
88
89//_____________________________________________________________________________
90const Float_t AliCRTConstants::SinglePaletteLenght() const
91{
92 // Lenght of the scintillator active zone for a single counter
93 return fgkSinglePaletteLenght;
94}
95
96//_____________________________________________________________________________
97const Float_t AliCRTConstants::SinglePaletteWidth() const
98{
99 // Width of the scintillator active zone for a single counter
100 return fgkSinglePaletteWidth;
101}
102
103//_____________________________________________________________________________
104const Float_t AliCRTConstants::SinglePaletteHeight() const
105{
106 // Height of the scintillator active zone for a single counter
107 return fgkSinglePaletteHeight;
108}
109
110//_____________________________________________________________________________
111const Float_t AliCRTConstants::ActiveAreaGap() const
112{
113 // Gap betwen scintillators
114 return fgkActiveAreaGap;
115}
116
117//_____________________________________________________________________________
118const Float_t AliCRTConstants::ActiveAreaLenght() const
119{
120 // Lenght of the scintillator active zone
121 return fgkActiveAreaLenght;
122}
123
124//_____________________________________________________________________________
125const Float_t AliCRTConstants::ActiveAreaWidth() const
126{
127 // Width of the scintillator active zone
128 return fgkActiveAreaWidth;
129}
130
131//_____________________________________________________________________________
132const Float_t AliCRTConstants::ActiveAreaHeight() const
133{
134 // Height of the scintillator active zone
135 return fgkActiveAreaHeight;
136}
137
138//_____________________________________________________________________________
139const Float_t AliCRTConstants::MagnetWidth() const
140{
141 // Magnet width
142 return fgkMagnetWidth;
143}
144
145//_____________________________________________________________________________
146const Float_t AliCRTConstants::MagnetLenght() const
147{
148 // Magnet lenght
149 return fgkMagnetLenght;
150}
151
152//_____________________________________________________________________________
153const Float_t AliCRTConstants::MagMinRadius() const
154{
155 // Magnet Inner radius
156 return fgkMagMinRadius;
157}
158
159//_____________________________________________________________________________
160const Float_t AliCRTConstants::MagMaxRadius() const
161{
162 // Magnet outer radius
163 return fgkMagMaxRadius;
164}
165
166//_____________________________________________________________________________
167const Float_t AliCRTConstants::Depth() const
168{
169 // Alice IP depth
170 return fgkDepth;
171}