RICH becomes HMPID
[u/mrichter/AliRoot.git] / PHOS / PHOS-HTML / PHOSConfig_Central.C
CommitLineData
c2583e52 1void Config(Int_t thickness)
2{
3 Text_t filename[50];
4
5 new AliGeant3("C++ Interface to Geant3");
6
7 //=======================================================================
8 // Create the output file
9 sprintf(filename,"junk.root");
10 printf(">>> Output file is %s \n",filename);
11
12 TFile *rootfile = new TFile(filename,"recreate");
13 rootfile->SetCompressionLevel(2);
14 TGeant3 *geant3 = (TGeant3*)gMC;
15
16 //=======================================================================
17 // ******* GEANT STEERING parameters FOR ALICE SIMULATION *******
18 geant3->SetTRIG(1); //Number of events to be processed
19 geant3->SetSWIT(4,10);
20 geant3->SetDEBU(0,0,1);
21 //geant3->SetSWIT(2,2);
22 geant3->SetERAN(1.e-6,1.e3,90);
23 geant3->SetDCAY(1);
24 geant3->SetPAIR(1);
25 geant3->SetCOMP(1);
26 geant3->SetPHOT(1);
27 geant3->SetPFIS(0);
28 geant3->SetDRAY(0);
29 geant3->SetANNI(1);
30 geant3->SetBREM(1);
31 geant3->SetMUNU(1);
32 geant3->SetCKOV(1);
33 geant3->SetHADR(1); //Select pure GEANH (HADR 1) or GEANH/NUCRIN (HADR 3)
34 geant3->SetLOSS(2);
35 geant3->SetMULS(1);
36 geant3->SetRAYL(1);
37 geant3->SetAUTO(1); //Select automatic STMIN etc... calc. (AUTO 1) or manual (AUTO 0)
38 geant3->SetABAN(0); //Restore 3.16 behaviour for abandoned tracks
39 geant3->SetOPTI(2); //Select optimisation level for GEANT geometry searches (0,1,2)
40 Float_t cut = 1.e-3; // 1MeV cut by default
41 Float_t tofmax = 1.e10;
42 // GAM ELEC NHAD CHAD MUON EBREM MUHAB EDEL MUDEL MUPA TOFMAX
43 geant3->SetCUTS(cut,cut, cut, cut, cut, cut, cut, cut, cut, cut, tofmax);
44 //
45 //=======================================================================
46 // --- Specify event type to be tracked through the ALICE setup
47 // --- All positions are in cm, angles in degrees, and P and E in GeV
48 //
49 // The following Cocktail generator is defined to simulate the neutral and
50 // charged background in the ALICE detector. This background is important
51 // in the case of photon detector as PHOS. We simulated a cocktail of
52 // pions (pi+, pi- and pi0) , kaons (K+, K-, Kshort and Klong), eta mesons,
53 // omega mesons and main baryons (protons, antiprotons, neutrons and
54 // antineutrons)
55 //
56 // 1-Nov-1999 Gines MARTINEZ, GPS @ SUBATECH, Nantes, France
57 //
58 Int_t ParticleDensity = 100; // Number of particles created in the selected rapidity range
59 Int_t NumberOfPions = 0.77 * ParticleDensity ; // ~77% of pions: pi^+, pi^- and pi^0 with equal probability
60 Int_t NumberOfKaons = 0.11 * ParticleDensity ; // ~11% of kaons: K^+, K^-, K_short and K_long with equal probability
61 Int_t NumberOfEtas = 0.04 * ParticleDensity ; // ~4.0% of eta mesons
62 Int_t NumberOfOmegas = 0.01 * ParticleDensity ; // ~1.0% of omega mesons
63 Int_t NumberOfBaryons = 0.07 * ParticleDensity ; // ~7.0% of baryons: p, pbar, n and nbar with equal probability
64
65
66 // P I O N S
67 AliGenParam *generpion = new AliGenParam(NumberOfPions,Pion);
68 // AliGenPHOSlib::GetPt(Pion), AliGenPHOSlib::GetY(Pion), AliGenPHOSlib::GetIp(Pion) ;
69 generpion->SetWeighting(non_analog); // Selecting the Pt distribution provided by AliGenPHOSlib::GetPt
70 generpion->SetForceDecay(nodecay); // Requiring that the generated particle is directly tracked by GEANT
71 //
72 // K A O N S
73 AliGenParam *generkaon = new AliGenParam(NumberOfKaons,Kaon);
74 // AliGenPHOSlib::GetPt(Kaon), AliGenPHOSlib::GetY(Kaon), AliGenPHOSlib::GetIp(Kaon) );
75 generkaon->SetWeighting(non_analog); // Selecting the Pt distribution provided by AliGenPHOSlib::GetPt
76 generkaon->SetForceDecay(nodecay); // Requiring that the generated particle is directly tracked by GEANT
77 //
78 // E T A S
79 AliGenParam *genereta = new AliGenParam(NumberOfEtas,Eta);
80 // AliGenPHOSlib::GetPt(Eta), AliGenPHOSlib::GetY(Eta), AliGenPHOSlib::GetIp(Eta) );
81 genereta->SetWeighting(non_analog); // Selecting the Pt distribution provided by AliGenPHOSlib::GetPt
82 genereta->SetForceDecay(nodecay); // Requiring that the generated particle is directly tracked by GEANT
83 //
84 // O M E G A S
85 AliGenParam *generomega = new AliGenParam(NumberOfOmegas,Omega);
86 // AliGenPHOSlib::GetPt(Omega), AliGenPHOSlib::GetY(Omega), AliGenPHOSlib::GetIp(Omega) );
87 generomega->SetWeighting(non_analog); // Selecting the Pt distribution provided by AliGenPHOSlib::GetPt
88 generomega->SetForceDecay(nodecay); // Requiring that the generated particle is directly tracked by GEANT
89 //
90 // B A R Y O N S
91 AliGenParam *generbaryon = new AliGenParam(NumberOfBaryons,Baryon);
92 // AliGenPHOSlib::GetPt(Baryon), AliGenPHOSlib::GetY(Baryon), AliGenPHOSlib::GetIp(Baryon) );
93 generbaryon->SetWeighting(non_analog); // Selecting the Pt distribution provided by AliGenPHOSlib::GetPt
94 generbaryon->SetForceDecay(nodecay); // Requiring that the generated particle is directly tracked by GEANT
95
96 AliGenCocktail *gener = new AliGenCocktail(); // Cocktail class
97 gener->SetPtRange(.02,10.00); // Transverse momentum range
98 gener->SetPhiRange(180.,360.); // Azimuthal angle range
99 gener->SetYRange(-0.25,0.25); // Pseudorapidity range
100 gener->SetOrigin(0,0,0); // Vertex position
101 gener->SetSigma(0,0,5.6); // Sigma in (X,Y,Z) (cm) on IP position
102 //
103 gener->AddGenerator(generpion,"pion",1.);
104 gener->AddGenerator(generkaon,"kaon",1.);
105 gener->AddGenerator(genereta,"eta",1.);
106 gener->AddGenerator(generomega,"omega",1.);
107 gener->AddGenerator(generbaryon,"baryon",1.);
108 gener->Init();
109
110 gAlice->SetField(0,0); //Specify maximum magnetic field in Tesla (neg. ==> default field)
111
112Int_t iMAG=1;
113Int_t iITS=0;
114Int_t iTPC=0;
115Int_t iTOF=0;
f4b3bbb7 116Int_t iHMPID=0;
c2583e52 117Int_t iZDC=0;
118Int_t iCASTOR=0;
119Int_t iTRD=0;
120Int_t iABSO=0;
121Int_t iDIPO=0;
122Int_t iHALL=1;
123Int_t iFRAME=0;
124Int_t iSHIL=0;
125Int_t iPIPE=0;
126Int_t iFMD=0;
127Int_t iMUON=0;
128Int_t iPHOS=1;
129Int_t iPMD=0;
130Int_t iSTART=0;
131
132
133 //=================== Alice BODY parameters =============================
134 AliBODY *BODY = new AliBODY("BODY","Alice envelop");
135
136
137if(iMAG) {
138//=================== MAG parameters ============================
139// --- Start with Magnet since detector layouts may be depending ---
140// --- on the selected Magnet dimensions ---
141AliMAG *MAG = new AliMAG("MAG","Magnet");
142}
143
144
145if(iABSO) {
146//=================== ABSO parameters ============================
147AliABSO *ABSO = new AliABSOv0("ABSO","Muon Absorber");
148}
149
150if(iDIPO) {
151//=================== DIPO parameters ============================
152
153AliDIPO *DIPO = new AliDIPOv2("DIPO","Dipole version 2");
154}
155
156if(iHALL) {
157//=================== HALL parameters ============================
158
159AliHALL *HALL = new AliHALL("HALL","Alice Hall");
160}
161
162
163if(iFRAME) {
164//=================== FRAME parameters ============================
165
166AliFRAME *FRAME = new AliFRAMEv0("FRAME","Space Frame");
167
168}
169
170if(iSHIL) {
171//=================== SHIL parameters ============================
172
173AliSHIL *SHIL = new AliSHILv0("SHIL","Shielding");
174}
175
176
177if(iPIPE) {
178//=================== PIPE parameters ============================
179
180AliPIPE *PIPE = new AliPIPEv0("PIPE","Beam Pipe");
181}
182
183
184if(iITS) {
185//=================== ITS parameters ============================
186//
187// EUCLID is a flag to output (=1) both geometry and media to two ASCII files
188// (called by default ITSgeometry.euc and ITSgeometry.tme) in a format
189// understandable to the CAD system EUCLID. The default (=0) means that you
190// dont want to use this facility.
191//
192AliITS *ITS = new AliITSv5("ITS","normal ITS");
193ITS->SetEUCLID(0);
194}
195
196if(iTPC) {
197//============================ TPC parameters ================================
198// --- This allows the user to specify sectors for the SLOW (TPC geometry 2)
199// --- Simulator. SecAL (SecAU) <0 means that ALL lower (upper)
200// --- sectors are specified, any value other than that requires at least one
201// --- sector (lower or upper)to be specified!
202// --- Reminder: sectors 1-24 are lower sectors (1-12 -> z>0, 13-24 -> z<0)
203// --- sectors 25-72 are the upper ones (25-48 -> z>0, 49-72 -> z<0)
204// --- SecLows - number of lower sectors specified (up to 6)
205// --- SecUps - number of upper sectors specified (up to 12)
206// --- Sens - sensitive strips for the Slow Simulator !!!
207// --- This does NOT work if all S or L-sectors are specified, i.e.
208// --- if SecAL or SecAU < 0
209//
210//
211//-----------------------------------------------------------------------------
212
213AliTPC *TPC = new AliTPCv1("TPC","Normal TPC");
214AliTPCD *paramd = TPC->GetDigParam();
215AliTPCParam *param = &(paramd->GetParam());
216
217// Set geometrical parameters
218
219param->SetSectorAngles(20.,10.,20.,10.);
220param->SetInnerRadiusLow(83.9);
221param->SetInnerRadiusUp(141.3);
222param->SetOuterRadiusLow(146.9);
223param->SetOuterRadiusUp(249.4);
224param->SetInSecLowEdge(81.6);
225param->SetInSecUpEdge(143.6);
226param->SetOuSecLowEdge(144.2);
227param->SetOuSecUpEdge(252.1);
228param->SetEdge(1.5);
229param->SetDeadZone(1.15);
230param->SetPadLength(2.0);
231param->SetPadWidth(0.3);
232param->SetPadPitchLength(2.05);
233param->SetPadPitchWidth(0.35);
234param->Update();
235
236if (TPC->IsVersion() != 2) paramd->Write("Param1");
237
238// set gas mixture
239
240TPC->SetGasMixt(2,20,10,-1,0.9,0.1,0.);
241TPC->SetSecAL(1);
242TPC->SetSecAU(1);
243// Meaningless with versions other than 2
244TPC->SetSecLows(1, 2, 3, 1+18, 2+18, 3+18);
245TPC->SetSecUps(1+36, 2+36, 3+36, 1+38+18, 2+38+18, 3+38+18, -1,-1,-1,-1,-1,-1);
246TPC->SetSens(1);
247}
248
249if(iTOF) {
250//=================== TOF parameters ============================
251AliTOF *TOF = new AliTOFv1("TOF","normal TOF");
252}
253
f4b3bbb7 254if(iHMPID) {
255//=================== HMPID parameters ===========================
c2583e52 256
f4b3bbb7 257 AliHMPID *HMPID = new AliHMPIDv0("HMPID","normal HMPID");
c2583e52 258
f4b3bbb7 259 HMPID->SetSMAXAR(0.03);
260 HMPID->SetSMAXAL(-1);
c2583e52 261//
262// Version 0
263// Default Segmentation
f4b3bbb7 264 AliHMPIDsegmentationV0* RsegV0 = new AliHMPIDsegmentationV0;
c2583e52 265 RsegV0->SetPADSIZ(.8, .8);
266 RsegV0->SetDAnod(0.8/3);
267// Default response
f4b3bbb7 268 AliHMPIDresponseV0* Rresponse0 = new AliHMPIDresponseV0;
269 AliHMPIDresponseCkv* RresponseCkv = new AliHMPIDresponseCkv;
c2583e52 270
271//------------------------Chambers 0-6 ----------------------------
272 for (Int_t i=0; i<7; i++) {
f4b3bbb7 273 HMPID->SetSegmentationModel(i, 1, RsegV0);
274 HMPID->SetResponseModel(i, mip , Rresponse0);
275 HMPID->SetResponseModel(i, cerenkov, RresponseCkv);
276 HMPID->Chamber(i).SetRSIGM(5.);
277 HMPID->Chamber(i).SetMUCHSP(43.);
278 HMPID->Chamber(i).SetMUSIGM(0.18, 0.18);
279 HMPID->Chamber(i).SetMAXADC( 1024);
280 HMPID->Chamber(i).SetSqrtKx3(0.77459667);
281 HMPID->Chamber(i).SetKx2(0.962);
282 HMPID->Chamber(i).SetKx4(0.379);
283 HMPID->Chamber(i).SetSqrtKy3(0.77459667);
284 HMPID->Chamber(i).SetKy2(0.962);
285 HMPID->Chamber(i).SetKy4(0.379);
286 HMPID->Chamber(i).SetPitch(0.25);
287 HMPID->SetNsec(i,1);
c2583e52 288 }
289}
290
291if(iZDC) {
292//=================== ZDC parameters ============================
293
294AliZDC *ZDC = new AliZDCv1("ZDC","normal ZDC");
295}
296
297if(iCASTOR) {
298//=================== CASTOR parameters ============================
299
300AliCASTOR *CASTOR = new AliCASTORv1("CASTOR","normal CASTOR");
301}
302
303if(iTRD) {
304//=================== TRD parameters ============================
305
306AliTRD *TRD = new AliTRDv1("TRD","TRD version 0");
307// Select the gas mixture (0: 97% Xe + 3% isobutane, 1: 90% Xe + 10% CO2)
308TRD->SetGasMix(0);
309}
310
311if(iFMD) {
312//=================== FMD parameters ============================
313
314AliFMD *FMD = new AliFMDv1("FMD","normal FMD");
315}
316
317if(iMUON) {
318//=================== MUON parameters ===========================
319
320AliMUON *MUON = new AliMUONv0("MUON","normal MUON");
321
322 MUON->SetMaxStepGas(0.1);
323 MUON->SetMaxStepAlu(0.1);
324//
325// Version 0
326//
327// First define the number of planes that are segmented (1 or 2) by a call
328// to SetNsec.
329// Then chose for each chamber (chamber plane) the segmentation
330// and response model.
331// They should be equal for the two chambers of each station. In a future
332// version this will be enforced.
333//
334//
335 Int_t chamber;
336 Int_t station;
337// Default response
338 AliMUONresponseV0* response0 = new AliMUONresponseV0;
339 response0->SetSqrtKx3(0.7131);
340 response0->SetKx2(1.0107);
341 response0->SetKx4(0.4036);
342 response0->SetSqrtKy3(0.7642);
343 response0->SetKy2(0.9706);
344 response0->SetKy4(0.3831);
345 response0->SetPitch(0.25);
346 response0->SetSigmaIntegration(10.);
347 response0->SetChargeSlope(50);
348 response0->SetChargeSpread(0.18, 0.18);
349 response0->SetMaxAdc(4096);
350//--------------------------------------------------------
351// Configuration for Chamber TC1/2 (Station 1) ----------
352//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
353// Float_t rseg1[4]={17.5, 55.2, 71.3, 95.5};
354 Float_t rseg1[4]={15.5, 55.2, 71.3, 95.5};
355 Int_t nseg1[4]={4, 4, 2, 1};
356//
357 chamber=1;
358//^^^^^^^^^
359 MUON->SetNsec(chamber-1,2);
360//
361 AliMUONsegmentationV01 *seg11=new AliMUONsegmentationV01;
362
363 seg11->SetSegRadii(rseg1);
364 seg11->SetPADSIZ(3, 0.5);
365 seg11->SetDAnod(3.0/3./4);
366 seg11->SetPadDivision(nseg1);
367
368 MUON->SetSegmentationModel(chamber-1, 1, seg11);
369//
370 AliMUONsegmentationV02 *seg12=new AliMUONsegmentationV02;
371 seg12->SetSegRadii(rseg1);
372 seg12->SetPADSIZ(0.75, 2.0);
373 seg12->SetDAnod(3.0/3./4);
374 seg12->SetPadDivision(nseg1);
375
376 MUON->SetSegmentationModel(chamber-1, 2, seg12);
377
378 MUON->SetResponseModel(chamber-1, response0);
379
380 chamber=2;
381//^^^^^^^^^
382//
383 MUON->SetNsec(chamber-1,2);
384//
385 AliMUONsegmentationV01 *seg21=new AliMUONsegmentationV01;
386 seg21->SetSegRadii(rseg1);
387 seg21->SetPADSIZ(3, 0.5);
388 seg21->SetDAnod(3.0/3./4);
389 seg21->SetPadDivision(nseg1);
390 MUON->SetSegmentationModel(chamber-1, 1, seg21);
391//
392 AliMUONsegmentationV02 *seg22=new AliMUONsegmentationV02;
393 seg22->SetSegRadii(rseg1);
394 seg22->SetPADSIZ(0.75, 2.);
395 seg22->SetDAnod(3.0/3./4);
396 seg22->SetPadDivision(nseg1);
397 MUON->SetSegmentationModel(chamber-1, 2, seg22);
398
399 MUON->SetResponseModel(chamber-1, response0);
400//
401//--------------------------------------------------------
402// Configuration for Chamber TC3/4 -----------------------
403//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
404// Float_t rseg2[4]={23.5, 47.1, 87.7, 122.5};
405 Float_t rseg2[4]={21.5, 47.1, 87.7, 122.5};
406 Int_t nseg2[4]={4, 4, 2, 1};
407//
408 chamber=3;
409//^^^^^^^^^
410 MUON->SetNsec(chamber-1,2);
411//
412 AliMUONsegmentationV01 *seg31=new AliMUONsegmentationV01;
413 seg31->SetSegRadii(rseg2);
414 seg31->SetPADSIZ(3, 0.5);
415 seg31->SetDAnod(3.0/3./4);
416 seg31->SetPadDivision(nseg2);
417 MUON->SetSegmentationModel(chamber-1, 1, seg31);
418//
419 AliMUONsegmentationV02 *seg32=new AliMUONsegmentationV02;
420 seg32->SetSegRadii(rseg2);
421 seg32->SetPADSIZ(0.75, 2.);
422 seg32->SetPadDivision(nseg2);
423 seg32->SetDAnod(3.0/3./4);
424
425 MUON->SetSegmentationModel(chamber-1, 2, seg32);
426
427 MUON->SetResponseModel(chamber-1, response0);
428
429 chamber=4;
430//^^^^^^^^^
431//
432 MUON->SetNsec(chamber-1,2);
433//
434 AliMUONsegmentationV01 *seg41=new AliMUONsegmentationV01;
435 seg41->SetSegRadii(rseg2);
436 seg41->SetPADSIZ(3, 0.5);
437 seg41->SetDAnod(3.0/3./4);
438 seg41->SetPadDivision(nseg2);
439 MUON->SetSegmentationModel(chamber-1, 1, seg41);
440//
441 AliMUONsegmentationV02 *seg42=new AliMUONsegmentationV02;
442 seg42->SetSegRadii(rseg2);
443 seg42->SetPADSIZ(0.75, 2.);
444 seg42->SetPadDivision(nseg2);
445 seg42->SetDAnod(3.0/3./4);
446
447 MUON->SetSegmentationModel(chamber-1, 2, seg42);
448
449 MUON->SetResponseModel(chamber-1, response0);
450
451
452//--------------------------------------------------------
453// Configuration for Chamber TC5/6 -----------------------
454//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
455/*
456 seg5 = new AliMUONsegmentationV1;
457 AliMUONresponseV0* response5 = new AliMUONresponseV0;
458 // K3 = 0.62
459 response5->SetSqrtKx3(0.78740079);
460 response5->SetKx2(0.95237319); // 0.5 * kPI * (1- 0.5*sqrtky3 )
461 response5->SetKx4(0.37480633); // 0.25/TMath::ATan(sqrtkx3)
462 // K3 = 0.55
463 response5->SetSqrtKy3(0.74161985);
464 response5->SetKy2(0.98832946);
465 response5->SetKy4(0.39177817);
466 response5->SetPitch(0.325);
467 response5->SetSigmaIntegration(10.);
468 response5->SetChargeSlope(50);
469 response5->SetChargeSpread(0.4, 0.4);
470 response5->SetMaxAdc(4096);
471
472 chamber=5;
473 MUON->SetNsec(chamber-1,1);
474 MUON->SetSegmentationModel(chamber-1, 1, seg5);
475 MUON->SetResponseModel(chamber-1, response5);
476
477 chamber=6;
478 MUON->SetNsec(chamber-1,1);
479 MUON->SetSegmentationModel(chamber-1, 1, seg5);
480 MUON->SetResponseModel(chamber-1, response5);
481//
482// Station 3
483 station=3;
484 MUON->SetPADSIZ(station, 1, 0.975, 0.55);
485*/
486
487 chamber=5;
488//^^^^^^^^^
489 MUON->SetNsec(chamber-1,2);
490//
491 AliMUONsegmentationV0 *seg51=new AliMUONsegmentationV0;
492 seg51->SetPADSIZ(0.75, 0.5);
493 seg51->SetDAnod(3.0/3./4);
494 MUON->SetSegmentationModel(chamber-1, 1, seg51);
495//
496 AliMUONsegmentationV0 *seg52=new AliMUONsegmentationV0;
497 seg52->SetPADSIZ(0.5,0.75);
498 seg52->SetDAnod(3.0/3./4);
499 MUON->SetSegmentationModel(chamber-1, 2, seg52);
500
501 MUON->SetResponseModel(chamber-1, response0);
502
503 chamber=6;
504//^^^^^^^^^
505 MUON->SetNsec(chamber-1,2);
506//
507 AliMUONsegmentationV0 *seg61=new AliMUONsegmentationV0;
508 seg61->SetPADSIZ(0.75, 0.5);
509 seg61->SetDAnod(3.0/3./4);
510 MUON->SetSegmentationModel(chamber-1, 1, seg61);
511//
512 AliMUONsegmentationV0 *seg62=new AliMUONsegmentationV0;
513 seg62->SetPADSIZ(0.5,0.75);
514 seg62->SetDAnod(3.0/3./4);
515 MUON->SetSegmentationModel(chamber-1, 2, seg62);
516
517 MUON->SetResponseModel(chamber-1, response0);
518
519//--------------------------------------------------------
520// Configuration for Chamber TC7/8 (Station 4) ----------
521//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
522
523 Int_t nseg4[4]={4, 4, 2, 1};
524
525 chamber=7;
526//^^^^^^^^^
527 MUON->SetNsec(chamber-1,2);
528//
529 AliMUONsegmentationV04 *seg71=new AliMUONsegmentationV04;
530 seg71->SetPADSIZ(10.,0.5);
531 seg71->SetDAnod(0.25);
532 seg71->SetPadDivision(nseg4);
533 MUON->SetSegmentationModel(chamber-1, 1, seg71);
534
535 AliMUONsegmentationV05 *seg72=new AliMUONsegmentationV05;
536 seg72->SetPADSIZ(1,10);
537 seg72->SetDAnod(0.25);
538 seg72->SetPadDivision(nseg4);
539 MUON->SetSegmentationModel(chamber-1, 2, seg72);
540
541 MUON->SetResponseModel(chamber-1, response0);
542
543 chamber=8;
544//^^^^^^^^^
545 MUON->SetNsec(chamber-1,2);
546 AliMUONsegmentationV04 *seg81=new AliMUONsegmentationV04;
547 seg81->SetPADSIZ(10., 0.5);
548 seg81->SetPadDivision(nseg4);
549 seg81->SetDAnod(0.25);
550 MUON->SetSegmentationModel(chamber-1, 1, seg81);
551
552 AliMUONsegmentationV05 *seg82=new AliMUONsegmentationV05;
553 seg82->SetPADSIZ(1, 10);
554 seg82->SetPadDivision(nseg4);
555 seg82->SetDAnod(0.25);
556 MUON->SetSegmentationModel(chamber-1, 2, seg82);
557
558 MUON->SetResponseModel(chamber-1, response0);
559//--------------------------------------------------------
560// Configuration for Chamber TC9/10 (Station 5) ---------
561//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
562 chamber=9;
563//^^^^^^^^^
564 MUON->SetNsec(chamber-1,2);
565//
566 AliMUONsegmentationV04 *seg91=new AliMUONsegmentationV04;
567 seg91->SetPADSIZ(10.,0.5);
568 seg91->SetDAnod(0.25);
569 seg91->SetPadDivision(nseg4);
570 MUON->SetSegmentationModel(chamber-1, 1, seg91);
571
572 AliMUONsegmentationV05 *seg92=new AliMUONsegmentationV05;
573 seg92->SetPADSIZ(1,10);
574 seg92->SetDAnod(0.25);
575 seg92->SetPadDivision(nseg4);
576
577 MUON->SetSegmentationModel(chamber-1, 2, seg92);
578
579 MUON->SetResponseModel(chamber-1, response0);
580
581 chamber=10;
582//^^^^^^^^^
583 MUON->SetNsec(chamber-1,2);
584 AliMUONsegmentationV04 *seg101=new AliMUONsegmentationV04;
585 seg101->SetPADSIZ(10., 0.5);
586 seg101->SetPadDivision(nseg4);
587 seg101->SetDAnod(0.25);
588 MUON->SetSegmentationModel(chamber-1, 1, seg101);
589
590 AliMUONsegmentationV05 *seg102=new AliMUONsegmentationV05;
591 seg102->SetPADSIZ(1,10);
592 seg102->SetPadDivision(nseg4);
593 seg102->SetDAnod(0.25);
594 MUON->SetSegmentationModel(chamber-1, 2, seg102);
595
596 MUON->SetResponseModel(chamber-1, response0);
597//--------------------------------------------------------
598// Configuration for Trigger staions ---------------------
599// (not yet used/implemented) ----------------------------
600//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
601
602 chamber=11;
603 MUON->SetNsec(chamber-1,1);
604 AliMUONsegmentationV0 *seg1112=new AliMUONsegmentationV0;
605 seg1112->SetDAnod(0.51/3.);
606
607 MUON->SetSegmentationModel(chamber-1, 1, seg1112);
608 MUON->SetResponseModel(chamber-1, response0);
609
610 chamber=12;
611 MUON->SetNsec(chamber-1,1);
612 MUON->SetSegmentationModel(chamber-1, 1, seg1112);
613 MUON->SetResponseModel(chamber-1, response0);
614//
615// Trigger Station 1
616 station=6;
617 MUON->SetPADSIZ(station, 1, 0.75, 0.5);
618
619 chamber=13;
620 MUON->SetNsec(chamber-1,1);
621 AliMUONsegmentationV0 *seg1314=new AliMUONsegmentationV0;
622 seg1314->SetDAnod(0.51/3.);
623
624 MUON->SetSegmentationModel(chamber-1, 1, seg1314);
625 MUON->SetResponseModel(chamber-1, response0);
626
627 chamber=14;
628 MUON->SetNsec(chamber-1,1);
629 MUON->SetSegmentationModel(chamber-1, 1, seg1314);
630 MUON->SetResponseModel(chamber-1, response0);
631//
632// Trigger Station 2
633 station=7;
634 MUON->SetPADSIZ(station, 1, 0.75, 0.5);
635}
636 if(iPHOS) {
637 //=================== PHOS parameters ===========================
638
639 AliPHOS *PHOS = new AliPHOSv0("PHOS","GPS2");
640 Float_t x = (Float_t) thickness / 100. ;
641 if (thickness == 0) x = 0.00001 ;
642 PHOS->GetGeometry()-> SetLeadConverterThickness(x);
643 }
644if(iPMD) {
645//=================== PMD parameters ============================
646
647AliPMD *PMD = new AliPMDv0("PMD","normal PMD");
648PMD->SetPAR(1., 1., 0.8, 0.02);
649PMD->SetIN(6., 18., -580., 27., 27.);
650PMD->SetGEO(0.0, 0.2, 4.);
651PMD->SetPadSize(0.8, 1.0, 1.0, 1.5);
652
653}
654
655if(iSTART) {
656//=================== START parameters ============================
657AliSTART *START = new AliSTARTv0("START","START Detector");
658}
659
660}