]>
Commit | Line | Data |
---|---|---|
aa7c9120 | 1 | <!DOCTYPE HTML PUBLIC "-// IETF/DTD HTML 2.0// EN"> |
2 | <html> | |
3 | <!-- --> | |
4 | <!-- Author: ROOT team (rootdev@hpsalo.cern.ch) --> | |
5 | <!-- --> | |
6 | <!-- Date: Tue Apr 3 16:12:48 2001 --> | |
7 | <!-- --> | |
8 | <head> | |
9 | <title>AliPHOS - source file</title> | |
10 | <link rev=made href="mailto:rootdev@root.cern.ch"> | |
11 | <meta name="rating" content="General"> | |
12 | <meta name="objecttype" content="Manual"> | |
13 | <meta name="keywords" content="software development, oo, object oriented, unix, x11, windows, c++, html, rene brun, fons rademakers"> | |
14 | <meta name="description" content="ROOT - An Object Oriented Framework For Large Scale Data Analysis."> | |
15 | </head> | |
16 | <body BGCOLOR="#ffffff" LINK="#0000ff" VLINK="#551a8b" ALINK="#ff0000" TEXT="#000000"> | |
17 | <a name="TopOfPage"></a> | |
18 | <pre> | |
19 | /************************************************************************** | |
20 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
21 | * * | |
22 | * Author: The ALICE Off-line Project. * | |
23 | * Contributors are mentioned in the code where appropriate. * | |
24 | * * | |
25 | * Permission to use, copy, modify and distribute this software and its * | |
26 | * documentation strictly for non-commercial purposes is hereby granted * | |
27 | * without fee, provided that the above copyright notice appears in all * | |
28 | * copies and that both the copyright notice and this permission notice * | |
29 | * appear in the supporting documentation. The authors make no claims * | |
30 | * about the suitability of this software for any purpose. It is * | |
31 | * provided "as is" without express or implied warranty. * | |
32 | **************************************************************************/ | |
33 | ||
34 | /* $Id$ */ | |
35 | ||
36 | <b>//_________________________________________________________________________</b> | |
37 | <b>// Base Class for PHOS description:</b> | |
38 | <b>// PHOS consists of a PbWO4 calorimeter (EMCA) and a gazeous charged </b> | |
39 | <b>// particles detector (CPV or PPSD).</b> | |
40 | <b>// The only provided method here is CreateMaterials, </b> | |
41 | <b>// which defines the materials common to all PHOS versions. </b> | |
42 | <b>// </b> | |
43 | <b>//*-- Author: Laurent Aphecetche & Yves Schutz (SUBATECH) </b> | |
44 | <b>//////////////////////////////////////////////////////////////////////////////</b> | |
45 | ||
46 | <b>// --- ROOT system ---</b> | |
47 | class TFile; | |
48 | #include "TTree.h" | |
49 | ||
50 | <b>// --- Standard library ---</b> | |
51 | ||
52 | #include <strstream.h> | |
53 | <b>// --- AliRoot header files ---</b> | |
54 | ||
55 | #include "<a href="../AliPHOS.h">AliPHOS.h</a>" | |
56 | #include "AliMC.h" | |
57 | #include "AliRun.h" | |
58 | #include "AliMagF.h" | |
59 | #include "<a href="../AliPHOSGeometry.h">AliPHOSGeometry.h</a>" | |
60 | ||
61 | ClassImp(AliPHOS) | |
62 | ||
63 | <b>//____________________________________________________________________________</b> | |
64 | <a href=".././AliPHOS.html#AliPHOS:AliPHOS">AliPHOS::AliPHOS</a>():AliDetector() | |
65 | { | |
66 | <b> // ctor </b> | |
67 | <b> //We do not create objects, because these pointers will be overwritten durin reading from file.</b> | |
68 | <a href=".././AliPHOS.html#AliPHOS:fSDigits">fSDigits</a> = 0 ; | |
69 | fDigits = 0 ; | |
70 | <a href=".././AliPHOS.html#AliPHOS:fEmcRecPoints">fEmcRecPoints</a> = 0 ; | |
71 | <a href=".././AliPHOS.html#AliPHOS:fPpsdRecPoints">fPpsdRecPoints</a> = 0 ; | |
72 | <a href=".././AliPHOS.html#AliPHOS:fTrackSegments">fTrackSegments</a> = 0 ; | |
73 | <a href=".././AliPHOS.html#AliPHOS:fRecParticles">fRecParticles</a> = 0 ; | |
74 | ||
75 | } | |
76 | <b>//____________________________________________________________________________</b> | |
77 | <a href=".././AliPHOS.html#AliPHOS:AliPHOS">AliPHOS::AliPHOS</a>(const <a href="../ListOfTypes.html#char">char</a>* name, const <a href="../ListOfTypes.html#char">char</a>* title): AliDetector(name,title) | |
78 | { | |
79 | <b> // ctor</b> | |
80 | ||
81 | <a href=".././AliPHOS.html#AliPHOS:fSDigits">fSDigits</a> = new TClonesArray("<a href=".././AliPHOSDigit.html">AliPHOSDigit</a>",1000) ; | |
82 | fDigits = new TClonesArray("<a href=".././AliPHOSDigit.html">AliPHOSDigit</a>",1000) ; | |
83 | <a href=".././AliPHOS.html#AliPHOS:fEmcRecPoints">fEmcRecPoints</a> = new TObjArray(100) ; | |
84 | <a href=".././AliPHOS.html#AliPHOS:fPpsdRecPoints">fPpsdRecPoints</a> = new TObjArray(100) ; | |
85 | <a href=".././AliPHOS.html#AliPHOS:fTrackSegments">fTrackSegments</a> = new TClonesArray("<a href=".././AliPHOSTrackSegment.html">AliPHOSTrackSegment</a>",100); | |
86 | <a href=".././AliPHOS.html#AliPHOS:fRecParticles">fRecParticles</a> = new TClonesArray("<a href=".././AliPHOSRecParticle.html">AliPHOSRecParticle</a>",100); | |
87 | ||
88 | } | |
89 | <b>//____________________________________________________________________________</b> | |
90 | <a name="AliPHOS:~AliPHOS"> </a><a href=".././AliPHOS.html">AliPHOS</a>::~<a href=".././AliPHOS.html">AliPHOS</a>() | |
91 | { | |
92 | <b> // dtor</b> | |
93 | if(<a href=".././AliPHOS.html#AliPHOS:fEmcRecPoints">fEmcRecPoints</a>) | |
94 | <a href=".././AliPHOS.html#AliPHOS:fEmcRecPoints">fEmcRecPoints</a>->Delete() ; | |
95 | delete <a href=".././AliPHOS.html#AliPHOS:fEmcRecPoints">fEmcRecPoints</a> ; | |
96 | if(<a href=".././AliPHOS.html#AliPHOS:fPpsdRecPoints">fPpsdRecPoints</a>) | |
97 | <a href=".././AliPHOS.html#AliPHOS:fPpsdRecPoints">fPpsdRecPoints</a>->Delete() ; | |
98 | delete <a href=".././AliPHOS.html#AliPHOS:fPpsdRecPoints">fPpsdRecPoints</a> ; | |
99 | if(<a href=".././AliPHOS.html#AliPHOS:fTrackSegments">fTrackSegments</a>) | |
100 | <a href=".././AliPHOS.html#AliPHOS:fTrackSegments">fTrackSegments</a>->Delete() ; | |
101 | delete <a href=".././AliPHOS.html#AliPHOS:fTrackSegments">fTrackSegments</a> ; | |
102 | if(<a href=".././AliPHOS.html#AliPHOS:fRecParticles">fRecParticles</a>) | |
103 | <a href=".././AliPHOS.html#AliPHOS:fRecParticles">fRecParticles</a>->Delete() ; | |
104 | delete <a href=".././AliPHOS.html#AliPHOS:fRecParticles">fRecParticles</a> ; | |
105 | delete fHits ; | |
106 | delete fDigits ; | |
107 | delete <a href=".././AliPHOS.html#AliPHOS:fSDigits">fSDigits</a> ; | |
108 | } | |
109 | ||
110 | <b>//____________________________________________________________________________</b> | |
111 | <a name="AliPHOS:CreateMaterials"> </a><a href="../ListOfTypes.html#void">void</a> <a href=".././AliPHOS.html#AliPHOS:CreateMaterials">AliPHOS::CreateMaterials</a>() | |
112 | { | |
113 | <b> // Definitions of materials to build PHOS and associated tracking media.</b> | |
114 | <b> // media <a href="../ListOfTypes.html#number">number</a> in idtmed are 699 to 798.</b> | |
115 | ||
116 | <b> // --- The PbWO4 crystals ---</b> | |
117 | <a href="../ListOfTypes.html#Float_t">Float_t</a> aX[3] = {207.19, 183.85, 16.0} ; | |
118 | <a href="../ListOfTypes.html#Float_t">Float_t</a> zX[3] = {82.0, 74.0, 8.0} ; | |
119 | <a href="../ListOfTypes.html#Float_t">Float_t</a> wX[3] = {1.0, 1.0, 4.0} ; | |
120 | <a href="../ListOfTypes.html#Float_t">Float_t</a> dX = 8.28 ; | |
121 | ||
122 | AliMixture(0, "PbWO4$", aX, zX, dX, -3, wX) ; | |
123 | ||
124 | ||
125 | <b> // --- The polysterene scintillator (CH) ---</b> | |
126 | <a href="../ListOfTypes.html#Float_t">Float_t</a> aP[2] = {12.011, 1.00794} ; | |
127 | <a href="../ListOfTypes.html#Float_t">Float_t</a> zP[2] = {6.0, 1.0} ; | |
128 | <a href="../ListOfTypes.html#Float_t">Float_t</a> wP[2] = {1.0, 1.0} ; | |
129 | <a href="../ListOfTypes.html#Float_t">Float_t</a> dP = 1.032 ; | |
130 | ||
131 | AliMixture(1, "Polystyrene$", aP, zP, dP, -2, wP) ; | |
132 | ||
133 | <b> // --- Aluminium ---</b> | |
134 | AliMaterial(2, "Al$", 26.98, 13., 2.7, 8.9, 999., 0, 0) ; | |
135 | <b> // --- Absorption length is ignored ^</b> | |
136 | ||
137 | <b> // --- Tyvek (CnH2n) ---</b> | |
138 | <a href="../ListOfTypes.html#Float_t">Float_t</a> aT[2] = {12.011, 1.00794} ; | |
139 | <a href="../ListOfTypes.html#Float_t">Float_t</a> zT[2] = {6.0, 1.0} ; | |
140 | <a href="../ListOfTypes.html#Float_t">Float_t</a> wT[2] = {1.0, 2.0} ; | |
141 | <a href="../ListOfTypes.html#Float_t">Float_t</a> dT = 0.331 ; | |
142 | ||
143 | AliMixture(3, "Tyvek$", aT, zT, dT, -2, wT) ; | |
144 | ||
145 | <b> // --- Polystyrene foam ---</b> | |
146 | <a href="../ListOfTypes.html#Float_t">Float_t</a> aF[2] = {12.011, 1.00794} ; | |
147 | <a href="../ListOfTypes.html#Float_t">Float_t</a> zF[2] = {6.0, 1.0} ; | |
148 | <a href="../ListOfTypes.html#Float_t">Float_t</a> wF[2] = {1.0, 1.0} ; | |
149 | <a href="../ListOfTypes.html#Float_t">Float_t</a> dF = 0.12 ; | |
150 | ||
151 | AliMixture(4, "Foam$", aF, zF, dF, -2, wF) ; | |
152 | ||
153 | <b> // --- Titanium ---</b> | |
154 | <a href="../ListOfTypes.html#Float_t">Float_t</a> aTIT[3] = {47.88, 26.98, 54.94} ; | |
155 | <a href="../ListOfTypes.html#Float_t">Float_t</a> zTIT[3] = {22.0, 13.0, 25.0} ; | |
156 | <a href="../ListOfTypes.html#Float_t">Float_t</a> wTIT[3] = {69.0, 6.0, 1.0} ; | |
157 | <a href="../ListOfTypes.html#Float_t">Float_t</a> dTIT = 4.5 ; | |
158 | ||
159 | AliMixture(5, "Titanium$", aTIT, zTIT, dTIT, -3, wTIT); | |
160 | ||
161 | <b> // --- Silicon ---</b> | |
162 | AliMaterial(6, "Si$", 28.0855, 14., 2.33, 9.36, 42.3, 0, 0) ; | |
163 | ||
164 | ||
165 | ||
166 | <b> // --- Foam thermo insulation ---</b> | |
167 | <a href="../ListOfTypes.html#Float_t">Float_t</a> aTI[2] = {12.011, 1.00794} ; | |
168 | <a href="../ListOfTypes.html#Float_t">Float_t</a> zTI[2] = {6.0, 1.0} ; | |
169 | <a href="../ListOfTypes.html#Float_t">Float_t</a> wTI[2] = {1.0, 1.0} ; | |
170 | <a href="../ListOfTypes.html#Float_t">Float_t</a> dTI = 0.1 ; | |
171 | ||
172 | AliMixture(7, "Thermo Insul.$", aTI, zTI, dTI, -2, wTI) ; | |
173 | ||
174 | <b> // --- Textolitn ---</b> | |
175 | <a href="../ListOfTypes.html#Float_t">Float_t</a> aTX[4] = {16.0, 28.09, 12.011, 1.00794} ; | |
176 | <a href="../ListOfTypes.html#Float_t">Float_t</a> zTX[4] = {8.0, 14.0, 6.0, 1.0} ; | |
177 | <a href="../ListOfTypes.html#Float_t">Float_t</a> wTX[4] = {292.0, 68.0, 462.0, 736.0} ; | |
178 | <a href="../ListOfTypes.html#Float_t">Float_t</a> dTX = 1.75 ; | |
179 | ||
180 | AliMixture(8, "Textolit$", aTX, zTX, dTX, -4, wTX) ; | |
181 | ||
182 | <b> //--- FR4 ---</b> | |
183 | <a href="../ListOfTypes.html#Float_t">Float_t</a> aFR[3] = {28.0855, 15.9994, 17.749} ; | |
184 | <a href="../ListOfTypes.html#Float_t">Float_t</a> zFR[3] = {14., 8., 8.875} ; | |
185 | <a href="../ListOfTypes.html#Float_t">Float_t</a> wFR[3] = {.28, .32, .4} ; | |
186 | <a href="../ListOfTypes.html#Float_t">Float_t</a> dFR = 1.8 ; | |
187 | ||
188 | AliMixture(9, "FR4$", aFR, zFR, dFR, -3, wFR) ; | |
189 | ||
190 | <b> // --- The Composite Material for micromegas (so far polyetylene) --- </b> | |
191 | <a href="../ListOfTypes.html#Float_t">Float_t</a> aCM[2] = {12.01, 1.} ; | |
192 | <a href="../ListOfTypes.html#Float_t">Float_t</a> zCM[2] = {6., 1.} ; | |
193 | <a href="../ListOfTypes.html#Float_t">Float_t</a> wCM[2] = {1., 2.} ; | |
194 | <a href="../ListOfTypes.html#Float_t">Float_t</a> dCM = 0.935 ; | |
195 | ||
196 | AliMixture(10, "Compo Mat$", aCM, zCM, dCM, -2, wCM) ; | |
197 | ||
198 | <b> // --- Copper --- </b> | |
199 | AliMaterial(11, "Cu$", 63.546, 29, 8.96, 1.43, 14.8, 0, 0) ; | |
200 | ||
201 | <b> // --- G10 : Printed Circuit material --- </b> | |
202 | <a href="../ListOfTypes.html#Float_t">Float_t</a> aG10[4] = { 12., 1., 16., 28.} ; | |
203 | <a href="../ListOfTypes.html#Float_t">Float_t</a> zG10[4] = { 6., 1., 8., 14.} ; | |
204 | <a href="../ListOfTypes.html#Float_t">Float_t</a> wG10[4] = { .259, .288, .248, .205} ; | |
205 | <a href="../ListOfTypes.html#Float_t">Float_t</a> dG10 = 1.7 ; | |
206 | ||
207 | AliMixture(12, "G10$", aG10, zG10, dG10, -4, wG10); | |
208 | ||
209 | <b> // --- Lead --- </b> | |
210 | AliMaterial(13, "Pb$", 207.2, 82, 11.35, 0.56, 0., 0, 0) ; | |
211 | ||
212 | <b> // --- The gas mixture --- </b> | |
213 | <b> // Co2</b> | |
214 | <a href="../ListOfTypes.html#Float_t">Float_t</a> aCO[2] = {12.0, 16.0} ; | |
215 | <a href="../ListOfTypes.html#Float_t">Float_t</a> zCO[2] = {6.0, 8.0} ; | |
216 | <a href="../ListOfTypes.html#Float_t">Float_t</a> wCO[2] = {1.0, 2.0} ; | |
217 | <a href="../ListOfTypes.html#Float_t">Float_t</a> dCO = 0.001977 ; | |
218 | ||
219 | AliMixture(14, "CO2$", aCO, zCO, dCO, -2, wCO); | |
220 | ||
221 | <b> // Ar</b> | |
222 | <a href="../ListOfTypes.html#Float_t">Float_t</a> dAr = 0.001782 ; | |
223 | AliMaterial(15, "Ar$", 39.948, 18.0, dAr, 14.0, 0., 0, 0) ; | |
224 | ||
225 | <b> // ArCo2</b> | |
226 | <a href="../ListOfTypes.html#Char_t">Char_t</a> namate[21]; | |
227 | <a href="../ListOfTypes.html#Float_t">Float_t</a> aGM[2] ; | |
228 | <a href="../ListOfTypes.html#Float_t">Float_t</a> zGM[2] ; | |
229 | <a href="../ListOfTypes.html#Float_t">Float_t</a> wGM[2] ; | |
230 | <a href="../ListOfTypes.html#Float_t">Float_t</a> dGM ; | |
231 | ||
232 | <a href="../ListOfTypes.html#Float_t">Float_t</a> absL, radL, density ; | |
233 | <a href="../ListOfTypes.html#Float_t">Float_t</a> buf[1] ; | |
234 | <a href="../ListOfTypes.html#Int_t">Int_t</a> nbuf ; | |
235 | ||
236 | gMC->Gfmate((*fIdmate)[15], namate, aGM[0], zGM[0], density, radL, absL, buf, nbuf) ; // Get properties of Ar | |
237 | gMC->Gfmate((*fIdmate)[14], namate, aGM[1], zGM[1], density, radL, absL, buf, nbuf) ; // Get properties of CO2 | |
238 | ||
239 | ||
240 | <b> // Create gas mixture </b> | |
241 | ||
242 | <a href="../ListOfTypes.html#Float_t">Float_t</a> arContent = 0.80 ; // Ar-content of the Ar/CO2-mixture (80% / 20%) | |
243 | ||
244 | wGM[0] = arContent; | |
245 | wGM[1] = 1. - arContent ; | |
246 | dGM = wGM[0] * dAr + wGM[1] * dCO; | |
247 | ||
248 | AliMixture(16, "ArCO2$", aGM, zGM, dGM, 2, wGM) ; | |
249 | ||
250 | <b> // --- Stainless steel (let it be pure iron) ---</b> | |
251 | AliMaterial(17, "Steel$", 55.845, 26, 7.87, 1.76, 0., 0, 0) ; | |
252 | ||
253 | <b> // --- Air ---</b> | |
254 | AliMaterial(99, "Air$", 14.61, 7.3, 0.001205, 30420., 67500., 0, 0) ; | |
255 | ||
256 | ||
257 | <b> // DEFINITION OF THE TRACKING MEDIA</b> | |
258 | ||
259 | <b> // for PHOS: idtmed[699->798] equivalent to fIdtmed[0->100]</b> | |
260 | <a href="../ListOfTypes.html#Int_t">Int_t</a> * idtmed = fIdtmed->GetArray() - 699 ; | |
261 | <a href="../ListOfTypes.html#Int_t">Int_t</a> isxfld = gAlice->Field()->Integ() ; | |
262 | <a href="../ListOfTypes.html#Float_t">Float_t</a> sxmgmx = gAlice->Field()->Max() ; | |
263 | ||
264 | <b> // The scintillator of the calorimeter made of PBW04 -> idtmed[699]</b> | |
265 | AliMedium(0, "PHOS Xtal $", 0, 1, | |
266 | isxfld, sxmgmx, 10.0, 0.1, 0.1, 0.1, 0.1, 0, 0) ; | |
267 | ||
268 | <b> // The scintillator of the CPV made of Polystyrene scintillator -> idtmed[700]</b> | |
269 | AliMedium(1, "CPV scint. $", 1, 1, | |
270 | isxfld, sxmgmx, 10.0, 0.1, 0.1, 0.1, 0.1, 0, 0) ; | |
271 | ||
272 | <b> // Various Aluminium parts made of Al -> idtmed[701]</b> | |
273 | AliMedium(2, "Al parts $", 2, 0, | |
274 | isxfld, sxmgmx, 10.0, 0.1, 0.1, 0.001, 0.001, 0, 0) ; | |
275 | ||
276 | <b> // The Tywek which wraps the calorimeter crystals -> idtmed[702]</b> | |
277 | AliMedium(3, "Tyvek wrapper$", 3, 0, | |
278 | isxfld, sxmgmx, 10.0, 0.1, 0.1, 0.001, 0.001, 0, 0) ; | |
279 | ||
280 | <b> // The Polystyrene foam around the calorimeter module -> idtmed[703]</b> | |
281 | AliMedium(4, "Polyst. foam $", 4, 0, | |
282 | isxfld, sxmgmx, 10.0, 0.1, 0.1, 0.1, 0.1, 0, 0) ; | |
283 | ||
284 | <b> // The Titanium around the calorimeter crystal -> idtmed[704]</b> | |
285 | AliMedium(5, "Titan. cover $", 5, 0, | |
286 | isxfld, sxmgmx, 10.0, 0.1, 0.1, 0.0001, 0.0001, 0, 0) ; | |
287 | ||
288 | <b> // The Silicon of the pin diode to read out the calorimeter crystal -> idtmed[705] </b> | |
289 | AliMedium(6, "Si PIN $", 6, 0, | |
290 | isxfld, sxmgmx, 10.0, 0.1, 0.1, 0.01, 0.01, 0, 0) ; | |
291 | ||
292 | <b> // The thermo insulating material of the box which contains the calorimeter module -> idtmed[706]</b> | |
293 | AliMedium(7, "Thermo Insul.$", 7, 0, | |
294 | isxfld, sxmgmx, 10.0, 0.1, 0.1, 0.1, 0.1, 0, 0) ; | |
295 | ||
296 | <b> // The Textolit which makes up the box which contains the calorimeter module -> idtmed[707]</b> | |
297 | AliMedium(8, "Textolit $", 8, 0, | |
298 | isxfld, sxmgmx, 10.0, 0.1, 0.1, 0.1, 0.1, 0, 0) ; | |
299 | ||
300 | <b> // FR4: The Plastic which makes up the frame of micromegas -> idtmed[708]</b> | |
301 | AliMedium(9, "FR4 $", 9, 0, | |
302 | isxfld, sxmgmx, 10.0, 0.1, 0.1, 0.1, 0.0001, 0, 0) ; | |
303 | ||
304 | ||
305 | <b> // The Composite Material for micromegas -> idtmed[709]</b> | |
306 | AliMedium(10, "CompoMat $", 10, 0, | |
307 | isxfld, sxmgmx, 10.0, 0.1, 0.1, 0.1, 0.1, 0, 0) ; | |
308 | ||
309 | <b> // Copper -> idtmed[710]</b> | |
310 | AliMedium(11, "Copper $", 11, 0, | |
311 | isxfld, sxmgmx, 10.0, 0.1, 0.1, 0.1, 0.0001, 0, 0) ; | |
312 | ||
313 | <b> // G10: Printed Circuit material -> idtmed[711]</b> | |
314 | ||
315 | AliMedium(12, "G10 $", 12, 0, | |
316 | isxfld, sxmgmx, 10.0, 0.1, 0.1, 0.1, 0.01, 0, 0) ; | |
317 | ||
318 | <b> // The Lead -> idtmed[712]</b> | |
319 | ||
320 | AliMedium(13, "Lead $", 13, 0, | |
321 | isxfld, sxmgmx, 10.0, 0.1, 0.1, 0.1, 0.1, 0, 0) ; | |
322 | ||
323 | <b> // The gas mixture: ArCo2 -> idtmed[715]</b> | |
324 | ||
325 | AliMedium(16, "ArCo2 $", 16, 1, | |
326 | isxfld, sxmgmx, 10.0, 0.1, 0.1, 0.1, 0.01, 0, 0) ; | |
327 | ||
328 | <b> // Stainless steel -> idtmed[716]</b> | |
329 | AliMedium(17, "Steel $", 17, 0, | |
330 | isxfld, sxmgmx, 10.0, 0.1, 0.1, 0.1, 0.0001, 0, 0) ; | |
331 | ||
332 | <b> // Air -> idtmed[798] </b> | |
333 | AliMedium(99, "Air $", 99, 0, | |
334 | isxfld, sxmgmx, 10.0, 1.0, 0.1, 0.1, 10.0, 0, 0) ; | |
335 | ||
336 | <b> // --- Set decent energy thresholds for gamma and electron tracking</b> | |
337 | ||
338 | <b> // Tracking threshold for photons and electrons in the scintillator crystal </b> | |
339 | gMC->Gstpar(idtmed[699], "CUTGAM",0.5E-4) ; | |
340 | gMC->Gstpar(idtmed[699], "CUTELE",1.0E-4) ; | |
341 | ||
342 | <b> // --- Generate explicitly delta rays in the titan cover ---</b> | |
343 | gMC->Gstpar(idtmed[704], "LOSS",3.) ; | |
344 | gMC->Gstpar(idtmed[704], "DRAY",1.) ; | |
345 | <b> // --- and in aluminium parts ---</b> | |
346 | gMC->Gstpar(idtmed[701], "LOSS",3.) ; | |
347 | gMC->Gstpar(idtmed[701], "DRAY",1.) ; | |
348 | <b> // --- and in PIN diode</b> | |
349 | gMC->Gstpar(idtmed[705], "LOSS",3) ; | |
350 | gMC->Gstpar(idtmed[705], "DRAY",1) ; | |
351 | <b> // --- and in the passive convertor</b> | |
352 | gMC->Gstpar(idtmed[712], "LOSS",3) ; | |
353 | gMC->Gstpar(idtmed[712], "DRAY",1) ; | |
354 | <b> // Tracking threshold for photons and electrons in the gas ArC02 </b> | |
355 | gMC->Gstpar(idtmed[715], "CUTGAM",1.E-5) ; | |
356 | gMC->Gstpar(idtmed[715], "CUTELE",1.E-5) ; | |
357 | gMC->Gstpar(idtmed[715], "CUTNEU",1.E-5) ; | |
358 | gMC->Gstpar(idtmed[715], "CUTHAD",1.E-5) ; | |
359 | gMC->Gstpar(idtmed[715], "CUTMUO",1.E-5) ; | |
360 | gMC->Gstpar(idtmed[715], "BCUTE",1.E-5) ; | |
361 | gMC->Gstpar(idtmed[715], "BCUTM",1.E-5) ; | |
362 | gMC->Gstpar(idtmed[715], "DCUTE",1.E-5) ; | |
363 | gMC->Gstpar(idtmed[715], "DCUTM",1.E-5) ; | |
364 | gMC->Gstpar(idtmed[715], "PPCUTM",1.E-5) ; | |
365 | gMC->Gstpar(idtmed[715], "LOSS",2.) ; | |
366 | gMC->Gstpar(idtmed[715], "DRAY",0.) ; | |
367 | gMC->Gstpar(idtmed[715], "STRA",2.) ; | |
368 | ||
369 | } | |
370 | <b>//____________________________________________________________________________</b> | |
371 | <a name="AliPHOS:SetTreeAddress"> </a><a href="../ListOfTypes.html#void">void</a> <a href=".././AliPHOS.html#AliPHOS:SetTreeAddress">AliPHOS::SetTreeAddress</a>() | |
372 | { | |
373 | ||
374 | ||
375 | <b> // TBranch *branch;</b> | |
376 | <b> // AliDetector::<a href="#AliPHOS:SetTreeAddress">SetTreeAddress</a>();</b> | |
377 | ||
378 | TBranch *branch; | |
379 | <a href="../ListOfTypes.html#char">char</a> branchname[20]; | |
380 | sprintf(branchname,"%s",GetName()); | |
381 | ||
382 | <b> // Branch address for hit tree</b> | |
383 | TTree *treeH = gAlice->TreeH(); | |
384 | if (treeH && fHits) { | |
385 | branch = treeH->GetBranch(branchname); | |
386 | if (branch) branch->SetAddress(&fHits); | |
387 | } | |
388 | ||
389 | <b> // Branch address for digit tree</b> | |
390 | TTree *treeD = gAlice->TreeD(); | |
391 | ||
392 | if(fDigits) | |
393 | fDigits->Clear(); | |
394 | ||
395 | if (treeD && fDigits) { | |
396 | branch = treeD->GetBranch(branchname); | |
397 | if (branch) branch->SetAddress(&fDigits); | |
398 | } | |
399 | ||
400 | if(<a href=".././AliPHOS.html#AliPHOS:fSDigits">fSDigits</a>) | |
401 | <a href=".././AliPHOS.html#AliPHOS:fSDigits">fSDigits</a>->Clear(); | |
402 | ||
403 | if (gAlice->TreeS() && <a href=".././AliPHOS.html#AliPHOS:fSDigits">fSDigits</a> ) { | |
404 | branch = gAlice->TreeS()->GetBranch("PHOS"); | |
405 | if (branch) branch->SetAddress(&<a href=".././AliPHOS.html#AliPHOS:fSDigits">fSDigits</a>) ; | |
406 | } | |
407 | ||
408 | ||
409 | TTree *treeR = gAlice->TreeR(); | |
410 | ||
411 | <b> //Branch address for TreeR: EmcRecPoint</b> | |
412 | ||
413 | if(<a href=".././AliPHOS.html#AliPHOS:fEmcRecPoints">fEmcRecPoints</a>) | |
414 | <a href=".././AliPHOS.html#AliPHOS:fEmcRecPoints">fEmcRecPoints</a>->Delete(); | |
415 | ||
416 | ||
417 | if ( treeR && <a href=".././AliPHOS.html#AliPHOS:fEmcRecPoints">fEmcRecPoints</a> ) { | |
418 | branch = treeR->GetBranch("PHOSEmcRP"); | |
419 | if (branch) branch->SetAddress(&<a href=".././AliPHOS.html#AliPHOS:fEmcRecPoints">fEmcRecPoints</a>) ; | |
420 | } | |
421 | ||
422 | <b> //Branch address for TreeR: PPSDRecPoint</b> | |
423 | ||
424 | if(<a href=".././AliPHOS.html#AliPHOS:fPpsdRecPoints">fPpsdRecPoints</a>) | |
425 | <a href=".././AliPHOS.html#AliPHOS:fPpsdRecPoints">fPpsdRecPoints</a>->Delete(); | |
426 | ||
427 | if ( treeR && <a href=".././AliPHOS.html#AliPHOS:fPpsdRecPoints">fPpsdRecPoints</a> ) { | |
428 | branch = treeR->GetBranch("PHOSCpvRP"); | |
429 | if (branch) branch->SetAddress(&<a href=".././AliPHOS.html#AliPHOS:fPpsdRecPoints">fPpsdRecPoints</a>) ; | |
430 | } | |
431 | ||
432 | <b> //Branch address for TreeR: TrackSegments</b> | |
433 | ||
434 | if(<a href=".././AliPHOS.html#AliPHOS:fTrackSegments">fTrackSegments</a>) | |
435 | <a href=".././AliPHOS.html#AliPHOS:fTrackSegments">fTrackSegments</a>->Clear() ; | |
436 | ||
437 | if ( treeR && <a href=".././AliPHOS.html#AliPHOS:fTrackSegments">fTrackSegments</a> ) { | |
438 | branch = treeR->GetBranch("PHOSTS"); | |
439 | if (branch) branch->SetAddress(&<a href=".././AliPHOS.html#AliPHOS:fTrackSegments">fTrackSegments</a>) ; | |
440 | } | |
441 | ||
442 | <b> //Branch address for TreeR: RecParticles</b> | |
443 | ||
444 | if(<a href=".././AliPHOS.html#AliPHOS:fRecParticles">fRecParticles</a>) | |
445 | <a href=".././AliPHOS.html#AliPHOS:fRecParticles">fRecParticles</a>->Clear() ; | |
446 | ||
447 | if ( treeR && <a href=".././AliPHOS.html#AliPHOS:fRecParticles">fRecParticles</a> ) { | |
448 | branch = treeR->GetBranch("PHOSRP"); | |
449 | if (branch) branch->SetAddress(&<a href=".././AliPHOS.html#AliPHOS:fRecParticles">fRecParticles</a>) ; | |
450 | } | |
451 | ||
452 | } | |
453 | ||
454 | ||
455 | </pre> | |
456 | ||
457 | <!--SIGNATURE--> | |
458 | <br> | |
459 | <address> | |
460 | <hr> | |
461 | <center> | |
462 | <a href="http://root.cern.ch/root/Welcome.html">ROOT page</a> - <a href="../ClassIndex.html">Class index</a> - <a href="#TopOfPage">Top of the page</a><br> | |
463 | </center> | |
464 | <hr>This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to <a href="mailto:rootdev@root.cern.ch">ROOT support</a>, or contact <a href="mailto:rootdev@root.cern.ch">the developers</a> with any questions or problems regarding ROOT. | |
465 | </address> | |
466 | </body> | |
467 | </html> |