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