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