fe4da5cc |
1 | void Config() |
2 | { |
3 | |
4 | new TGeant3("C++ Interface to Geant3"); |
5 | |
6 | //======================================================================= |
7 | // Create the output file |
8 | |
9 | TFile *rootfile = new TFile("galice.root","recreate"); |
10 | rootfile->SetCompressionLevel(2); |
11 | TGeant3 *geant3 = (TGeant3*)gMC; |
12 | |
13 | //======================================================================= |
14 | // ******* GEANT STEERING parameters FOR ALICE SIMULATION ******* |
15 | geant3->SetTRIG(1); //Number of events to be processed |
16 | geant3->SetSWIT(4,10); |
17 | geant3->SetDEBU(0,0,1); |
18 | //geant3->SetSWIT(2,2); |
19 | geant3->SetDCAY(1); |
20 | geant3->SetPAIR(1); |
21 | geant3->SetCOMP(1); |
22 | geant3->SetPHOT(1); |
23 | geant3->SetPFIS(0); |
24 | geant3->SetDRAY(0); |
25 | geant3->SetANNI(1); |
26 | geant3->SetBREM(1); |
27 | geant3->SetMUNU(1); |
28 | geant3->SetCKOV(1); |
29 | geant3->SetHADR(1); //Select pure GEANH (HADR 1) or GEANH/NUCRIN (HADR 3) |
30 | geant3->SetLOSS(2); |
31 | geant3->SetMULS(1); |
32 | geant3->SetRAYL(1); |
33 | geant3->SetAUTO(1); //Select automatic STMIN etc... calc. (AUTO 1) or manual (AUTO 0) |
34 | geant3->SetABAN(0); //Restore 3.16 behaviour for abandoned tracks |
35 | geant3->SetOPTI(2); //Select optimisation level for GEANT geometry searches (0,1,2) |
36 | Float_t cut = 1.e-3; // 1MeV cut by default |
37 | Float_t tofmax = 1.e10; |
38 | // GAM ELEC NHAD CHAD MUON EBREM MUHAB EDEL MUDEL MUPA TOFMAX |
39 | geant3->SetCUTS(cut,cut, cut, cut, cut, cut, cut, cut, cut, cut, tofmax); |
40 | // |
41 | //======================================================================= |
42 | // ************* STEERING parameters FOR ALICE SIMULATION ************** |
43 | // --- Specify event type to be tracked through the ALICE setup |
44 | // --- All positions are in cm, angles in degrees, and P and E in GeV |
45 | AliGenHIJINGpara *gener = new AliGenHIJINGpara(50); |
46 | gener->SetMomentumRange(0,999); |
47 | gener->SetPhiRange(0,360); |
48 | gener->SetThetaRange(10,170); |
49 | gener->SetOrigin(0,0,0); //vertex position |
50 | gener->SetSigma(0,0,0); //Sigma in (X,Y,Z) (cm) on IP position |
51 | gener->Init(); |
52 | // |
53 | // Activate this line if you want the vertex smearing to happen |
54 | // track by track |
55 | // |
56 | //gener->SetVertexSmear(perTrack); |
57 | |
58 | gAlice->SetField(-999,2); //Specify maximum magnetic field in Tesla (neg. ==> default field) |
59 | |
60 | Int_t iMAG=1; |
61 | Int_t iITS=1; |
62 | Int_t iTPC=1; |
63 | Int_t iTOF=1; |
64 | Int_t iRICH=1; |
4048e88d |
65 | Int_t iZDC=0; |
fe4da5cc |
66 | Int_t iCASTOR=1; |
67 | Int_t iTRD=1; |
68 | Int_t iABSO=1; |
69 | Int_t iDIPO=1; |
70 | Int_t iHALL=1; |
43f0a169 |
71 | Int_t iFRAME=1; |
fe4da5cc |
72 | Int_t iSHIL=1; |
73 | Int_t iPIPE=1; |
74 | Int_t iFMD=1; |
75 | Int_t iMUON=1; |
76 | Int_t iPHOS=1; |
77 | Int_t iPMD=1; |
78 | |
79 | //=================== Alice BODY parameters ============================= |
80 | AliBODY *BODY = new AliBODY("BODY","Alice envelop"); |
81 | |
82 | |
83 | if(iMAG) { |
84 | //=================== MAG parameters ============================ |
85 | // --- Start with Magnet since detector layouts may be depending --- |
86 | // --- on the selected Magnet dimensions --- |
87 | AliMAG *MAG = new AliMAG("MAG","Magnet"); |
88 | } |
89 | |
4b11ac09 |
90 | |
91 | if(iABSO) { |
92 | //=================== ABSO parameters ============================ |
93 | AliABSO *ABSO = new AliABSO("ABSO","Muon Absorber"); |
94 | } |
95 | |
96 | if(iDIPO) { |
97 | //=================== DIPO parameters ============================ |
98 | |
99 | AliDIPO *DIPO = new AliDIPOv2("DIPO","Dipole version 2"); |
100 | } |
101 | |
102 | if(iHALL) { |
103 | //=================== HALL parameters ============================ |
104 | |
105 | AliHALL *HALL = new AliHALL("HALL","Alice Hall"); |
106 | } |
107 | |
108 | |
109 | if(iFRAME) { |
110 | //=================== FRAME parameters ============================ |
111 | |
112 | AliFRAME *FRAME = new AliFRAMEv0("FRAME","Space Frame"); |
113 | } |
114 | |
115 | if(iSHIL) { |
116 | //=================== SHIL parameters ============================ |
117 | |
118 | AliSHIL *SHIL = new AliSHIL("SHIL","Shielding"); |
119 | } |
120 | |
121 | |
122 | if(iPIPE) { |
123 | //=================== PIPE parameters ============================ |
124 | |
125 | AliPIPE *PIPE = new AliPIPEv0("PIPE","Beam Pipe"); |
126 | } |
127 | |
128 | |
fe4da5cc |
129 | if(iITS) { |
130 | //=================== ITS parameters ============================ |
131 | // |
132 | // EUCLID is a flag to output (=1) both geometry and media to two ASCII files |
133 | // (called by default ITSgeometry.euc and ITSgeometry.tme) in a format |
134 | // understandable to the CAD system EUCLID. The default (=0) means that you |
135 | // dont want to use this facility. |
136 | // |
137 | AliITS *ITS = new AliITSv3("ITS","normal ITS"); |
138 | ITS->SetEUCLID(1); |
139 | } |
140 | |
141 | if(iTPC) { |
142 | //============================ TPC parameters ================================ |
143 | // --- This allows the user to specify sectors for the SLOW (TPC geometry 2) |
144 | // --- Simulator. SecAL (SecAU) <0 means that ALL lower (upper) |
145 | // --- sectors are specified, any value other than that requires at least one |
146 | // --- sector (lower or upper)to be specified! |
147 | // --- Reminder: sectors 1-24 are lower sectors (1-12 -> z>0, 13-24 -> z<0) |
148 | // --- sectors 25-72 are the upper ones (25-48 -> z>0, 49-72 -> z<0) |
149 | // --- SecLows - number of lower sectors specified (up to 6) |
150 | // --- SecUps - number of upper sectors specified (up to 12) |
151 | // --- Sens - sensitive strips for the Slow Simulator !!! |
152 | // --- This does NOT work if all S or L-sectors are specified, i.e. |
153 | // --- if SecAL or SecAU < 0 |
154 | // |
155 | // |
156 | //----------------------------------------------------------------------------- |
157 | |
158 | AliTPC *TPC = new AliTPCv1("TPC","Normal TPC"); |
50e125f7 |
159 | AliTPCD *paramd = TPC->GetDigParam(); |
160 | AliTPCParam *param = &(paramd->GetParam()); |
161 | |
162 | // Set geometrical parameters |
163 | |
164 | param->SetSectorAngles(40.,0.,20.,10.); |
165 | param->SetInnerRadiusLow(83.7); |
166 | param->SetInnerRadiusUp(132.9); |
167 | param->SetOuterRadiusLow(146.9); |
168 | param->SetOuterRadiusUp(249.4); |
169 | param->SetInSecLowEdge(81.6); |
170 | param->SetInSecUpEdge(135.); |
171 | param->SetOuSecLowEdge(144.2); |
172 | param->SetOuSecUpEdge(252.1); |
173 | param->SetEdge(1.5); |
174 | param->SetDeadZone(1.15); |
175 | param->Update(); |
176 | |
177 | // set gas mixture |
178 | |
179 | TPC->SetGasMixt(2,20,10,-1,0.9,0.1,0.); |
fe4da5cc |
180 | TPC->SetSecAL(1); |
181 | TPC->SetSecAU(1); |
50e125f7 |
182 | TPC->SetSecLows(0, -1, -1, -1, -1, -1); |
183 | TPC->SetSecUps(18, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1); |
184 | TPC->SetSens(-1); |
fe4da5cc |
185 | } |
186 | |
187 | if(iTOF) { |
188 | //=================== TOF parameters ============================ |
189 | AliTOF *TOF = new AliTOFv2("TOF","normal TOF"); |
190 | } |
191 | |
192 | if(iRICH) { |
193 | //=================== RICH parameters =========================== |
194 | |
206e3707 |
195 | AliRICH *RICH = new AliRICHv0("RICH","normal RICH"); |
fe4da5cc |
196 | |
206e3707 |
197 | RICH->SetSMAXAR(0.03); |
198 | RICH->SetSMAXAL(-1); |
199 | // |
200 | // Version 0 |
201 | // Default Segmentation |
202 | AliRICHsegmentationV0* RsegV0 = new AliRICHsegmentationV0; |
203 | RsegV0->SetPADSIZ(.8, .8); |
204 | RsegV0->SetDAnod(0.8/3); |
205 | // Default response |
206 | AliRICHresponseV0* Rresponse0 = new AliRICHresponseV0; |
207 | AliRICHresponseCkv* RresponseCkv = new AliRICHresponseCkv; |
208 | |
209 | //------------------------Chambers 0-6 ---------------------------- |
210 | for (Int_t i=0; i<7; i++) { |
211 | RICH->SetSegmentationModel(i, 1, RsegV0); |
212 | RICH->SetResponseModel(i, mip , Rresponse0); |
213 | RICH->SetResponseModel(i, cerenkov, RresponseCkv); |
214 | RICH->Chamber(i).SetRSIGM(5.); |
215 | RICH->Chamber(i).SetMUCHSP(43.); |
216 | RICH->Chamber(i).SetMUSIGM(0.18, 0.18); |
217 | RICH->Chamber(i).SetMAXADC( 1024); |
218 | RICH->Chamber(i).SetSqrtKx3(0.77459667); |
219 | RICH->Chamber(i).SetKx2(0.962); |
220 | RICH->Chamber(i).SetKx4(0.379); |
221 | RICH->Chamber(i).SetSqrtKy3(0.77459667); |
222 | RICH->Chamber(i).SetKy2(0.962); |
223 | RICH->Chamber(i).SetKy4(0.379); |
224 | RICH->Chamber(i).SetPitch(0.25); |
225 | RICH->SetNsec(i,1); |
226 | } |
fe4da5cc |
227 | } |
228 | |
229 | if(iZDC) { |
230 | //=================== ZDC parameters ============================ |
231 | |
232 | AliZDC *ZDC = new AliZDCv1("ZDC","normal ZDC"); |
233 | } |
234 | |
235 | if(iCASTOR) { |
236 | //=================== CASTOR parameters ============================ |
237 | |
238 | AliCASTOR *CASTOR = new AliCASTORv1("CASTOR","normal CASTOR"); |
239 | } |
240 | |
241 | if(iTRD) { |
242 | //=================== TRD parameters ============================ |
243 | |
50772691 |
244 | AliTRD *TRD = new AliTRDv0("TRD","TRD version 0"); |
43f0a169 |
245 | // Select the gas mixture (0: 97% Xe + 3% isobutane, 1: 90% Xe + 10% CO2) |
246 | TRD->SetGasMix(0); |
50772691 |
247 | TRD->SetHits(1); |
fe4da5cc |
248 | } |
249 | |
fe4da5cc |
250 | if(iFMD) { |
251 | //=================== FMD parameters ============================ |
252 | |
253 | AliFMD *FMD = new AliFMDv1("FMD","normal FMD"); |
254 | } |
255 | |
256 | if(iMUON) { |
257 | //=================== MUON parameters =========================== |
258 | |
259 | AliMUON *MUON = new AliMUONv0("MUON","normal MUON"); |
260 | |
0f5936af |
261 | MUON->SetMaxStepGas(0.1); |
262 | MUON->SetMaxStepAlu(0.1); |
263 | |
fe4da5cc |
264 | // Version 0 |
265 | // |
266 | // First define the number of planes that are segmented (1 or 2) by a call |
267 | // to SetNsec. |
268 | // Then chose for each chamber (chamber plane) the segmentation |
269 | // and response model. |
270 | // They should be equal for the two chambers of each station. In a future |
271 | // version this will be enforced. |
272 | // |
273 | // |
274 | Int_t chamber; |
275 | Int_t station; |
fe4da5cc |
276 | // Default response |
277 | AliMUONresponseV0* response0 = new AliMUONresponseV0; |
0f5936af |
278 | response0->SetSqrtKx3(0.7131); |
279 | response0->SetKx2(1.0107); |
280 | response0->SetKx4(0.4036); |
281 | response0->SetSqrtKy3(0.7642); |
282 | response0->SetKy2(0.9706); |
283 | response0->SetKy4(0.3831); |
fe4da5cc |
284 | response0->SetPitch(0.25); |
0f5936af |
285 | response0->SetSigmaIntegration(10.); |
286 | response0->SetChargeSlope(50); |
287 | response0->SetChargeSpread(0.18, 0.18); |
288 | response0->SetMaxAdc(4096); |
fe4da5cc |
289 | //-------------------------------------------------------- |
290 | // Configuration for Chamber TC1/2 (Station 1) ---------- |
291 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
0f5936af |
292 | // Float_t rseg1[4]={17.5, 55.2, 71.3, 95.5}; |
293 | Float_t rseg1[4]={15.5, 55.2, 71.3, 95.5}; |
294 | Int_t nseg1[4]={4, 4, 2, 1}; |
295 | // |
fe4da5cc |
296 | chamber=1; |
297 | //^^^^^^^^^ |
298 | MUON->SetNsec(chamber-1,2); |
299 | // |
300 | AliMUONsegmentationV01 *seg11=new AliMUONsegmentationV01; |
0f5936af |
301 | |
302 | seg11->SetSegRadii(rseg1); |
303 | seg11->SetPADSIZ(3, 0.5); |
304 | seg11->SetDAnod(3.0/3./4); |
305 | seg11->SetPadDivision(nseg1); |
306 | |
fe4da5cc |
307 | MUON->SetSegmentationModel(chamber-1, 1, seg11); |
308 | // |
0f5936af |
309 | AliMUONsegmentationV02 *seg12=new AliMUONsegmentationV02; |
310 | seg12->SetSegRadii(rseg1); |
311 | seg12->SetPADSIZ(0.75, 2.0); |
312 | seg12->SetDAnod(3.0/3./4); |
313 | seg12->SetPadDivision(nseg1); |
fe4da5cc |
314 | |
315 | MUON->SetSegmentationModel(chamber-1, 2, seg12); |
316 | |
0f5936af |
317 | MUON->SetResponseModel(chamber-1, response0); |
318 | |
fe4da5cc |
319 | chamber=2; |
320 | //^^^^^^^^^ |
0f5936af |
321 | // |
fe4da5cc |
322 | MUON->SetNsec(chamber-1,2); |
0f5936af |
323 | // |
324 | AliMUONsegmentationV01 *seg21=new AliMUONsegmentationV01; |
325 | seg21->SetSegRadii(rseg1); |
326 | seg21->SetPADSIZ(3, 0.5); |
327 | seg21->SetDAnod(3.0/3./4); |
328 | seg21->SetPadDivision(nseg1); |
329 | MUON->SetSegmentationModel(chamber-1, 1, seg21); |
330 | // |
331 | AliMUONsegmentationV02 *seg22=new AliMUONsegmentationV02; |
332 | seg22->SetSegRadii(rseg1); |
333 | seg22->SetPADSIZ(0.75, 2.); |
334 | seg22->SetDAnod(3.0/3./4); |
335 | seg22->SetPadDivision(nseg1); |
336 | MUON->SetSegmentationModel(chamber-1, 2, seg22); |
fe4da5cc |
337 | |
0f5936af |
338 | MUON->SetResponseModel(chamber-1, response0); |
fe4da5cc |
339 | // |
340 | //-------------------------------------------------------- |
341 | // Configuration for Chamber TC3/4 ----------------------- |
342 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
0f5936af |
343 | // Float_t rseg2[4]={23.5, 47.1, 87.7, 122.5}; |
344 | Float_t rseg2[4]={21.5, 47.1, 87.7, 122.5}; |
345 | Int_t nseg2[4]={4, 4, 2, 1}; |
346 | // |
fe4da5cc |
347 | chamber=3; |
0f5936af |
348 | //^^^^^^^^^ |
349 | MUON->SetNsec(chamber-1,2); |
350 | // |
351 | AliMUONsegmentationV01 *seg31=new AliMUONsegmentationV01; |
352 | seg31->SetSegRadii(rseg2); |
353 | seg31->SetPADSIZ(3, 0.5); |
354 | seg31->SetDAnod(3.0/3./4); |
355 | seg31->SetPadDivision(nseg2); |
356 | MUON->SetSegmentationModel(chamber-1, 1, seg31); |
357 | // |
358 | AliMUONsegmentationV02 *seg32=new AliMUONsegmentationV02; |
359 | seg32->SetSegRadii(rseg2); |
360 | seg32->SetPADSIZ(0.75, 2.); |
361 | seg32->SetPadDivision(nseg2); |
362 | seg32->SetDAnod(3.0/3./4); |
363 | |
364 | MUON->SetSegmentationModel(chamber-1, 2, seg32); |
365 | |
fe4da5cc |
366 | MUON->SetResponseModel(chamber-1, response0); |
367 | |
368 | chamber=4; |
0f5936af |
369 | //^^^^^^^^^ |
fe4da5cc |
370 | // |
0f5936af |
371 | MUON->SetNsec(chamber-1,2); |
372 | // |
373 | AliMUONsegmentationV01 *seg41=new AliMUONsegmentationV01; |
374 | seg41->SetSegRadii(rseg2); |
375 | seg41->SetPADSIZ(3, 0.5); |
376 | seg41->SetDAnod(3.0/3./4); |
377 | seg41->SetPadDivision(nseg2); |
378 | MUON->SetSegmentationModel(chamber-1, 1, seg41); |
fe4da5cc |
379 | // |
0f5936af |
380 | AliMUONsegmentationV02 *seg42=new AliMUONsegmentationV02; |
381 | seg42->SetSegRadii(rseg2); |
382 | seg42->SetPADSIZ(0.75, 2.); |
383 | seg42->SetPadDivision(nseg2); |
384 | seg42->SetDAnod(3.0/3./4); |
385 | |
386 | MUON->SetSegmentationModel(chamber-1, 2, seg42); |
387 | |
388 | MUON->SetResponseModel(chamber-1, response0); |
389 | |
390 | |
fe4da5cc |
391 | //-------------------------------------------------------- |
392 | // Configuration for Chamber TC5/6 ----------------------- |
393 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
394 | |
395 | seg5 = new AliMUONsegmentationV1; |
396 | AliMUONresponseV0* response5 = new AliMUONresponseV0; |
397 | // K3 = 0.62 |
398 | response5->SetSqrtKx3(0.78740079); |
399 | response5->SetKx2(0.95237319); // 0.5 * kPI * (1- 0.5*sqrtky3 ) |
400 | response5->SetKx4(0.37480633); // 0.25/TMath::ATan(sqrtkx3) |
401 | // K3 = 0.55 |
402 | response5->SetSqrtKy3(0.74161985); |
403 | response5->SetKy2(0.98832946); |
404 | response5->SetKy4(0.39177817); |
405 | response5->SetPitch(0.325); |
0f5936af |
406 | response5->SetSigmaIntegration(10.); |
407 | response5->SetChargeSlope(50); |
408 | response5->SetChargeSpread(0.4, 0.4); |
409 | response5->SetMaxAdc(4096); |
fe4da5cc |
410 | |
411 | chamber=5; |
412 | MUON->SetNsec(chamber-1,1); |
413 | MUON->SetSegmentationModel(chamber-1, 1, seg5); |
414 | MUON->SetResponseModel(chamber-1, response5); |
415 | |
416 | chamber=6; |
417 | MUON->SetNsec(chamber-1,1); |
418 | MUON->SetSegmentationModel(chamber-1, 1, seg5); |
419 | MUON->SetResponseModel(chamber-1, response5); |
420 | // |
421 | // Station 3 |
422 | station=3; |
423 | MUON->SetPADSIZ(station, 1, 0.975, 0.55); |
424 | |
fe4da5cc |
425 | //-------------------------------------------------------- |
0f5936af |
426 | // Configuration for Chamber TC7/8 (Station 4) ---------- |
fe4da5cc |
427 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
428 | |
0f5936af |
429 | Int_t nseg4[4]={4, 4, 2, 1}; |
430 | |
fe4da5cc |
431 | chamber=7; |
0f5936af |
432 | //^^^^^^^^^ |
433 | MUON->SetNsec(chamber-1,2); |
434 | // |
435 | AliMUONsegmentationV04 *seg71=new AliMUONsegmentationV04; |
436 | seg71->SetPADSIZ(10.,0.5); |
437 | seg71->SetDAnod(0.25); |
438 | seg71->SetPadDivision(nseg4); |
439 | MUON->SetSegmentationModel(chamber-1, 1, seg71); |
440 | |
441 | AliMUONsegmentationV05 *seg72=new AliMUONsegmentationV05; |
442 | seg72->SetPADSIZ(1,10); |
443 | seg72->SetDAnod(0.25); |
444 | seg72->SetPadDivision(nseg4); |
445 | MUON->SetSegmentationModel(chamber-1, 2, seg72); |
fe4da5cc |
446 | |
fe4da5cc |
447 | MUON->SetResponseModel(chamber-1, response0); |
448 | |
449 | chamber=8; |
0f5936af |
450 | //^^^^^^^^^ |
451 | MUON->SetNsec(chamber-1,2); |
452 | AliMUONsegmentationV04 *seg81=new AliMUONsegmentationV04; |
453 | seg81->SetPADSIZ(10., 0.5); |
454 | seg81->SetPadDivision(nseg4); |
455 | seg81->SetDAnod(0.25); |
456 | MUON->SetSegmentationModel(chamber-1, 1, seg81); |
457 | |
458 | AliMUONsegmentationV05 *seg82=new AliMUONsegmentationV05; |
459 | seg82->SetPADSIZ(1, 10); |
460 | seg82->SetPadDivision(nseg4); |
461 | seg82->SetDAnod(0.25); |
462 | MUON->SetSegmentationModel(chamber-1, 2, seg82); |
463 | |
fe4da5cc |
464 | MUON->SetResponseModel(chamber-1, response0); |
0f5936af |
465 | //-------------------------------------------------------- |
466 | // Configuration for Chamber TC9/10 (Station 5) --------- |
467 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
468 | chamber=9; |
469 | //^^^^^^^^^ |
470 | MUON->SetNsec(chamber-1,2); |
fe4da5cc |
471 | // |
0f5936af |
472 | AliMUONsegmentationV04 *seg91=new AliMUONsegmentationV04; |
473 | seg91->SetPADSIZ(10.,0.5); |
474 | seg91->SetDAnod(0.25); |
475 | seg91->SetPadDivision(nseg4); |
476 | MUON->SetSegmentationModel(chamber-1, 1, seg91); |
fe4da5cc |
477 | |
0f5936af |
478 | AliMUONsegmentationV05 *seg92=new AliMUONsegmentationV05; |
479 | seg92->SetPADSIZ(1,10); |
480 | seg92->SetDAnod(0.25); |
481 | seg92->SetPadDivision(nseg4); |
482 | |
483 | MUON->SetSegmentationModel(chamber-1, 2, seg92); |
fe4da5cc |
484 | |
fe4da5cc |
485 | MUON->SetResponseModel(chamber-1, response0); |
486 | |
487 | chamber=10; |
0f5936af |
488 | //^^^^^^^^^ |
489 | MUON->SetNsec(chamber-1,2); |
490 | AliMUONsegmentationV04 *seg101=new AliMUONsegmentationV04; |
491 | seg101->SetPADSIZ(10., 0.5); |
492 | seg101->SetPadDivision(nseg4); |
493 | seg101->SetDAnod(0.25); |
494 | MUON->SetSegmentationModel(chamber-1, 1, seg101); |
495 | |
496 | AliMUONsegmentationV05 *seg102=new AliMUONsegmentationV05; |
497 | seg102->SetPADSIZ(1,10); |
498 | seg102->SetPadDivision(nseg4); |
499 | seg102->SetDAnod(0.25); |
500 | MUON->SetSegmentationModel(chamber-1, 2, seg102); |
501 | |
fe4da5cc |
502 | MUON->SetResponseModel(chamber-1, response0); |
0f5936af |
503 | //-------------------------------------------------------- |
504 | // Configuration for Trigger staions --------------------- |
505 | // (not yet used/implemented) ---------------------------- |
506 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
fe4da5cc |
507 | |
508 | chamber=11; |
509 | MUON->SetNsec(chamber-1,1); |
510 | AliMUONsegmentationV0 *seg1112=new AliMUONsegmentationV0; |
511 | seg1112->SetDAnod(0.51/3.); |
512 | |
513 | MUON->SetSegmentationModel(chamber-1, 1, seg1112); |
514 | MUON->SetResponseModel(chamber-1, response0); |
515 | |
516 | chamber=12; |
517 | MUON->SetNsec(chamber-1,1); |
518 | MUON->SetSegmentationModel(chamber-1, 1, seg1112); |
519 | MUON->SetResponseModel(chamber-1, response0); |
520 | // |
521 | // Trigger Station 1 |
522 | station=6; |
523 | MUON->SetPADSIZ(station, 1, 0.75, 0.5); |
524 | |
525 | chamber=13; |
526 | MUON->SetNsec(chamber-1,1); |
527 | AliMUONsegmentationV0 *seg1314=new AliMUONsegmentationV0; |
528 | seg1314->SetDAnod(0.51/3.); |
529 | |
530 | MUON->SetSegmentationModel(chamber-1, 1, seg1314); |
531 | MUON->SetResponseModel(chamber-1, response0); |
532 | |
533 | chamber=14; |
534 | MUON->SetNsec(chamber-1,1); |
535 | MUON->SetSegmentationModel(chamber-1, 1, seg1314); |
536 | MUON->SetResponseModel(chamber-1, response0); |
537 | // |
538 | // Trigger Station 2 |
539 | station=7; |
540 | MUON->SetPADSIZ(station, 1, 0.75, 0.5); |
541 | } |
0f5936af |
542 | |
fe4da5cc |
543 | if(iPHOS) { |
544 | //=================== PHOS parameters =========================== |
545 | |
546 | AliPHOS *PHOS = new AliPHOSv1("PHOS","normal PHOS"); |
547 | // * PHOSflags: YES: X<>0 NO: X=0 |
548 | // * PHOSflags(1) : -----X Create branch for TObjArray of AliPHOSCradle |
549 | // * ----X- Create file (ftn03 on HP-UX) with list of SHAKER particles (7Mb/event) |
550 | // * |
551 | PHOS->SetFlags(000001); |
552 | PHOS->SetRadius(460); //Distance from beam to PHOS crystals. |
553 | // (crystal_side_size,crystal_length,wrap_thikness,air_thikness,PIN_size,PIN length) |
554 | PHOS->SetCell(2.2, 18., 0.01, 0.01, 1., 0.1); |
555 | PHOS->SetCradleSize(104, 88, 4); // Nz (along beam), Nphi, Ncradles |
556 | PHOS->SetCradleA(0); //Angle between Cradles |
557 | PHOS->SetCPV(1., 2.); //CPV thikness, CPV-PHOS distance |
558 | // * =============== |
559 | // * PHOS extra parameters (contact Maxim Volkov volkov@mail.cern.ch) |
560 | // * 1. STE_THICK Steel cover thickness |
561 | // * 2. SUP_Y Crystal support height |
562 | // * 3. FTIU_THICK Thermo Insulating outer cover Upper plate thickness |
563 | // * 4. UFP_Y Upper Polystyrene Foam plate thickness |
564 | // * 5. TCB_THICK Thermo insulating Crystal Block wall thickness |
565 | // * 6. UCP_Y Upper Cooling Plate thickness |
566 | // * 7. ASP_Y Al Support Plate thickness |
567 | // * 8. TIP_Y Lower Thermo Insulating Plate thickness |
568 | // * 9. TXP_Y Lower Textolit Plate thickness |
569 | PHOS->SetExtra(0.001, 6.95, 4., 5., 2., 0.06, 10., 3., 1.); |
570 | PHOS->SetTextolitWall(209., 71., 250.); //Textolit Wall box dimentions |
571 | PHOS->SetInnerAir(206., 66., 244.); //Inner AIR volume dimensions |
572 | // * =============================== |
573 | // * 1. FTI_X Foam Thermo Insulating outer cover dimensions |
574 | // * 2. FTI_Y ==//== |
575 | // * 3. FTI_Z ==//== |
576 | // * 4. FTI_R Distance from IP to Foam Thermo Insulating top plate |
577 | PHOS->SetFoam(214.6, 80., 260., 467.); |
578 | // ================================= |
579 | // ******************************************************************************* |
580 | // * KINE 700 - SHAKER generator |
581 | // * KINE 700 x y z NDNDY YLIM PTLIM ChargeFlag |
582 | // * JWEAK=0 |
583 | // * JPI0=JETA=1 |
584 | // * JPIC=JPRO=JKAC=JKA0=JRHO=JOME=JPHI=JPSI=JDRY=ChargeFlag |
585 | // * Int_t JWEI; // Unweighted generation |
586 | // * Int_t NDNDY; // Density of charged particles |
587 | // * Float_t YLIM; // Rapidity Limit |
588 | // * Float_t PTLIM; // Pt limit in GeV/c |
589 | // * Int_t JWEAK; // Disable weak decays |
590 | // * Int_t JPI0; // pi0 generation |
591 | // * Int_t JETA; // eta generation |
592 | // * Int_t JPIC; // pi+/- generation |
593 | // * Int_t JPRO; // proton generation |
594 | // * Int_t JKAC; // K+/- generation |
595 | // * Int_t JKA0; // K0 generation |
596 | // * Int_t JRHO; // rho generation |
597 | // * Int_t JOME; // omega generation |
598 | // * Int_t JPHI; // phi generation |
599 | // * Int_t JPSI; // J/psi generation |
600 | // * Int_t JDRY; // Drell-Yan generation |
601 | // * KINE 700 5. 175. 0. 800. 1.5 5. 1. |
602 | // ******************************************************************************* |
603 | } |
604 | |
605 | if(iPMD) { |
606 | //=================== PMD parameters ============================ |
607 | |
ecd5c1f7 |
608 | AliPMD *PMD = new AliPMDv0("PMD","normal PMD"); |
fe4da5cc |
609 | PMD->SetPAR(1., 1., 0.8, 0.02); |
ecd5c1f7 |
610 | PMD->SetIN(6., 18., -580., 27., 27.); |
fe4da5cc |
611 | PMD->SetGEO(0.0, 0.2, 4.); |
ecd5c1f7 |
612 | PMD->SetPadSize(0.8, 1.0, 1.0, 1.5); |
613 | |
fe4da5cc |
614 | } |
615 | |
616 | } |