]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 1 | void Config() |
2 | { | |
3 | ||
b13db077 | 4 | new AliGeant3("C++ Interface to Geant3"); |
fe4da5cc | 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) | |
8c658074 | 36 | geant3->SetERAN(5.e-7); |
37 | ||
fe4da5cc | 38 | Float_t cut = 1.e-3; // 1MeV cut by default |
39 | Float_t tofmax = 1.e10; | |
40 | // GAM ELEC NHAD CHAD MUON EBREM MUHAB EDEL MUDEL MUPA TOFMAX | |
41 | geant3->SetCUTS(cut,cut, cut, cut, cut, cut, cut, cut, cut, cut, tofmax); | |
42 | // | |
43 | //======================================================================= | |
44 | // ************* STEERING parameters FOR ALICE SIMULATION ************** | |
45 | // --- Specify event type to be tracked through the ALICE setup | |
46 | // --- All positions are in cm, angles in degrees, and P and E in GeV | |
47 | AliGenHIJINGpara *gener = new AliGenHIJINGpara(50); | |
48 | gener->SetMomentumRange(0,999); | |
49 | gener->SetPhiRange(0,360); | |
50 | gener->SetThetaRange(10,170); | |
51 | gener->SetOrigin(0,0,0); //vertex position | |
52 | gener->SetSigma(0,0,0); //Sigma in (X,Y,Z) (cm) on IP position | |
53 | gener->Init(); | |
54 | // | |
55 | // Activate this line if you want the vertex smearing to happen | |
56 | // track by track | |
57 | // | |
58 | //gener->SetVertexSmear(perTrack); | |
59 | ||
60 | gAlice->SetField(-999,2); //Specify maximum magnetic field in Tesla (neg. ==> default field) | |
61 | ||
62 | Int_t iMAG=1; | |
63 | Int_t iITS=1; | |
64 | Int_t iTPC=1; | |
65 | Int_t iTOF=1; | |
66 | Int_t iRICH=1; | |
4048e88d | 67 | Int_t iZDC=0; |
fe4da5cc | 68 | Int_t iCASTOR=1; |
69 | Int_t iTRD=1; | |
70 | Int_t iABSO=1; | |
71 | Int_t iDIPO=1; | |
72 | Int_t iHALL=1; | |
43f0a169 | 73 | Int_t iFRAME=1; |
fe4da5cc | 74 | Int_t iSHIL=1; |
75 | Int_t iPIPE=1; | |
76 | Int_t iFMD=1; | |
77 | Int_t iMUON=1; | |
78 | Int_t iPHOS=1; | |
79 | Int_t iPMD=1; | |
b422f318 | 80 | Int_t iSTART=0; |
fe4da5cc | 81 | |
82 | //=================== Alice BODY parameters ============================= | |
83 | AliBODY *BODY = new AliBODY("BODY","Alice envelop"); | |
84 | ||
85 | ||
86 | if(iMAG) { | |
87 | //=================== MAG parameters ============================ | |
88 | // --- Start with Magnet since detector layouts may be depending --- | |
89 | // --- on the selected Magnet dimensions --- | |
90 | AliMAG *MAG = new AliMAG("MAG","Magnet"); | |
91 | } | |
92 | ||
4b11ac09 | 93 | |
94 | if(iABSO) { | |
95 | //=================== ABSO parameters ============================ | |
9eecec3c | 96 | AliABSO *ABSO = new AliABSOv0("ABSO","Muon Absorber"); |
4b11ac09 | 97 | } |
98 | ||
99 | if(iDIPO) { | |
100 | //=================== DIPO parameters ============================ | |
101 | ||
102 | AliDIPO *DIPO = new AliDIPOv2("DIPO","Dipole version 2"); | |
103 | } | |
104 | ||
105 | if(iHALL) { | |
106 | //=================== HALL parameters ============================ | |
107 | ||
108 | AliHALL *HALL = new AliHALL("HALL","Alice Hall"); | |
109 | } | |
110 | ||
111 | ||
112 | if(iFRAME) { | |
113 | //=================== FRAME parameters ============================ | |
114 | ||
115 | AliFRAME *FRAME = new AliFRAMEv0("FRAME","Space Frame"); | |
1756964f | 116 | |
4b11ac09 | 117 | } |
118 | ||
119 | if(iSHIL) { | |
120 | //=================== SHIL parameters ============================ | |
121 | ||
9eecec3c | 122 | AliSHIL *SHIL = new AliSHILv0("SHIL","Shielding"); |
4b11ac09 | 123 | } |
124 | ||
125 | ||
126 | if(iPIPE) { | |
127 | //=================== PIPE parameters ============================ | |
128 | ||
129 | AliPIPE *PIPE = new AliPIPEv0("PIPE","Beam Pipe"); | |
130 | } | |
131 | ||
132 | ||
fe4da5cc | 133 | if(iITS) { |
134 | //=================== ITS parameters ============================ | |
135 | // | |
136 | // EUCLID is a flag to output (=1) both geometry and media to two ASCII files | |
137 | // (called by default ITSgeometry.euc and ITSgeometry.tme) in a format | |
138 | // understandable to the CAD system EUCLID. The default (=0) means that you | |
139 | // dont want to use this facility. | |
140 | // | |
8dfe31df | 141 | AliITS *ITS = new AliITSv5("ITS","normal ITS"); |
142 | ITS->SetEUCLID(0); | |
fe4da5cc | 143 | } |
144 | ||
145 | if(iTPC) { | |
146 | //============================ TPC parameters ================================ | |
147 | // --- This allows the user to specify sectors for the SLOW (TPC geometry 2) | |
148 | // --- Simulator. SecAL (SecAU) <0 means that ALL lower (upper) | |
149 | // --- sectors are specified, any value other than that requires at least one | |
150 | // --- sector (lower or upper)to be specified! | |
151 | // --- Reminder: sectors 1-24 are lower sectors (1-12 -> z>0, 13-24 -> z<0) | |
152 | // --- sectors 25-72 are the upper ones (25-48 -> z>0, 49-72 -> z<0) | |
153 | // --- SecLows - number of lower sectors specified (up to 6) | |
154 | // --- SecUps - number of upper sectors specified (up to 12) | |
155 | // --- Sens - sensitive strips for the Slow Simulator !!! | |
156 | // --- This does NOT work if all S or L-sectors are specified, i.e. | |
157 | // --- if SecAL or SecAU < 0 | |
158 | // | |
159 | // | |
160 | //----------------------------------------------------------------------------- | |
161 | ||
7afc80df | 162 | AliTPC *TPC = new AliTPCv1("TPC","Normal TPC"); |
50e125f7 | 163 | AliTPCD *paramd = TPC->GetDigParam(); |
164 | AliTPCParam *param = &(paramd->GetParam()); | |
165 | ||
166 | // Set geometrical parameters | |
167 | ||
009c5985 | 168 | param->SetSectorAngles(20.,10.,20.,10.); |
f72f44b7 | 169 | param->SetInnerRadiusLow(83.9); |
170 | param->SetInnerRadiusUp(141.3); | |
50e125f7 | 171 | param->SetOuterRadiusLow(146.9); |
172 | param->SetOuterRadiusUp(249.4); | |
173 | param->SetInSecLowEdge(81.6); | |
f72f44b7 | 174 | param->SetInSecUpEdge(143.6); |
50e125f7 | 175 | param->SetOuSecLowEdge(144.2); |
176 | param->SetOuSecUpEdge(252.1); | |
177 | param->SetEdge(1.5); | |
178 | param->SetDeadZone(1.15); | |
f72f44b7 | 179 | param->SetPadLength(2.0); |
180 | param->SetPadWidth(0.3); | |
181 | param->SetPadPitchLength(2.05); | |
182 | param->SetPadPitchWidth(0.35); | |
50e125f7 | 183 | param->Update(); |
184 | ||
f72f44b7 | 185 | if (TPC->IsVersion() != 2) paramd->Write("Param1"); |
186 | ||
50e125f7 | 187 | // set gas mixture |
188 | ||
189 | TPC->SetGasMixt(2,20,10,-1,0.9,0.1,0.); | |
fe4da5cc | 190 | TPC->SetSecAL(1); |
191 | TPC->SetSecAU(1); | |
7afc80df | 192 | // Meaningless with versions other than 2 |
f72f44b7 | 193 | TPC->SetSecLows(1, 2, 3, 1+18, 2+18, 3+18); |
194 | TPC->SetSecUps(1+36, 2+36, 3+36, 1+38+18, 2+38+18, 3+38+18, -1,-1,-1,-1,-1,-1); | |
195 | TPC->SetSens(1); | |
fe4da5cc | 196 | } |
197 | ||
198 | if(iTOF) { | |
199 | //=================== TOF parameters ============================ | |
2d1e19f5 | 200 | AliTOF *TOF = new AliTOFv1("TOF","normal TOF"); |
fe4da5cc | 201 | } |
202 | ||
203 | if(iRICH) { | |
204 | //=================== RICH parameters =========================== | |
205 | ||
206e3707 | 206 | AliRICH *RICH = new AliRICHv0("RICH","normal RICH"); |
fe4da5cc | 207 | |
206e3707 | 208 | RICH->SetSMAXAR(0.03); |
209 | RICH->SetSMAXAL(-1); | |
210 | // | |
211 | // Version 0 | |
212 | // Default Segmentation | |
213 | AliRICHsegmentationV0* RsegV0 = new AliRICHsegmentationV0; | |
214 | RsegV0->SetPADSIZ(.8, .8); | |
215 | RsegV0->SetDAnod(0.8/3); | |
216 | // Default response | |
217 | AliRICHresponseV0* Rresponse0 = new AliRICHresponseV0; | |
218 | AliRICHresponseCkv* RresponseCkv = new AliRICHresponseCkv; | |
219 | ||
220 | //------------------------Chambers 0-6 ---------------------------- | |
221 | for (Int_t i=0; i<7; i++) { | |
222 | RICH->SetSegmentationModel(i, 1, RsegV0); | |
223 | RICH->SetResponseModel(i, mip , Rresponse0); | |
224 | RICH->SetResponseModel(i, cerenkov, RresponseCkv); | |
225 | RICH->Chamber(i).SetRSIGM(5.); | |
226 | RICH->Chamber(i).SetMUCHSP(43.); | |
227 | RICH->Chamber(i).SetMUSIGM(0.18, 0.18); | |
228 | RICH->Chamber(i).SetMAXADC( 1024); | |
229 | RICH->Chamber(i).SetSqrtKx3(0.77459667); | |
230 | RICH->Chamber(i).SetKx2(0.962); | |
231 | RICH->Chamber(i).SetKx4(0.379); | |
232 | RICH->Chamber(i).SetSqrtKy3(0.77459667); | |
233 | RICH->Chamber(i).SetKy2(0.962); | |
234 | RICH->Chamber(i).SetKy4(0.379); | |
235 | RICH->Chamber(i).SetPitch(0.25); | |
236 | RICH->SetNsec(i,1); | |
237 | } | |
fe4da5cc | 238 | } |
239 | ||
240 | if(iZDC) { | |
241 | //=================== ZDC parameters ============================ | |
242 | ||
243 | AliZDC *ZDC = new AliZDCv1("ZDC","normal ZDC"); | |
244 | } | |
245 | ||
246 | if(iCASTOR) { | |
247 | //=================== CASTOR parameters ============================ | |
248 | ||
249 | AliCASTOR *CASTOR = new AliCASTORv1("CASTOR","normal CASTOR"); | |
250 | } | |
251 | ||
252 | if(iTRD) { | |
253 | //=================== TRD parameters ============================ | |
254 | ||
2d1e19f5 | 255 | AliTRD *TRD = new AliTRDv1("TRD","TRD version 0"); |
43f0a169 | 256 | // Select the gas mixture (0: 97% Xe + 3% isobutane, 1: 90% Xe + 10% CO2) |
257 | TRD->SetGasMix(0); | |
fe4da5cc | 258 | } |
259 | ||
fe4da5cc | 260 | if(iFMD) { |
261 | //=================== FMD parameters ============================ | |
262 | ||
263 | AliFMD *FMD = new AliFMDv1("FMD","normal FMD"); | |
264 | } | |
265 | ||
266 | if(iMUON) { | |
267 | //=================== MUON parameters =========================== | |
268 | ||
269 | AliMUON *MUON = new AliMUONv0("MUON","normal MUON"); | |
270 | ||
916c29ab | 271 | MUON->SetMaxStepGas(0.1); |
272 | MUON->SetMaxStepAlu(0.1); | |
273 | // | |
fe4da5cc | 274 | // Version 0 |
275 | // | |
276 | // First define the number of planes that are segmented (1 or 2) by a call | |
277 | // to SetNsec. | |
278 | // Then chose for each chamber (chamber plane) the segmentation | |
279 | // and response model. | |
280 | // They should be equal for the two chambers of each station. In a future | |
281 | // version this will be enforced. | |
282 | // | |
283 | // | |
284 | Int_t chamber; | |
285 | Int_t station; | |
fe4da5cc | 286 | // Default response |
287 | AliMUONresponseV0* response0 = new AliMUONresponseV0; | |
0f5936af | 288 | response0->SetSqrtKx3(0.7131); |
289 | response0->SetKx2(1.0107); | |
290 | response0->SetKx4(0.4036); | |
291 | response0->SetSqrtKy3(0.7642); | |
292 | response0->SetKy2(0.9706); | |
293 | response0->SetKy4(0.3831); | |
fe4da5cc | 294 | response0->SetPitch(0.25); |
0f5936af | 295 | response0->SetSigmaIntegration(10.); |
296 | response0->SetChargeSlope(50); | |
297 | response0->SetChargeSpread(0.18, 0.18); | |
298 | response0->SetMaxAdc(4096); | |
fe4da5cc | 299 | //-------------------------------------------------------- |
300 | // Configuration for Chamber TC1/2 (Station 1) ---------- | |
301 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
0f5936af | 302 | // Float_t rseg1[4]={17.5, 55.2, 71.3, 95.5}; |
303 | Float_t rseg1[4]={15.5, 55.2, 71.3, 95.5}; | |
304 | Int_t nseg1[4]={4, 4, 2, 1}; | |
305 | // | |
fe4da5cc | 306 | chamber=1; |
307 | //^^^^^^^^^ | |
308 | MUON->SetNsec(chamber-1,2); | |
309 | // | |
310 | AliMUONsegmentationV01 *seg11=new AliMUONsegmentationV01; | |
0f5936af | 311 | |
312 | seg11->SetSegRadii(rseg1); | |
313 | seg11->SetPADSIZ(3, 0.5); | |
314 | seg11->SetDAnod(3.0/3./4); | |
315 | seg11->SetPadDivision(nseg1); | |
316 | ||
fe4da5cc | 317 | MUON->SetSegmentationModel(chamber-1, 1, seg11); |
318 | // | |
0f5936af | 319 | AliMUONsegmentationV02 *seg12=new AliMUONsegmentationV02; |
320 | seg12->SetSegRadii(rseg1); | |
321 | seg12->SetPADSIZ(0.75, 2.0); | |
322 | seg12->SetDAnod(3.0/3./4); | |
323 | seg12->SetPadDivision(nseg1); | |
fe4da5cc | 324 | |
325 | MUON->SetSegmentationModel(chamber-1, 2, seg12); | |
326 | ||
0f5936af | 327 | MUON->SetResponseModel(chamber-1, response0); |
328 | ||
fe4da5cc | 329 | chamber=2; |
330 | //^^^^^^^^^ | |
0f5936af | 331 | // |
fe4da5cc | 332 | MUON->SetNsec(chamber-1,2); |
0f5936af | 333 | // |
334 | AliMUONsegmentationV01 *seg21=new AliMUONsegmentationV01; | |
335 | seg21->SetSegRadii(rseg1); | |
336 | seg21->SetPADSIZ(3, 0.5); | |
337 | seg21->SetDAnod(3.0/3./4); | |
338 | seg21->SetPadDivision(nseg1); | |
339 | MUON->SetSegmentationModel(chamber-1, 1, seg21); | |
340 | // | |
341 | AliMUONsegmentationV02 *seg22=new AliMUONsegmentationV02; | |
342 | seg22->SetSegRadii(rseg1); | |
343 | seg22->SetPADSIZ(0.75, 2.); | |
344 | seg22->SetDAnod(3.0/3./4); | |
345 | seg22->SetPadDivision(nseg1); | |
346 | MUON->SetSegmentationModel(chamber-1, 2, seg22); | |
fe4da5cc | 347 | |
0f5936af | 348 | MUON->SetResponseModel(chamber-1, response0); |
fe4da5cc | 349 | // |
350 | //-------------------------------------------------------- | |
351 | // Configuration for Chamber TC3/4 ----------------------- | |
352 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
0f5936af | 353 | // Float_t rseg2[4]={23.5, 47.1, 87.7, 122.5}; |
354 | Float_t rseg2[4]={21.5, 47.1, 87.7, 122.5}; | |
355 | Int_t nseg2[4]={4, 4, 2, 1}; | |
356 | // | |
fe4da5cc | 357 | chamber=3; |
0f5936af | 358 | //^^^^^^^^^ |
359 | MUON->SetNsec(chamber-1,2); | |
360 | // | |
361 | AliMUONsegmentationV01 *seg31=new AliMUONsegmentationV01; | |
362 | seg31->SetSegRadii(rseg2); | |
363 | seg31->SetPADSIZ(3, 0.5); | |
364 | seg31->SetDAnod(3.0/3./4); | |
365 | seg31->SetPadDivision(nseg2); | |
366 | MUON->SetSegmentationModel(chamber-1, 1, seg31); | |
367 | // | |
368 | AliMUONsegmentationV02 *seg32=new AliMUONsegmentationV02; | |
369 | seg32->SetSegRadii(rseg2); | |
370 | seg32->SetPADSIZ(0.75, 2.); | |
371 | seg32->SetPadDivision(nseg2); | |
372 | seg32->SetDAnod(3.0/3./4); | |
373 | ||
374 | MUON->SetSegmentationModel(chamber-1, 2, seg32); | |
375 | ||
fe4da5cc | 376 | MUON->SetResponseModel(chamber-1, response0); |
377 | ||
378 | chamber=4; | |
0f5936af | 379 | //^^^^^^^^^ |
fe4da5cc | 380 | // |
0f5936af | 381 | MUON->SetNsec(chamber-1,2); |
382 | // | |
383 | AliMUONsegmentationV01 *seg41=new AliMUONsegmentationV01; | |
384 | seg41->SetSegRadii(rseg2); | |
385 | seg41->SetPADSIZ(3, 0.5); | |
386 | seg41->SetDAnod(3.0/3./4); | |
387 | seg41->SetPadDivision(nseg2); | |
388 | MUON->SetSegmentationModel(chamber-1, 1, seg41); | |
fe4da5cc | 389 | // |
0f5936af | 390 | AliMUONsegmentationV02 *seg42=new AliMUONsegmentationV02; |
391 | seg42->SetSegRadii(rseg2); | |
392 | seg42->SetPADSIZ(0.75, 2.); | |
393 | seg42->SetPadDivision(nseg2); | |
394 | seg42->SetDAnod(3.0/3./4); | |
395 | ||
396 | MUON->SetSegmentationModel(chamber-1, 2, seg42); | |
397 | ||
398 | MUON->SetResponseModel(chamber-1, response0); | |
399 | ||
400 | ||
fe4da5cc | 401 | //-------------------------------------------------------- |
402 | // Configuration for Chamber TC5/6 ----------------------- | |
403 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
916c29ab | 404 | /* |
fe4da5cc | 405 | seg5 = new AliMUONsegmentationV1; |
406 | AliMUONresponseV0* response5 = new AliMUONresponseV0; | |
407 | // K3 = 0.62 | |
408 | response5->SetSqrtKx3(0.78740079); | |
409 | response5->SetKx2(0.95237319); // 0.5 * kPI * (1- 0.5*sqrtky3 ) | |
410 | response5->SetKx4(0.37480633); // 0.25/TMath::ATan(sqrtkx3) | |
411 | // K3 = 0.55 | |
412 | response5->SetSqrtKy3(0.74161985); | |
413 | response5->SetKy2(0.98832946); | |
414 | response5->SetKy4(0.39177817); | |
415 | response5->SetPitch(0.325); | |
0f5936af | 416 | response5->SetSigmaIntegration(10.); |
417 | response5->SetChargeSlope(50); | |
418 | response5->SetChargeSpread(0.4, 0.4); | |
419 | response5->SetMaxAdc(4096); | |
fe4da5cc | 420 | |
421 | chamber=5; | |
422 | MUON->SetNsec(chamber-1,1); | |
423 | MUON->SetSegmentationModel(chamber-1, 1, seg5); | |
424 | MUON->SetResponseModel(chamber-1, response5); | |
425 | ||
426 | chamber=6; | |
427 | MUON->SetNsec(chamber-1,1); | |
428 | MUON->SetSegmentationModel(chamber-1, 1, seg5); | |
429 | MUON->SetResponseModel(chamber-1, response5); | |
430 | // | |
431 | // Station 3 | |
432 | station=3; | |
433 | MUON->SetPADSIZ(station, 1, 0.975, 0.55); | |
916c29ab | 434 | */ |
435 | ||
436 | chamber=5; | |
437 | //^^^^^^^^^ | |
438 | MUON->SetNsec(chamber-1,2); | |
439 | // | |
440 | AliMUONsegmentationV0 *seg51=new AliMUONsegmentationV0; | |
441 | seg51->SetPADSIZ(0.75, 0.5); | |
442 | seg51->SetDAnod(3.0/3./4); | |
443 | MUON->SetSegmentationModel(chamber-1, 1, seg51); | |
444 | // | |
445 | AliMUONsegmentationV0 *seg52=new AliMUONsegmentationV0; | |
446 | seg52->SetPADSIZ(0.5,0.75); | |
447 | seg52->SetDAnod(3.0/3./4); | |
448 | MUON->SetSegmentationModel(chamber-1, 2, seg52); | |
449 | ||
450 | MUON->SetResponseModel(chamber-1, response0); | |
451 | ||
452 | chamber=6; | |
453 | //^^^^^^^^^ | |
454 | MUON->SetNsec(chamber-1,2); | |
455 | // | |
456 | AliMUONsegmentationV0 *seg61=new AliMUONsegmentationV0; | |
457 | seg61->SetPADSIZ(0.75, 0.5); | |
458 | seg61->SetDAnod(3.0/3./4); | |
459 | MUON->SetSegmentationModel(chamber-1, 1, seg61); | |
460 | // | |
461 | AliMUONsegmentationV0 *seg62=new AliMUONsegmentationV0; | |
462 | seg62->SetPADSIZ(0.5,0.75); | |
463 | seg62->SetDAnod(3.0/3./4); | |
464 | MUON->SetSegmentationModel(chamber-1, 2, seg62); | |
465 | ||
466 | MUON->SetResponseModel(chamber-1, response0); | |
fe4da5cc | 467 | |
fe4da5cc | 468 | //-------------------------------------------------------- |
0f5936af | 469 | // Configuration for Chamber TC7/8 (Station 4) ---------- |
fe4da5cc | 470 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
471 | ||
0f5936af | 472 | Int_t nseg4[4]={4, 4, 2, 1}; |
473 | ||
fe4da5cc | 474 | chamber=7; |
0f5936af | 475 | //^^^^^^^^^ |
476 | MUON->SetNsec(chamber-1,2); | |
477 | // | |
478 | AliMUONsegmentationV04 *seg71=new AliMUONsegmentationV04; | |
479 | seg71->SetPADSIZ(10.,0.5); | |
480 | seg71->SetDAnod(0.25); | |
481 | seg71->SetPadDivision(nseg4); | |
482 | MUON->SetSegmentationModel(chamber-1, 1, seg71); | |
483 | ||
484 | AliMUONsegmentationV05 *seg72=new AliMUONsegmentationV05; | |
485 | seg72->SetPADSIZ(1,10); | |
486 | seg72->SetDAnod(0.25); | |
487 | seg72->SetPadDivision(nseg4); | |
488 | MUON->SetSegmentationModel(chamber-1, 2, seg72); | |
fe4da5cc | 489 | |
fe4da5cc | 490 | MUON->SetResponseModel(chamber-1, response0); |
491 | ||
492 | chamber=8; | |
0f5936af | 493 | //^^^^^^^^^ |
494 | MUON->SetNsec(chamber-1,2); | |
495 | AliMUONsegmentationV04 *seg81=new AliMUONsegmentationV04; | |
496 | seg81->SetPADSIZ(10., 0.5); | |
497 | seg81->SetPadDivision(nseg4); | |
498 | seg81->SetDAnod(0.25); | |
499 | MUON->SetSegmentationModel(chamber-1, 1, seg81); | |
500 | ||
501 | AliMUONsegmentationV05 *seg82=new AliMUONsegmentationV05; | |
502 | seg82->SetPADSIZ(1, 10); | |
503 | seg82->SetPadDivision(nseg4); | |
504 | seg82->SetDAnod(0.25); | |
505 | MUON->SetSegmentationModel(chamber-1, 2, seg82); | |
506 | ||
fe4da5cc | 507 | MUON->SetResponseModel(chamber-1, response0); |
0f5936af | 508 | //-------------------------------------------------------- |
509 | // Configuration for Chamber TC9/10 (Station 5) --------- | |
510 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
511 | chamber=9; | |
512 | //^^^^^^^^^ | |
513 | MUON->SetNsec(chamber-1,2); | |
fe4da5cc | 514 | // |
0f5936af | 515 | AliMUONsegmentationV04 *seg91=new AliMUONsegmentationV04; |
516 | seg91->SetPADSIZ(10.,0.5); | |
517 | seg91->SetDAnod(0.25); | |
518 | seg91->SetPadDivision(nseg4); | |
519 | MUON->SetSegmentationModel(chamber-1, 1, seg91); | |
fe4da5cc | 520 | |
0f5936af | 521 | AliMUONsegmentationV05 *seg92=new AliMUONsegmentationV05; |
522 | seg92->SetPADSIZ(1,10); | |
523 | seg92->SetDAnod(0.25); | |
524 | seg92->SetPadDivision(nseg4); | |
525 | ||
526 | MUON->SetSegmentationModel(chamber-1, 2, seg92); | |
fe4da5cc | 527 | |
fe4da5cc | 528 | MUON->SetResponseModel(chamber-1, response0); |
529 | ||
530 | chamber=10; | |
0f5936af | 531 | //^^^^^^^^^ |
532 | MUON->SetNsec(chamber-1,2); | |
533 | AliMUONsegmentationV04 *seg101=new AliMUONsegmentationV04; | |
534 | seg101->SetPADSIZ(10., 0.5); | |
535 | seg101->SetPadDivision(nseg4); | |
536 | seg101->SetDAnod(0.25); | |
537 | MUON->SetSegmentationModel(chamber-1, 1, seg101); | |
538 | ||
539 | AliMUONsegmentationV05 *seg102=new AliMUONsegmentationV05; | |
540 | seg102->SetPADSIZ(1,10); | |
541 | seg102->SetPadDivision(nseg4); | |
542 | seg102->SetDAnod(0.25); | |
543 | MUON->SetSegmentationModel(chamber-1, 2, seg102); | |
544 | ||
fe4da5cc | 545 | MUON->SetResponseModel(chamber-1, response0); |
0f5936af | 546 | //-------------------------------------------------------- |
547 | // Configuration for Trigger staions --------------------- | |
548 | // (not yet used/implemented) ---------------------------- | |
549 | //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
fe4da5cc | 550 | |
551 | chamber=11; | |
552 | MUON->SetNsec(chamber-1,1); | |
553 | AliMUONsegmentationV0 *seg1112=new AliMUONsegmentationV0; | |
554 | seg1112->SetDAnod(0.51/3.); | |
555 | ||
556 | MUON->SetSegmentationModel(chamber-1, 1, seg1112); | |
557 | MUON->SetResponseModel(chamber-1, response0); | |
558 | ||
559 | chamber=12; | |
560 | MUON->SetNsec(chamber-1,1); | |
561 | MUON->SetSegmentationModel(chamber-1, 1, seg1112); | |
562 | MUON->SetResponseModel(chamber-1, response0); | |
563 | // | |
564 | // Trigger Station 1 | |
565 | station=6; | |
566 | MUON->SetPADSIZ(station, 1, 0.75, 0.5); | |
567 | ||
568 | chamber=13; | |
569 | MUON->SetNsec(chamber-1,1); | |
570 | AliMUONsegmentationV0 *seg1314=new AliMUONsegmentationV0; | |
571 | seg1314->SetDAnod(0.51/3.); | |
572 | ||
573 | MUON->SetSegmentationModel(chamber-1, 1, seg1314); | |
574 | MUON->SetResponseModel(chamber-1, response0); | |
575 | ||
576 | chamber=14; | |
577 | MUON->SetNsec(chamber-1,1); | |
578 | MUON->SetSegmentationModel(chamber-1, 1, seg1314); | |
579 | MUON->SetResponseModel(chamber-1, response0); | |
580 | // | |
581 | // Trigger Station 2 | |
582 | station=7; | |
583 | MUON->SetPADSIZ(station, 1, 0.75, 0.5); | |
584 | } | |
0f5936af | 585 | |
fe4da5cc | 586 | //=================== PHOS parameters =========================== |
587 | ||
8dfe31df | 588 | if(iPHOS) { |
47f39b79 | 589 | AliPHOS *PHOS = new AliPHOSv0("PHOS","GPS2"); |
fe4da5cc | 590 | } |
591 | ||
8dfe31df | 592 | |
fe4da5cc | 593 | if(iPMD) { |
594 | //=================== PMD parameters ============================ | |
595 | ||
ecd5c1f7 | 596 | AliPMD *PMD = new AliPMDv0("PMD","normal PMD"); |
fe4da5cc | 597 | PMD->SetPAR(1., 1., 0.8, 0.02); |
ecd5c1f7 | 598 | PMD->SetIN(6., 18., -580., 27., 27.); |
fe4da5cc | 599 | PMD->SetGEO(0.0, 0.2, 4.); |
ecd5c1f7 | 600 | PMD->SetPadSize(0.8, 1.0, 1.0, 1.5); |
601 | ||
fe4da5cc | 602 | } |
b422f318 | 603 | |
604 | if(iSTART) { | |
605 | //=================== START parameters ============================ | |
606 | AliSTART *START = new AliSTARTv0("START","START Detector"); | |
607 | } | |
608 | ||
fe4da5cc | 609 | |
610 | } |