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