]>
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 | ||
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; | |
65 | Int_t iZDC=1; | |
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; | |
71 | Int_t iFRAME=0; | |
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 | ||
90 | if(iITS) { | |
91 | //=================== ITS parameters ============================ | |
92 | // | |
93 | // EUCLID is a flag to output (=1) both geometry and media to two ASCII files | |
94 | // (called by default ITSgeometry.euc and ITSgeometry.tme) in a format | |
95 | // understandable to the CAD system EUCLID. The default (=0) means that you | |
96 | // dont want to use this facility. | |
97 | // | |
98 | AliITS *ITS = new AliITSv3("ITS","normal ITS"); | |
99 | ITS->SetEUCLID(1); | |
100 | } | |
101 | ||
102 | if(iTPC) { | |
103 | //============================ TPC parameters ================================ | |
104 | // --- This allows the user to specify sectors for the SLOW (TPC geometry 2) | |
105 | // --- Simulator. SecAL (SecAU) <0 means that ALL lower (upper) | |
106 | // --- sectors are specified, any value other than that requires at least one | |
107 | // --- sector (lower or upper)to be specified! | |
108 | // --- Reminder: sectors 1-24 are lower sectors (1-12 -> z>0, 13-24 -> z<0) | |
109 | // --- sectors 25-72 are the upper ones (25-48 -> z>0, 49-72 -> z<0) | |
110 | // --- SecLows - number of lower sectors specified (up to 6) | |
111 | // --- SecUps - number of upper sectors specified (up to 12) | |
112 | // --- Sens - sensitive strips for the Slow Simulator !!! | |
113 | // --- This does NOT work if all S or L-sectors are specified, i.e. | |
114 | // --- if SecAL or SecAU < 0 | |
115 | // | |
116 | // | |
117 | //----------------------------------------------------------------------------- | |
118 | ||
119 | AliTPC *TPC = new AliTPCv1("TPC","Normal TPC"); | |
120 | TPC->SetSecAL(1); | |
121 | TPC->SetSecAU(1); | |
122 | TPC->SetSecLows(1, -1, -1, -1, -1, -1); | |
123 | TPC->SetSecUps(25, 26, 48, -1, -1, -1, -1, -1, -1, -1, -1, -1); | |
124 | TPC->SetSens(1); | |
125 | } | |
126 | ||
127 | if(iTOF) { | |
128 | //=================== TOF parameters ============================ | |
129 | AliTOF *TOF = new AliTOFv2("TOF","normal TOF"); | |
130 | } | |
131 | ||
132 | if(iRICH) { | |
133 | //=================== RICH parameters =========================== | |
134 | ||
135 | ||
136 | AliRICH *RICH = new AliRICHv1("RICH","normal RICH"); | |
137 | RICH->SetSP(40); | |
138 | RICH->SetFEED(0.04); | |
139 | RICH->SetSIGM(0.18); | |
140 | RICH->SetTRIG(0); | |
141 | } | |
142 | ||
143 | if(iZDC) { | |
144 | //=================== ZDC parameters ============================ | |
145 | ||
146 | AliZDC *ZDC = new AliZDCv1("ZDC","normal ZDC"); | |
147 | } | |
148 | ||
149 | if(iCASTOR) { | |
150 | //=================== CASTOR parameters ============================ | |
151 | ||
152 | AliCASTOR *CASTOR = new AliCASTORv1("CASTOR","normal CASTOR"); | |
153 | } | |
154 | ||
155 | if(iTRD) { | |
156 | //=================== TRD parameters ============================ | |
157 | ||
158 | AliTRD *TRD = new AliTRDv2("TRD","TRD version 2"); | |
159 | } | |
160 | ||
161 | ||
162 | if(iABSO) { | |
163 | //=================== ABSO parameters ============================ | |
164 | AliABSO *ABSO = new AliABSO("ABSO","Muon Absorber"); | |
165 | } | |
166 | ||
167 | if(iDIPO) { | |
168 | //=================== DIPO parameters ============================ | |
169 | ||
170 | AliDIPO *DIPO = new AliDIPOv2("DIPO","Dipole version 2"); | |
171 | } | |
172 | ||
173 | if(iHALL) { | |
174 | //=================== HALL parameters ============================ | |
175 | ||
176 | AliHALL *HALL = new AliHALL("HALL","Alice Hall"); | |
177 | } | |
178 | ||
179 | ||
180 | if(iFRAME) { | |
181 | //=================== FRAME parameters ============================ | |
182 | AliFRAME *FRAME = new AliFRAMEv0("FRAME","Space Frame"); | |
183 | } | |
184 | ||
185 | if(iSHIL) { | |
186 | //=================== SHIL parameters ============================ | |
187 | ||
188 | AliSHIL *SHIL = new AliSHIL("SHIL","Shielding"); | |
189 | } | |
190 | ||
191 | ||
192 | if(iPIPE) { | |
193 | //=================== PIPE parameters ============================ | |
194 | ||
195 | AliPIPE *PIPE = new AliPIPEv0("PIPE","Beam Pipe"); | |
196 | } | |
197 | ||
198 | ||
199 | if(iFMD) { | |
200 | //=================== FMD parameters ============================ | |
201 | ||
202 | AliFMD *FMD = new AliFMDv1("FMD","normal FMD"); | |
203 | } | |
204 | ||
205 | if(iMUON) { | |
206 | //=================== MUON parameters =========================== | |
207 | ||
208 | AliMUON *MUON = new AliMUONv0("MUON","normal MUON"); | |
209 | ||
210 | MUON->SetSMAXAR(0.03); | |
211 | MUON->SetSMAXAL(-1); | |
212 | // | |
213 | // Version 0 | |
214 | // | |
215 | // First define the number of planes that are segmented (1 or 2) by a call | |
216 | // to SetNsec. | |
217 | // Then chose for each chamber (chamber plane) the segmentation | |
218 | // and response model. | |
219 | // They should be equal for the two chambers of each station. In a future | |
220 | // version this will be enforced. | |
221 | // | |
222 | // | |
223 | Int_t chamber; | |
224 | Int_t station; | |
225 | // Default Segmentation | |
226 | AliMUONsegmentationV0* segV0 = new AliMUONsegmentationV0; | |
227 | // Default response | |
228 | AliMUONresponseV0* response0 = new AliMUONresponseV0; | |
229 | response0->SetSqrtKx3(0.761577); | |
230 | response0->SetKx2(0.972655); | |
231 | response0->SetKx4(0.3841); | |
232 | response0->SetSqrtKy3(0.714143); | |
233 | response0->SetKy2(1.0099); | |
234 | response0->SetKy4(0.403); | |
235 | response0->SetPitch(0.25); | |
236 | response0->SetRSIGM(10.); | |
237 | response0->SetMUCHSP(5.); | |
238 | response0->SetMUSIGM(0.18, 0.18); | |
239 | response0->SetMAXADC( 1024); | |
240 | //-------------------------------------------------------- | |
241 | // Configuration for Chamber TC1/2 (Station 1) ---------- | |
242 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
243 | Float_t rseg[4]={17.5, 55.2, 71.3, 95.5}; | |
244 | Int_t nseg[4]={4, 4, 2, 1}; | |
245 | ||
246 | chamber=1; | |
247 | //^^^^^^^^^ | |
248 | MUON->SetNsec(chamber-1,2); | |
249 | // | |
250 | AliMUONsegmentationV01 *seg11=new AliMUONsegmentationV01; | |
251 | seg11->SetSegRadii(rseg); | |
252 | seg11->SetPADSIZ(3.048, 0.508); | |
253 | seg11->SetPadDivision(nseg); | |
254 | MUON->SetSegmentationModel(chamber-1, 1, seg11); | |
255 | // | |
256 | AliMUONsegmentationV01 *seg12=new AliMUONsegmentationV01; | |
257 | seg12->SetSegRadii(rseg); | |
258 | seg12->SetPADSIZ(2.032, 0.762); | |
259 | seg12->SetPadDivision(nseg); | |
260 | ||
261 | MUON->SetSegmentationModel(chamber-1, 2, seg12); | |
262 | ||
263 | chamber=2; | |
264 | //^^^^^^^^^ | |
265 | MUON->SetNsec(chamber-1,2); | |
266 | MUON->SetSegmentationModel(chamber-1, 1, seg11); | |
267 | MUON->SetSegmentationModel(chamber-1, 2, seg12); | |
268 | ||
269 | station=1; | |
270 | //^^^^^^^^^ | |
271 | MUON->SetResponseModel(0, response0); | |
272 | MUON->SetResponseModel(1, response0); | |
273 | // | |
274 | //-------------------------------------------------------- | |
275 | // Configuration for Chamber TC3/4 ----------------------- | |
276 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
277 | ||
278 | chamber=3; | |
279 | MUON->SetNsec(chamber-1,1); | |
280 | AliMUONsegmentationV0 *seg34=new AliMUONsegmentationV0; | |
281 | seg34->SetDAnod(0.51/3.); | |
282 | ||
283 | MUON->SetSegmentationModel(chamber-1, 1, seg34); | |
284 | MUON->SetResponseModel(chamber-1, response0); | |
285 | ||
286 | chamber=4; | |
287 | MUON->SetNsec(chamber-1,1); | |
288 | MUON->SetSegmentationModel(chamber-1, 1, seg34); | |
289 | MUON->SetResponseModel(chamber-1, response0); | |
290 | // | |
291 | // Station 2 | |
292 | station=2; | |
293 | MUON->SetPADSIZ(station, 1, 0.75, 0.51); | |
294 | MUON->SetMUCHSP(station, 5.); | |
295 | MUON->SetMUSIGM(station, 0.18, 0.18); | |
296 | MUON->SetRSIGM(station, 10.); | |
297 | MUON->SetMAXADC(station, 1024); | |
298 | ||
299 | // | |
300 | //-------------------------------------------------------- | |
301 | // Configuration for Chamber TC5/6 ----------------------- | |
302 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
303 | ||
304 | seg5 = new AliMUONsegmentationV1; | |
305 | AliMUONresponseV0* response5 = new AliMUONresponseV0; | |
306 | // K3 = 0.62 | |
307 | response5->SetSqrtKx3(0.78740079); | |
308 | response5->SetKx2(0.95237319); // 0.5 * kPI * (1- 0.5*sqrtky3 ) | |
309 | response5->SetKx4(0.37480633); // 0.25/TMath::ATan(sqrtkx3) | |
310 | // K3 = 0.55 | |
311 | response5->SetSqrtKy3(0.74161985); | |
312 | response5->SetKy2(0.98832946); | |
313 | response5->SetKy4(0.39177817); | |
314 | response5->SetPitch(0.325); | |
315 | response5->SetRSIGM(10.); | |
316 | response5->SetMUCHSP(5.); | |
317 | response5->SetMUSIGM( 0.4, 0.4); | |
318 | response5->SetMAXADC( 1024); | |
319 | ||
320 | chamber=5; | |
321 | MUON->SetNsec(chamber-1,1); | |
322 | MUON->SetSegmentationModel(chamber-1, 1, seg5); | |
323 | MUON->SetResponseModel(chamber-1, response5); | |
324 | ||
325 | chamber=6; | |
326 | MUON->SetNsec(chamber-1,1); | |
327 | MUON->SetSegmentationModel(chamber-1, 1, seg5); | |
328 | MUON->SetResponseModel(chamber-1, response5); | |
329 | // | |
330 | // Station 3 | |
331 | station=3; | |
332 | MUON->SetPADSIZ(station, 1, 0.975, 0.55); | |
333 | ||
334 | // | |
335 | //-------------------------------------------------------- | |
336 | // Configuration for Chamber TC7/8/9/10------------------- | |
337 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
338 | ||
339 | chamber=7; | |
340 | MUON->SetNsec(chamber-1,1); | |
341 | AliMUONsegmentationV0 *seg78=new AliMUONsegmentationV0; | |
342 | seg78->SetDAnod(0.51/3.); | |
343 | ||
344 | MUON->SetSegmentationModel(chamber-1, 1, seg78); | |
345 | MUON->SetResponseModel(chamber-1, response0); | |
346 | ||
347 | chamber=8; | |
348 | MUON->SetNsec(chamber-1,1); | |
349 | MUON->SetSegmentationModel(chamber-1, 1, seg78); | |
350 | MUON->SetResponseModel(chamber-1, response0); | |
351 | // | |
352 | // Station 4 | |
353 | station=4; | |
354 | MUON->SetPADSIZ(station, 1, 0.75, 0.5); | |
355 | ||
356 | chamber=9; | |
357 | MUON->SetNsec(chamber-1,1); | |
358 | AliMUONsegmentationV0 *seg910=new AliMUONsegmentationV0; | |
359 | seg910->SetDAnod(0.51/3.); | |
360 | ||
361 | MUON->SetSegmentationModel(chamber-1, 1, seg910); | |
362 | MUON->SetResponseModel(chamber-1, response0); | |
363 | ||
364 | chamber=10; | |
365 | MUON->SetNsec(chamber-1,1); | |
366 | MUON->SetSegmentationModel(chamber-1, 1, seg910); | |
367 | MUON->SetResponseModel(chamber-1, response0); | |
368 | // | |
369 | // Station 5 | |
370 | station=5; | |
371 | MUON->SetPADSIZ(station, 1, 0.75, 0.5); | |
372 | ||
373 | chamber=11; | |
374 | MUON->SetNsec(chamber-1,1); | |
375 | AliMUONsegmentationV0 *seg1112=new AliMUONsegmentationV0; | |
376 | seg1112->SetDAnod(0.51/3.); | |
377 | ||
378 | MUON->SetSegmentationModel(chamber-1, 1, seg1112); | |
379 | MUON->SetResponseModel(chamber-1, response0); | |
380 | ||
381 | chamber=12; | |
382 | MUON->SetNsec(chamber-1,1); | |
383 | MUON->SetSegmentationModel(chamber-1, 1, seg1112); | |
384 | MUON->SetResponseModel(chamber-1, response0); | |
385 | // | |
386 | // Trigger Station 1 | |
387 | station=6; | |
388 | MUON->SetPADSIZ(station, 1, 0.75, 0.5); | |
389 | ||
390 | chamber=13; | |
391 | MUON->SetNsec(chamber-1,1); | |
392 | AliMUONsegmentationV0 *seg1314=new AliMUONsegmentationV0; | |
393 | seg1314->SetDAnod(0.51/3.); | |
394 | ||
395 | MUON->SetSegmentationModel(chamber-1, 1, seg1314); | |
396 | MUON->SetResponseModel(chamber-1, response0); | |
397 | ||
398 | chamber=14; | |
399 | MUON->SetNsec(chamber-1,1); | |
400 | MUON->SetSegmentationModel(chamber-1, 1, seg1314); | |
401 | MUON->SetResponseModel(chamber-1, response0); | |
402 | // | |
403 | // Trigger Station 2 | |
404 | station=7; | |
405 | MUON->SetPADSIZ(station, 1, 0.75, 0.5); | |
406 | } | |
407 | ||
408 | if(iPHOS) { | |
409 | //=================== PHOS parameters =========================== | |
410 | ||
411 | AliPHOS *PHOS = new AliPHOSv1("PHOS","normal PHOS"); | |
412 | // * PHOSflags: YES: X<>0 NO: X=0 | |
413 | // * PHOSflags(1) : -----X Create branch for TObjArray of AliPHOSCradle | |
414 | // * ----X- Create file (ftn03 on HP-UX) with list of SHAKER particles (7Mb/event) | |
415 | // * | |
416 | PHOS->SetFlags(000001); | |
417 | PHOS->SetRadius(460); //Distance from beam to PHOS crystals. | |
418 | // (crystal_side_size,crystal_length,wrap_thikness,air_thikness,PIN_size,PIN length) | |
419 | PHOS->SetCell(2.2, 18., 0.01, 0.01, 1., 0.1); | |
420 | PHOS->SetCradleSize(104, 88, 4); // Nz (along beam), Nphi, Ncradles | |
421 | PHOS->SetCradleA(0); //Angle between Cradles | |
422 | PHOS->SetCPV(1., 2.); //CPV thikness, CPV-PHOS distance | |
423 | // * =============== | |
424 | // * PHOS extra parameters (contact Maxim Volkov volkov@mail.cern.ch) | |
425 | // * 1. STE_THICK Steel cover thickness | |
426 | // * 2. SUP_Y Crystal support height | |
427 | // * 3. FTIU_THICK Thermo Insulating outer cover Upper plate thickness | |
428 | // * 4. UFP_Y Upper Polystyrene Foam plate thickness | |
429 | // * 5. TCB_THICK Thermo insulating Crystal Block wall thickness | |
430 | // * 6. UCP_Y Upper Cooling Plate thickness | |
431 | // * 7. ASP_Y Al Support Plate thickness | |
432 | // * 8. TIP_Y Lower Thermo Insulating Plate thickness | |
433 | // * 9. TXP_Y Lower Textolit Plate thickness | |
434 | PHOS->SetExtra(0.001, 6.95, 4., 5., 2., 0.06, 10., 3., 1.); | |
435 | PHOS->SetTextolitWall(209., 71., 250.); //Textolit Wall box dimentions | |
436 | PHOS->SetInnerAir(206., 66., 244.); //Inner AIR volume dimensions | |
437 | // * =============================== | |
438 | // * 1. FTI_X Foam Thermo Insulating outer cover dimensions | |
439 | // * 2. FTI_Y ==//== | |
440 | // * 3. FTI_Z ==//== | |
441 | // * 4. FTI_R Distance from IP to Foam Thermo Insulating top plate | |
442 | PHOS->SetFoam(214.6, 80., 260., 467.); | |
443 | // ================================= | |
444 | // ******************************************************************************* | |
445 | // * KINE 700 - SHAKER generator | |
446 | // * KINE 700 x y z NDNDY YLIM PTLIM ChargeFlag | |
447 | // * JWEAK=0 | |
448 | // * JPI0=JETA=1 | |
449 | // * JPIC=JPRO=JKAC=JKA0=JRHO=JOME=JPHI=JPSI=JDRY=ChargeFlag | |
450 | // * Int_t JWEI; // Unweighted generation | |
451 | // * Int_t NDNDY; // Density of charged particles | |
452 | // * Float_t YLIM; // Rapidity Limit | |
453 | // * Float_t PTLIM; // Pt limit in GeV/c | |
454 | // * Int_t JWEAK; // Disable weak decays | |
455 | // * Int_t JPI0; // pi0 generation | |
456 | // * Int_t JETA; // eta generation | |
457 | // * Int_t JPIC; // pi+/- generation | |
458 | // * Int_t JPRO; // proton generation | |
459 | // * Int_t JKAC; // K+/- generation | |
460 | // * Int_t JKA0; // K0 generation | |
461 | // * Int_t JRHO; // rho generation | |
462 | // * Int_t JOME; // omega generation | |
463 | // * Int_t JPHI; // phi generation | |
464 | // * Int_t JPSI; // J/psi generation | |
465 | // * Int_t JDRY; // Drell-Yan generation | |
466 | // * KINE 700 5. 175. 0. 800. 1.5 5. 1. | |
467 | // ******************************************************************************* | |
468 | } | |
469 | ||
470 | if(iPMD) { | |
471 | //=================== PMD parameters ============================ | |
472 | ||
473 | // Must be defined AFTER PHOS | |
474 | AliPMD *PMD = new AliPMDv1("PMD","normal PMD"); | |
475 | PMD->SetPAR(1., 1., 0.8, 0.02); | |
476 | PMD->SetIN(6., 20., 600., 27., 27.); | |
477 | PMD->SetGEO(0.0, 0.2, 4.); | |
478 | PMD->SetPadSize(0.8, 1.0, 1.2, 1.5); | |
479 | } | |
480 | ||
481 | } |