Inheritance from TObject. Automatic streamers.
[u/mrichter/AliRoot.git] / PHOS / PHOSBackground.C
CommitLineData
358ee668 1void Config()
2{
3
4new TGeant3("C++ Interface to Geant3");
5
6//=======================================================================
7// Create the output file
8
9TFile *rootfile = new TFile("$TEMPO/galice.root","recreate");
10rootfile->SetCompressionLevel(2);
11TGeant3 *geant3 = (TGeant3*)gMC;
12
13//=======================================================================
14// ******* GEANT STEERING parameters FOR ALICE SIMULATION *******
15geant3->SetTRIG(1); //Number of events to be processed
16geant3->SetSWIT(4,10);
17geant3->SetDEBU(0,0,1);
18//geant3->SetSWIT(2,2);
19geant3->SetDCAY(1);
20geant3->SetPAIR(1);
21geant3->SetCOMP(1);
22geant3->SetPHOT(1);
23geant3->SetPFIS(0);
24geant3->SetDRAY(0);
25geant3->SetANNI(1);
26geant3->SetBREM(1);
27geant3->SetMUNU(1);
28geant3->SetCKOV(1);
29geant3->SetHADR(1); //Select pure GEANH (HADR 1) or GEANH/NUCRIN (HADR 3)
30geant3->SetLOSS(2);
31geant3->SetMULS(1);
32geant3->SetRAYL(1);
33geant3->SetAUTO(1); //Select automatic STMIN etc... calc. (AUTO 1) or manual (AUTO 0)
34geant3->SetABAN(0); //Restore 3.16 behaviour for abandoned tracks
35geant3->SetOPTI(2); //Select optimisation level for GEANT geometry searches (0,1,2)
36Float_t cut = 1.e-3; // 1MeV cut by default
37Float_t tofmax = 1.e10;
38// GAM ELEC NHAD CHAD MUON EBREM MUHAB EDEL MUDEL MUPA TOFMAX
39geant3->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//
46// The following Cocktail generator is defined to simulate the neutral and
47// charged background in the ALICE detector. This background is important
48// in the case of photon detector as PHOS. We simulated a cocktail of
49// pions (pi+, pi- and pi0) , kaons (K+, K-, Kshort and Klong), eta mesons,
50// omega mesons and main baryons (protons, antiprotons, neutrons and
51// antineutrons)
52//
53// 1-Nov-1999 Gines MARTINEZ, GPS @ SUBATECH, Nantes, France
54//
55AliGenCocktail *gener = new AliGenCocktail();
56 gener->SetPtRange(.5,5.);
57 gener->SetPhiRange(180.,360.);
58 gener->SetYRange(-0.5,0.5);
59 gener->SetOrigin(0,0,0); // vertex position
60 gener->SetSigma(0,0,5.6); // Sigma in (X,Y,Z) (cm) on IP position
61
62//===========================
63// 3 0 8 0 P I O N S
64//===========================
65 AliGenParam *generpion =
66 new AliGenParam(3080,Pion,
67 AliGenPHOSlib::GetPt(Pion),
68 AliGenPHOSlib::GetY(Pion),
69 AliGenPHOSlib::GetIp(Pion) );
70 generpion->SetWeighting(non_analog);
71 generpion->SetForceDecay(nodecay);
72//=======================
73// 4 4 0 K A O N S
74//=======================
75 AliGenParam *generkaon = new AliGenParam(440,Kaon,
76 AliGenPHOSlib::GetPt(Kaon),
77 AliGenPHOSlib::GetY(Kaon),
78 AliGenPHOSlib::GetIp(Kaon) );
79 generkaon->SetWeighting(non_analog);
80 generkaon->SetForceDecay(nodecay);
81//=====================
82// 1 7 8 E T A S
83//=====================
84 AliGenParam *genereta = new AliGenParam(178,Eta,
85 AliGenPHOSlib::GetPt(Eta),
86 AliGenPHOSlib::GetY(Eta),
87 AliGenPHOSlib::GetIp(Eta) );
88 genereta->SetWeighting(non_analog);
89 genereta->SetForceDecay(nodecay);
90//==================
91// 50 O M E G A S
92//==================
93 AliGenParam *generomega = new AliGenParam(50,Omega,
94 AliGenPHOSlib::GetPt(Omega),
95 AliGenPHOSlib::GetY(Omega),
96 AliGenPHOSlib::GetIp(Omega) );
97 generomega->SetWeighting(non_analog);
98 generomega->SetForceDecay(nodecay);
99//========================
100// 2 8 8 B A R Y O N S
101//========================
102 AliGenParam *generbaryon = new AliGenParam(288,Baryon,
103 AliGenPHOSlib::GetPt(Baryon),
104 AliGenPHOSlib::GetY(Baryon),
105 AliGenPHOSlib::GetIp(Baryon) );
106 generbaryon->SetWeighting(non_analog);
107 generbaryon->SetForceDecay(nodecay);
108
109
110 gener->AddGenerator(generpion,"pion",1.);
111 gener->AddGenerator(generkaon,"kaon",1.);
112 gener->AddGenerator(genereta,"eta",1.);
113 gener->AddGenerator(generomega,"omega",1.);
114 gener->AddGenerator(generbaryon,"baryon",1.);
115 gener->Init();
116
117//
118// Activate this line if you want the vertex smearing to happen
119// track by track
120//
121//gener->SetVertexSmear(perTrack);
122
123gAlice->SetField(-999,2); //Specify maximum magnetic field in Tesla (neg. ==> default field)
124
125Int_t iMAG=1;
126Int_t iITS=0;
127Int_t iTPC=0;
128Int_t iTOF=0;
129Int_t iRICH=0;
130Int_t iZDC=0;
131Int_t iCASTOR=0;
132Int_t iTRD=0;
133Int_t iABSO=0;
134Int_t iDIPO=1;
135Int_t iHALL=1;
136Int_t iFRAME=1;
137Int_t iSHIL=1;
138Int_t iPIPE=1;
139Int_t iFMD=0;
140Int_t iMUON=0;
141Int_t iPHOS=1;
358ee668 142Int_t iPMD=0;
143Int_t iSTART=0;
144
145//=================== Alice BODY parameters =============================
146AliBODY *BODY = new AliBODY("BODY","Alice envelop");
147
148
149if(iMAG) {
150//=================== MAG parameters ============================
151// --- Start with Magnet since detector layouts may be depending ---
152// --- on the selected Magnet dimensions ---
153AliMAG *MAG = new AliMAG("MAG","Magnet");
154}
155
156
157if(iABSO) {
158//=================== ABSO parameters ============================
159AliABSO *ABSO = new AliABSO("ABSO","Muon Absorber");
160}
161
162if(iDIPO) {
163//=================== DIPO parameters ============================
164
165AliDIPO *DIPO = new AliDIPOv2("DIPO","Dipole version 2");
166}
167
168if(iHALL) {
169//=================== HALL parameters ============================
170
171AliHALL *HALL = new AliHALL("HALL","Alice Hall");
172}
173
174
175if(iFRAME) {
176//=================== FRAME parameters ============================
177
178AliFRAME *FRAME = new AliFRAMEv0("FRAME","Space Frame");
179// Uncomment the following line to obtain the closed version
180// of the space frame. The default is the version with holes
181// FRAME->SetEuclidFile("$(ALICE_ROOT)/Euclid/frame.tme","$(ALICE_ROOT)/Euclid/frame1099i.euc");
182}
183
184if(iSHIL) {
185//=================== SHIL parameters ============================
186
187AliSHIL *SHIL = new AliSHIL("SHIL","Shielding");
188}
189
190
191if(iPIPE) {
192//=================== PIPE parameters ============================
193
194AliPIPE *PIPE = new AliPIPEv0("PIPE","Beam Pipe");
195}
196
197
198if(iITS) {
199//=================== ITS parameters ============================
200//
201// EUCLID is a flag to output (=1) both geometry and media to two ASCII files
202// (called by default ITSgeometry.euc and ITSgeometry.tme) in a format
203// understandable to the CAD system EUCLID. The default (=0) means that you
204// dont want to use this facility.
205//
206AliITS *ITS = new AliITSv5("ITS","normal ITS");
207ITS->SetEUCLID(0);
208}
209
210if(iTPC) {
211//============================ TPC parameters ================================
212// --- This allows the user to specify sectors for the SLOW (TPC geometry 2)
213// --- Simulator. SecAL (SecAU) <0 means that ALL lower (upper)
214// --- sectors are specified, any value other than that requires at least one
215// --- sector (lower or upper)to be specified!
216// --- Reminder: sectors 1-24 are lower sectors (1-12 -> z>0, 13-24 -> z<0)
217// --- sectors 25-72 are the upper ones (25-48 -> z>0, 49-72 -> z<0)
218// --- SecLows - number of lower sectors specified (up to 6)
219// --- SecUps - number of upper sectors specified (up to 12)
220// --- Sens - sensitive strips for the Slow Simulator !!!
221// --- This does NOT work if all S or L-sectors are specified, i.e.
222// --- if SecAL or SecAU < 0
223//
224//
225//-----------------------------------------------------------------------------
226
227AliTPC *TPC = new AliTPCv1("TPC","Normal TPC");
228AliTPCD *paramd = TPC->GetDigParam();
229AliTPCParam *param = &(paramd->GetParam());
230
231// Set geometrical parameters
232
233param->SetSectorAngles(20.,0.,20.,0.);
234param->SetInnerRadiusLow(83.9);
235param->SetInnerRadiusUp(141.3);
236param->SetOuterRadiusLow(146.9);
237param->SetOuterRadiusUp(249.4);
238param->SetInSecLowEdge(81.6);
239param->SetInSecUpEdge(143.6);
240param->SetOuSecLowEdge(144.2);
241param->SetOuSecUpEdge(252.1);
242param->SetEdge(1.5);
243param->SetDeadZone(1.15);
244param->SetPadLength(2.0);
245param->SetPadWidth(0.3);
246param->SetPadPitchLength(2.05);
247param->SetPadPitchWidth(0.35);
248param->Update();
249
250if (TPC->IsVersion() != 2) paramd->Write("Param1");
251
252// set gas mixture
253
254TPC->SetGasMixt(2,20,10,-1,0.9,0.1,0.);
255TPC->SetSecAL(1);
256TPC->SetSecAU(1);
257// Meaningless with versions other than 2
258TPC->SetSecLows(1, 2, 3, 1+18, 2+18, 3+18);
259TPC->SetSecUps(1+36, 2+36, 3+36, 1+38+18, 2+38+18, 3+38+18, -1,-1,-1,-1,-1,-1);
260TPC->SetSens(1);
261}
262
263if(iTOF) {
264//=================== TOF parameters ============================
265AliTOF *TOF = new AliTOFv2("TOF","normal TOF");
266}
267
268if(iRICH) {
269//=================== RICH parameters ===========================
270
271 AliRICH *RICH = new AliRICHv0("RICH","normal RICH");
272
273 RICH->SetSMAXAR(0.03);
274 RICH->SetSMAXAL(-1);
275//
276// Version 0
277// Default Segmentation
278 AliRICHsegmentationV0* RsegV0 = new AliRICHsegmentationV0;
279 RsegV0->SetPADSIZ(.8, .8);
280 RsegV0->SetDAnod(0.8/3);
281// Default response
282 AliRICHresponseV0* Rresponse0 = new AliRICHresponseV0;
283 AliRICHresponseCkv* RresponseCkv = new AliRICHresponseCkv;
284
285//------------------------Chambers 0-6 ----------------------------
286 for (Int_t i=0; i<7; i++) {
287 RICH->SetSegmentationModel(i, 1, RsegV0);
288 RICH->SetResponseModel(i, mip , Rresponse0);
289 RICH->SetResponseModel(i, cerenkov, RresponseCkv);
290 RICH->Chamber(i).SetRSIGM(5.);
291 RICH->Chamber(i).SetMUCHSP(43.);
292 RICH->Chamber(i).SetMUSIGM(0.18, 0.18);
293 RICH->Chamber(i).SetMAXADC( 1024);
294 RICH->Chamber(i).SetSqrtKx3(0.77459667);
295 RICH->Chamber(i).SetKx2(0.962);
296 RICH->Chamber(i).SetKx4(0.379);
297 RICH->Chamber(i).SetSqrtKy3(0.77459667);
298 RICH->Chamber(i).SetKy2(0.962);
299 RICH->Chamber(i).SetKy4(0.379);
300 RICH->Chamber(i).SetPitch(0.25);
301 RICH->SetNsec(i,1);
302 }
303}
304
305if(iZDC) {
306//=================== ZDC parameters ============================
307
308AliZDC *ZDC = new AliZDCv1("ZDC","normal ZDC");
309}
310
311if(iCASTOR) {
312//=================== CASTOR parameters ============================
313
314AliCASTOR *CASTOR = new AliCASTORv1("CASTOR","normal CASTOR");
315}
316
317if(iTRD) {
318//=================== TRD parameters ============================
319
320AliTRD *TRD = new AliTRDv0("TRD","TRD version 0");
321// Select the gas mixture (0: 97% Xe + 3% isobutane, 1: 90% Xe + 10% CO2)
322TRD->SetGasMix(0);
323TRD->SetHits(1);
324}
325
326if(iFMD) {
327//=================== FMD parameters ============================
328
329AliFMD *FMD = new AliFMDv1("FMD","normal FMD");
330}
331
332if(iMUON) {
333//=================== MUON parameters ===========================
334
335AliMUON *MUON = new AliMUONv0("MUON","normal MUON");
336
337 MUON->SetMaxStepGas(0.1);
338 MUON->SetMaxStepAlu(0.1);
339//
340// Version 0
341//
342// First define the number of planes that are segmented (1 or 2) by a call
343// to SetNsec.
344// Then chose for each chamber (chamber plane) the segmentation
345// and response model.
346// They should be equal for the two chambers of each station. In a future
347// version this will be enforced.
348//
349//
350 Int_t chamber;
351 Int_t station;
352// Default response
353 AliMUONresponseV0* response0 = new AliMUONresponseV0;
354 response0->SetSqrtKx3(0.7131);
355 response0->SetKx2(1.0107);
356 response0->SetKx4(0.4036);
357 response0->SetSqrtKy3(0.7642);
358 response0->SetKy2(0.9706);
359 response0->SetKy4(0.3831);
360 response0->SetPitch(0.25);
361 response0->SetSigmaIntegration(10.);
362 response0->SetChargeSlope(50);
363 response0->SetChargeSpread(0.18, 0.18);
364 response0->SetMaxAdc(4096);
365//--------------------------------------------------------
366// Configuration for Chamber TC1/2 (Station 1) ----------
367//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
368// Float_t rseg1[4]={17.5, 55.2, 71.3, 95.5};
369 Float_t rseg1[4]={15.5, 55.2, 71.3, 95.5};
370 Int_t nseg1[4]={4, 4, 2, 1};
371//
372 chamber=1;
373//^^^^^^^^^
374 MUON->SetNsec(chamber-1,2);
375//
376 AliMUONsegmentationV01 *seg11=new AliMUONsegmentationV01;
377
378 seg11->SetSegRadii(rseg1);
379 seg11->SetPADSIZ(3, 0.5);
380 seg11->SetDAnod(3.0/3./4);
381 seg11->SetPadDivision(nseg1);
382
383 MUON->SetSegmentationModel(chamber-1, 1, seg11);
384//
385 AliMUONsegmentationV02 *seg12=new AliMUONsegmentationV02;
386 seg12->SetSegRadii(rseg1);
387 seg12->SetPADSIZ(0.75, 2.0);
388 seg12->SetDAnod(3.0/3./4);
389 seg12->SetPadDivision(nseg1);
390
391 MUON->SetSegmentationModel(chamber-1, 2, seg12);
392
393 MUON->SetResponseModel(chamber-1, response0);
394
395 chamber=2;
396//^^^^^^^^^
397//
398 MUON->SetNsec(chamber-1,2);
399//
400 AliMUONsegmentationV01 *seg21=new AliMUONsegmentationV01;
401 seg21->SetSegRadii(rseg1);
402 seg21->SetPADSIZ(3, 0.5);
403 seg21->SetDAnod(3.0/3./4);
404 seg21->SetPadDivision(nseg1);
405 MUON->SetSegmentationModel(chamber-1, 1, seg21);
406//
407 AliMUONsegmentationV02 *seg22=new AliMUONsegmentationV02;
408 seg22->SetSegRadii(rseg1);
409 seg22->SetPADSIZ(0.75, 2.);
410 seg22->SetDAnod(3.0/3./4);
411 seg22->SetPadDivision(nseg1);
412 MUON->SetSegmentationModel(chamber-1, 2, seg22);
413
414 MUON->SetResponseModel(chamber-1, response0);
415//
416//--------------------------------------------------------
417// Configuration for Chamber TC3/4 -----------------------
418//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
419// Float_t rseg2[4]={23.5, 47.1, 87.7, 122.5};
420 Float_t rseg2[4]={21.5, 47.1, 87.7, 122.5};
421 Int_t nseg2[4]={4, 4, 2, 1};
422//
423 chamber=3;
424//^^^^^^^^^
425 MUON->SetNsec(chamber-1,2);
426//
427 AliMUONsegmentationV01 *seg31=new AliMUONsegmentationV01;
428 seg31->SetSegRadii(rseg2);
429 seg31->SetPADSIZ(3, 0.5);
430 seg31->SetDAnod(3.0/3./4);
431 seg31->SetPadDivision(nseg2);
432 MUON->SetSegmentationModel(chamber-1, 1, seg31);
433//
434 AliMUONsegmentationV02 *seg32=new AliMUONsegmentationV02;
435 seg32->SetSegRadii(rseg2);
436 seg32->SetPADSIZ(0.75, 2.);
437 seg32->SetPadDivision(nseg2);
438 seg32->SetDAnod(3.0/3./4);
439
440 MUON->SetSegmentationModel(chamber-1, 2, seg32);
441
442 MUON->SetResponseModel(chamber-1, response0);
443
444 chamber=4;
445//^^^^^^^^^
446//
447 MUON->SetNsec(chamber-1,2);
448//
449 AliMUONsegmentationV01 *seg41=new AliMUONsegmentationV01;
450 seg41->SetSegRadii(rseg2);
451 seg41->SetPADSIZ(3, 0.5);
452 seg41->SetDAnod(3.0/3./4);
453 seg41->SetPadDivision(nseg2);
454 MUON->SetSegmentationModel(chamber-1, 1, seg41);
455//
456 AliMUONsegmentationV02 *seg42=new AliMUONsegmentationV02;
457 seg42->SetSegRadii(rseg2);
458 seg42->SetPADSIZ(0.75, 2.);
459 seg42->SetPadDivision(nseg2);
460 seg42->SetDAnod(3.0/3./4);
461
462 MUON->SetSegmentationModel(chamber-1, 2, seg42);
463
464 MUON->SetResponseModel(chamber-1, response0);
465
466
467//--------------------------------------------------------
468// Configuration for Chamber TC5/6 -----------------------
469//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
470/*
471 seg5 = new AliMUONsegmentationV1;
472 AliMUONresponseV0* response5 = new AliMUONresponseV0;
473 // K3 = 0.62
474 response5->SetSqrtKx3(0.78740079);
475 response5->SetKx2(0.95237319); // 0.5 * kPI * (1- 0.5*sqrtky3 )
476 response5->SetKx4(0.37480633); // 0.25/TMath::ATan(sqrtkx3)
477 // K3 = 0.55
478 response5->SetSqrtKy3(0.74161985);
479 response5->SetKy2(0.98832946);
480 response5->SetKy4(0.39177817);
481 response5->SetPitch(0.325);
482 response5->SetSigmaIntegration(10.);
483 response5->SetChargeSlope(50);
484 response5->SetChargeSpread(0.4, 0.4);
485 response5->SetMaxAdc(4096);
486
487 chamber=5;
488 MUON->SetNsec(chamber-1,1);
489 MUON->SetSegmentationModel(chamber-1, 1, seg5);
490 MUON->SetResponseModel(chamber-1, response5);
491
492 chamber=6;
493 MUON->SetNsec(chamber-1,1);
494 MUON->SetSegmentationModel(chamber-1, 1, seg5);
495 MUON->SetResponseModel(chamber-1, response5);
496//
497// Station 3
498 station=3;
499 MUON->SetPADSIZ(station, 1, 0.975, 0.55);
500*/
501
502 chamber=5;
503//^^^^^^^^^
504 MUON->SetNsec(chamber-1,2);
505//
506 AliMUONsegmentationV0 *seg51=new AliMUONsegmentationV0;
507 seg51->SetPADSIZ(0.75, 0.5);
508 seg51->SetDAnod(3.0/3./4);
509 MUON->SetSegmentationModel(chamber-1, 1, seg51);
510//
511 AliMUONsegmentationV0 *seg52=new AliMUONsegmentationV0;
512 seg52->SetPADSIZ(0.5,0.75);
513 seg52->SetDAnod(3.0/3./4);
514 MUON->SetSegmentationModel(chamber-1, 2, seg52);
515
516 MUON->SetResponseModel(chamber-1, response0);
517
518 chamber=6;
519//^^^^^^^^^
520 MUON->SetNsec(chamber-1,2);
521//
522 AliMUONsegmentationV0 *seg61=new AliMUONsegmentationV0;
523 seg61->SetPADSIZ(0.75, 0.5);
524 seg61->SetDAnod(3.0/3./4);
525 MUON->SetSegmentationModel(chamber-1, 1, seg61);
526//
527 AliMUONsegmentationV0 *seg62=new AliMUONsegmentationV0;
528 seg62->SetPADSIZ(0.5,0.75);
529 seg62->SetDAnod(3.0/3./4);
530 MUON->SetSegmentationModel(chamber-1, 2, seg62);
531
532 MUON->SetResponseModel(chamber-1, response0);
533
534//--------------------------------------------------------
535// Configuration for Chamber TC7/8 (Station 4) ----------
536//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
537
538 Int_t nseg4[4]={4, 4, 2, 1};
539
540 chamber=7;
541//^^^^^^^^^
542 MUON->SetNsec(chamber-1,2);
543//
544 AliMUONsegmentationV04 *seg71=new AliMUONsegmentationV04;
545 seg71->SetPADSIZ(10.,0.5);
546 seg71->SetDAnod(0.25);
547 seg71->SetPadDivision(nseg4);
548 MUON->SetSegmentationModel(chamber-1, 1, seg71);
549
550 AliMUONsegmentationV05 *seg72=new AliMUONsegmentationV05;
551 seg72->SetPADSIZ(1,10);
552 seg72->SetDAnod(0.25);
553 seg72->SetPadDivision(nseg4);
554 MUON->SetSegmentationModel(chamber-1, 2, seg72);
555
556 MUON->SetResponseModel(chamber-1, response0);
557
558 chamber=8;
559//^^^^^^^^^
560 MUON->SetNsec(chamber-1,2);
561 AliMUONsegmentationV04 *seg81=new AliMUONsegmentationV04;
562 seg81->SetPADSIZ(10., 0.5);
563 seg81->SetPadDivision(nseg4);
564 seg81->SetDAnod(0.25);
565 MUON->SetSegmentationModel(chamber-1, 1, seg81);
566
567 AliMUONsegmentationV05 *seg82=new AliMUONsegmentationV05;
568 seg82->SetPADSIZ(1, 10);
569 seg82->SetPadDivision(nseg4);
570 seg82->SetDAnod(0.25);
571 MUON->SetSegmentationModel(chamber-1, 2, seg82);
572
573 MUON->SetResponseModel(chamber-1, response0);
574//--------------------------------------------------------
575// Configuration for Chamber TC9/10 (Station 5) ---------
576//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
577 chamber=9;
578//^^^^^^^^^
579 MUON->SetNsec(chamber-1,2);
580//
581 AliMUONsegmentationV04 *seg91=new AliMUONsegmentationV04;
582 seg91->SetPADSIZ(10.,0.5);
583 seg91->SetDAnod(0.25);
584 seg91->SetPadDivision(nseg4);
585 MUON->SetSegmentationModel(chamber-1, 1, seg91);
586
587 AliMUONsegmentationV05 *seg92=new AliMUONsegmentationV05;
588 seg92->SetPADSIZ(1,10);
589 seg92->SetDAnod(0.25);
590 seg92->SetPadDivision(nseg4);
591
592 MUON->SetSegmentationModel(chamber-1, 2, seg92);
593
594 MUON->SetResponseModel(chamber-1, response0);
595
596 chamber=10;
597//^^^^^^^^^
598 MUON->SetNsec(chamber-1,2);
599 AliMUONsegmentationV04 *seg101=new AliMUONsegmentationV04;
600 seg101->SetPADSIZ(10., 0.5);
601 seg101->SetPadDivision(nseg4);
602 seg101->SetDAnod(0.25);
603 MUON->SetSegmentationModel(chamber-1, 1, seg101);
604
605 AliMUONsegmentationV05 *seg102=new AliMUONsegmentationV05;
606 seg102->SetPADSIZ(1,10);
607 seg102->SetPadDivision(nseg4);
608 seg102->SetDAnod(0.25);
609 MUON->SetSegmentationModel(chamber-1, 2, seg102);
610
611 MUON->SetResponseModel(chamber-1, response0);
612//--------------------------------------------------------
613// Configuration for Trigger staions ---------------------
614// (not yet used/implemented) ----------------------------
615//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
616
617 chamber=11;
618 MUON->SetNsec(chamber-1,1);
619 AliMUONsegmentationV0 *seg1112=new AliMUONsegmentationV0;
620 seg1112->SetDAnod(0.51/3.);
621
622 MUON->SetSegmentationModel(chamber-1, 1, seg1112);
623 MUON->SetResponseModel(chamber-1, response0);
624
625 chamber=12;
626 MUON->SetNsec(chamber-1,1);
627 MUON->SetSegmentationModel(chamber-1, 1, seg1112);
628 MUON->SetResponseModel(chamber-1, response0);
629//
630// Trigger Station 1
631 station=6;
632 MUON->SetPADSIZ(station, 1, 0.75, 0.5);
633
634 chamber=13;
635 MUON->SetNsec(chamber-1,1);
636 AliMUONsegmentationV0 *seg1314=new AliMUONsegmentationV0;
637 seg1314->SetDAnod(0.51/3.);
638
639 MUON->SetSegmentationModel(chamber-1, 1, seg1314);
640 MUON->SetResponseModel(chamber-1, response0);
641
642 chamber=14;
643 MUON->SetNsec(chamber-1,1);
644 MUON->SetSegmentationModel(chamber-1, 1, seg1314);
645 MUON->SetResponseModel(chamber-1, response0);
646//
647// Trigger Station 2
648 station=7;
649 MUON->SetPADSIZ(station, 1, 0.75, 0.5);
650}
651
652//=================== PHOS parameters ===========================
653
654if(iPHOS) {
655AliPHOSv2 *PHOS = new AliPHOSv2("PHOS","Version PHOS");
656// * PHOSflags: YES: X<>0 NO: X=0
657// * PHOSflags(1) : -----X Create branch for TObjArray of AliPHOSCradle
658// * ----X- Create file (ftn03 on HP-UX) with list of SHAKER particles (7Mb/event)
659// *
660//PHOS->SetFlags(000001);
661//PHOS->SetRadius(460); //Distance from beam to PHOS crystals.
662// (crystal_side_size,crystal_length,wrap_thikness,air_thikness,PIN_size,PIN length)
663//PHOS->SetCell(2.2, 18., 0.01, 0.01, 1., 0.1);
664//PHOS->SetCradleSize(48, 90, 4); // Nz (along beam), Nphi, Ncradles
665//PHOS->SetCradleA(0); //Angle between Cradles
666// * ===============
667// * PHOS extra parameters (contact Maxim Volkov volkov@mail.cern.ch)
668// * 1. STE_THICK Steel cover thickness
669// * 2. SUP_Y Crystal support height
670// * 3. FTIU_THICK Thermo Insulating outer cover Upper plate thickness
671// * 4. UFP_Y Upper Polystyrene Foam plate thickness
672// * 5. TCB_THICK Thermo insulating Crystal Block wall thickness
673// * 6. UCP_Y Upper Cooling Plate thickness
674// * 7. ASP_Y Al Support Plate thickness
675// * 8. TIP_Y Lower Thermo Insulating Plate thickness
676// * 9. TXP_Y Lower Textolit Plate thickness
677//PHOS->SetExtra(0.001, 6.95, 4., 5., 2., 0.06, 10., 3., 1.);
678//PHOS->SetTextolitWall(209., 71., 250.); //Textolit Wall box dimentions
679//PHOS->SetInnerAir(206., 66., 244.); //Inner AIR volume dimensions
680// * ===============================
681// * 1. FTI_X Foam Thermo Insulating outer cover dimensions
682// * 2. FTI_Y ==//==
683// * 3. FTI_Z ==//==
684// * 4. FTI_R Distance from IP to Foam Thermo Insulating top plate
685//PHOS->SetFoam(214.6, 80., 260., 467.);
686// =================================
687// *******************************************************************************
688// * KINE 700 - SHAKER generator
689// * KINE 700 x y z NDNDY YLIM PTLIM ChargeFlag
690// * JWEAK=0
691// * JPI0=JETA=1
692// * JPIC=JPRO=JKAC=JKA0=JRHO=JOME=JPHI=JPSI=JDRY=ChargeFlag
693// * Int_t JWEI; // Unweighted generation
694// * Int_t NDNDY; // Density of charged particles
695// * Float_t YLIM; // Rapidity Limit
696// * Float_t PTLIM; // Pt limit in GeV/c
697// * Int_t JWEAK; // Disable weak decays
698// * Int_t JPI0; // pi0 generation
699// * Int_t JETA; // eta generation
700// * Int_t JPIC; // pi+/- generation
701// * Int_t JPRO; // proton generation
702// * Int_t JKAC; // K+/- generation
703// * Int_t JKA0; // K0 generation
704// * Int_t JRHO; // rho generation
705// * Int_t JOME; // omega generation
706// * Int_t JPHI; // phi generation
707// * Int_t JPSI; // J/psi generation
708// * Int_t JDRY; // Drell-Yan generation
709// * KINE 700 5. 175. 0. 800. 1.5 5. 1.
710// *******************************************************************************
711}
712
358ee668 713if(iPMD) {
714//=================== PMD parameters ============================
715
716AliPMD *PMD = new AliPMDv0("PMD","normal PMD");
717PMD->SetPAR(1., 1., 0.8, 0.02);
718PMD->SetIN(6., 18., -580., 27., 27.);
719PMD->SetGEO(0.0, 0.2, 4.);
720PMD->SetPadSize(0.8, 1.0, 1.0, 1.5);
721
722}
723
724if(iSTART) {
725//=================== START parameters ============================
726AliSTART *START = new AliSTARTv0("START","START Detector");
727}
728
729
730}