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