]>
Commit | Line | Data |
---|---|---|
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 | ||
88cb7938 | 16 | /* $Id$ */ |
fb7a1f55 | 17 | |
18 | /////////////////////////////////////////////////////////////////////////////// | |
19 | // // | |
20 | // Cosmic Rays ALICE Trigger // | |
21 | // This class contains the basic functions for the Cosmic Ray ALICE // | |
22 | // detector. Functions specific to one particular geometry are // | |
23 | // contained in the derived classes // | |
24 | // | |
25 | // Begin_Html | |
26 | /* | |
27 | <img src="picts/AliCRTClass.gif"> | |
28 | </pre> | |
29 | <p>The responsible person for this module is | |
30 | <a href="mailto:Enrique.Gamez.Flores@cern.ch">Enrique Gamez Flores</a>. | |
31 | </font> | |
32 | <pre> | |
33 | */ | |
34 | //End_Html | |
35 | // | |
36 | // | |
37 | // // | |
38 | /////////////////////////////////////////////////////////////////////////////// | |
39 | ||
fb7a1f55 | 40 | #include <TTree.h> |
fb7a1f55 | 41 | |
88cb7938 | 42 | #include "AliRun.h" |
387cc25e | 43 | #include "AliMagF.h" |
44 | ||
45 | #include "AliCRT.h" | |
46 | ||
fb7a1f55 | 47 | ClassImp(AliCRT) |
48 | ||
fb7a1f55 | 49 | //_____________________________________________________________________________ |
50 | AliCRT::AliCRT() | |
387cc25e | 51 | : AliDetector() |
fb7a1f55 | 52 | { |
53 | // | |
387cc25e | 54 | // Default constructor |
fb7a1f55 | 55 | // |
fb7a1f55 | 56 | } |
57 | ||
58 | //_____________________________________________________________________________ | |
59 | AliCRT::AliCRT(const char *name, const char *title) | |
387cc25e | 60 | : AliDetector(name, title) |
fb7a1f55 | 61 | { |
62 | // | |
387cc25e | 63 | // Standard constructor |
fb7a1f55 | 64 | // |
fb7a1f55 | 65 | } |
66 | ||
d2293f45 | 67 | //_____________________________________________________________________________ |
68 | AliCRT::AliCRT(const AliCRT& crt) | |
387cc25e | 69 | : AliDetector(crt) |
d2293f45 | 70 | { |
71 | // | |
387cc25e | 72 | // Copy constructor |
d2293f45 | 73 | // |
74 | crt.Copy(*this); | |
d2293f45 | 75 | } |
76 | ||
fb7a1f55 | 77 | //_____________________________________________________________________________ |
78 | AliCRT::~AliCRT() | |
79 | { | |
80 | // | |
387cc25e | 81 | // Default destructor |
fb7a1f55 | 82 | // |
fb7a1f55 | 83 | } |
84 | ||
85 | //_____________________________________________________________________________ | |
387cc25e | 86 | AliCRT& AliCRT::operator=(const AliCRT& crt) |
fb7a1f55 | 87 | { |
d2293f45 | 88 | // |
387cc25e | 89 | // Asingment operator. |
fb7a1f55 | 90 | // |
387cc25e | 91 | crt.Copy(*this); |
92 | return *this; | |
fb7a1f55 | 93 | } |
94 | ||
95 | //_____________________________________________________________________________ | |
96 | void AliCRT::CreateMaterials() | |
97 | { | |
98 | // Magnatic field inside the pit | |
99 | Int_t isxfld = gAlice->Field()->Integ(); | |
100 | Float_t sxmgmx = gAlice->Field()->Max(); | |
101 | ||
102 | //Magnetic field above the Magnet. | |
103 | Int_t xfield = 0; // no Magnetic field. | |
104 | Float_t xfieldm = 0; | |
105 | Float_t xepsil = 0.1; // Tracking precission in cm. obove the pit | |
106 | ||
107 | // --- Define the various materials for GEANT --- | |
fb7a1f55 | 108 | Float_t epsil, stmin, tmaxfd, deemax, stemax; |
109 | // | |
110 | // Aluminum | |
111 | AliMaterial(9, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2); | |
112 | AliMaterial(29, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2); | |
113 | AliMaterial(49, "ALUMINIUM$", 26.98, 13., 2.7, 8.9, 37.2); | |
114 | // | |
115 | // Iron | |
116 | AliMaterial(10, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1); | |
117 | AliMaterial(30, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1); | |
118 | AliMaterial(50, "IRON$ ", 55.85, 26., 7.87, 1.76, 17.1); | |
119 | // | |
120 | // Air | |
121 | AliMaterial(15, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500.); | |
122 | AliMaterial(35, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500.); | |
123 | AliMaterial(55, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500.); | |
d2293f45 | 124 | AliMaterial(75, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500.); |
125 | AliMaterial(95, "AIR$ ", 14.61, 7.3, .001205, 30423.24, 67500.); | |
126 | ||
fb7a1f55 | 127 | |
128 | // Scintillator material polystyrene | |
129 | Float_t aP[2] = {12.011, 1.00794}; | |
130 | Float_t zP[2] = {6.0, 1.0}; | |
131 | Float_t wP[2] = {1.0, 1.0}; | |
132 | Float_t dP = 1.032; | |
2c3b33cd | 133 | AliMixture(13, "Polystyrene$", aP, zP, dP, -2, wP); |
c8a19f01 | 134 | // Subalpine Molasse over the ALICE hall. |
2c3b33cd | 135 | Float_t aMolasse[10] = { 1., 12.01, 15.994, 22.99, 24.305, 26.98, 28.086, 39.1, 40.08, 55.85 }; |
c8a19f01 | 136 | Float_t zMolasse[10] = {1., 6., 8., 11., 12., 13., 14., 19., 20., 26.}; |
2c3b33cd | 137 | Float_t wMolasse[10] = {0.008, 0.043, 0.485, 0.007, 0.042, 0.037, 0.215, 0.023, 0.1, 0.04}; |
c8a19f01 | 138 | Float_t dMolasse = 2.40; |
2c3b33cd | 139 | AliMixture(24, "Molasse$", aMolasse, zMolasse, dMolasse, 10, wMolasse); |
387cc25e | 140 | |
fb7a1f55 | 141 | // **************** |
142 | // Defines tracking media parameters. | |
143 | // Les valeurs sont commentees pour laisser le defaut | |
144 | // a GEANT (version 3-21, page CONS200), f.m. | |
145 | epsil = .001; // Tracking precision, Inside the pit | |
146 | stemax = -1.; // Maximum displacement for multiple scattering | |
147 | tmaxfd = -20.; // Maximum angle due to field deflection | |
148 | deemax = -.3; // Maximum fractional energy loss, DLS | |
149 | stmin = -.8; | |
150 | // *************** | |
151 | ||
d2293f45 | 152 | Float_t atmaxfd = 10.; |
153 | Float_t adeemax = -0.1; | |
154 | Float_t aepsil = 0.1; | |
155 | Float_t astmin = -10.; | |
156 | ||
fb7a1f55 | 157 | // |
158 | // Aluminum | |
159 | AliMedium(9, "ALU_C0 ", 9, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
160 | AliMedium(29, "ALU_C1 ", 29, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
161 | AliMedium(49, "ALU_C2 ", 49, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
162 | // | |
163 | // Iron | |
164 | AliMedium(10, "FE_C0 ", 10, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
165 | AliMedium(30, "FE_C1 ", 30, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
166 | AliMedium(50, "FE_C2 ", 50, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
167 | // | |
168 | // Air | |
d2293f45 | 169 | AliMedium(15, "AIR_C0 ", 15, 0, isxfld, sxmgmx, atmaxfd, stemax, adeemax, aepsil, astmin); |
170 | AliMedium(35, "AIR_C1 ", 35, 0, isxfld, sxmgmx, atmaxfd, stemax, adeemax, aepsil, astmin); | |
171 | AliMedium(55, "AIR_C2 ", 55, 0, isxfld, sxmgmx, atmaxfd, stemax, adeemax, aepsil, astmin); | |
172 | AliMedium(75, "AIR_C4 ", 75, 0, isxfld, sxmgmx, atmaxfd, stemax, adeemax, aepsil, astmin); | |
387cc25e | 173 | AliMedium(95, "AIR_C5 ", 95, 0, isxfld, sxmgmx, atmaxfd, stemax, adeemax, aepsil, astmin); |
d2293f45 | 174 | |
fb7a1f55 | 175 | |
176 | ||
177 | // The scintillator of the CPV made of Polystyrene | |
2c3b33cd | 178 | // scintillator -> idtmed[1112] |
387cc25e | 179 | AliMedium(12 , "CPV scint. ", 13, 1, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin); |
2c3b33cd | 180 | AliMedium(13 , "CPV scint. ", 13, 1, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin); |
387cc25e | 181 | AliMedium(14 , "CPV scint. ", 13, 1, isxfld, sxmgmx, 10., stemax, deemax, epsil, stmin); |
182 | ||
2c3b33cd | 183 | // Molasse -> idtmed[1123] |
184 | AliMedium(24 , "Molasse ", 24, 0, xfield, xfieldm, tmaxfd, stemax, deemax, xepsil, stmin); | |
fb7a1f55 | 185 | |
d2293f45 | 186 | // Concrete, in case if we need to put hte shafts by ourselves. |
fb7a1f55 | 187 | |
d2293f45 | 188 | Float_t aconc[10] = { 1.,12.01,15.994,22.99,24.305,26.98,28.086,39.1,40.08,55.85 }; |
189 | Float_t zconc[10] = { 1.,6.,8.,11.,12.,13.,14.,19.,20.,26. }; | |
190 | Float_t wconc[10] = { .01,.001,.529107,.016,.002,.033872,.337021,.013,.044,.014 }; | |
387cc25e | 191 | |
d2293f45 | 192 | AliMixture(17, "CONCRETE$", aconc, zconc, 2.35, 10, wconc); |
193 | // Concrete | |
194 | AliMedium(17, "CC_C0 ", 17, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); | |
387cc25e | 195 | AliMedium(27, "CC_C1 ", 17, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); // MX24 |
196 | AliMedium(37, "CC_C2 ", 17, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); // PM25 | |
197 | AliMedium(47, "CC_C3 ", 17, 0, isxfld, sxmgmx, tmaxfd, stemax, deemax, epsil, stmin); // PGC2 | |
fb7a1f55 | 198 | |
d2293f45 | 199 | } |
fb7a1f55 | 200 | |
fb7a1f55 | 201 | //_____________________________________________________________________________ |
d2293f45 | 202 | void AliCRT::SetTreeAddress() |
203 | { | |
204 | ||
205 | TBranch *branch; | |
206 | char branchname[20]; | |
207 | sprintf(branchname,"%s",GetName()); | |
387cc25e | 208 | |
d2293f45 | 209 | // Branch address for hit tree |
88cb7938 | 210 | TTree *treeH = fLoader->TreeH(); |
d2293f45 | 211 | if (treeH && fHits) { |
212 | branch = treeH->GetBranch(branchname); | |
213 | if (branch) branch->SetAddress(&fHits); | |
214 | } | |
d2293f45 | 215 | } |