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