Use SetRandom() to initialize random number generator in constructor.
[u/mrichter/AliRoot.git] / MUON / Config_slat.C
CommitLineData
f5e13b7c 1enum gentype_t {hijing, gun, box, pythia, param, cocktail, fluka, halo, ntuple, scan, doublescan, hijing_g};
2
3gentype_t gentype=scan;
4// Int_t ntracks=6407;
5// Int_t ntracks=12000;
6// Int_t ntracks=28380;
7// Int_t ntracks=19900;
8Int_t ntracks=1;
9
10void Config()
11
12{
13new AliGeant3("C++ Interface to Geant3");
14
15//=======================================================================
16// Create the output file
17
3c084d9f 18 TFile *rootfile = new TFile("galice.root","recreate");
19 rootfile->SetCompressionLevel(2);
20 TGeant3 *geant3 = (TGeant3*)gMC;
21 AliDecayer* decayer = new AliDecayerPythia();
22 decayer->SetForceDecay(all);
23 decayer->Init();
24 gMC->SetExternalDecayer(decayer);
25
f5e13b7c 26//=======================================================================
27// ******* GEANT STEERING parameters FOR ALICE SIMULATION *******
28 geant3->fGctrak->maxnst=1000000;
29 geant3->fGcflag->nrndm[0]=10;
30 geant3->fGcflag->nrndm[1]=11;
31geant3->SetTRIG(1); //Number of events to be processed
32geant3->SetSWIT(4,100);
33geant3->SetDEBU(0,0,1);
34geant3->SetDCAY(1);
35geant3->SetPAIR(1);
36geant3->SetCOMP(1);
37geant3->SetPHOT(1);
38geant3->SetPFIS(0);
39geant3->SetDRAY(0);
40geant3->SetANNI(1);
41geant3->SetBREM(1);
42geant3->SetMUNU(1);
43geant3->SetCKOV(0);
44geant3->SetHADR(4); //Select pure GEANH (HADR 1) or GEANH/NUCRIN (HADR 3)
45geant3->SetLOSS(1);
46geant3->SetMULS(1);
47geant3->SetRAYL(0);
48geant3->SetAUTO(1); //Select automatic STMIN etc... calc. (AUTO 1) or manual (AUTO 0)
49geant3->SetABAN(1); //Restore 3.16 behaviour for abandoned tracks
50geant3->SetOPTI(2); //Select optimisation level for GEANT geometry searches (0,1,2)
51Float_t cut = 1.e-4; // 100MeV cut by default
52Float_t tofmax = 1.e10;
53// GAM ELEC NHAD CHAD MUON EBREM MUHAB EDEL MUDEL MUPA TOFMAX
54geant3->SetCUTS(1.e-4, 1.e-4, 1.e-3, 1.e-4, 1.e-3, cut, cut, cut, cut, cut, 1.e-5);
55
3c084d9f 56 gAlice->TrackingLimits( 700, 2000);
f5e13b7c 57
58//
59//=======================================================================
60// ************* STEERING parameters FOR ALICE SIMULATION **************
61// --- Specify event type to be tracked through the ALICE setup
62// --- All positions are in cm, angles in degrees, and P and E in GeV
63
64 switch(gentype)
65 {
66 case gun:
67//*********************************************
68// Example for Fixed Particle Gun *
69//*********************************************
70 AliGenFixed *gener = new AliGenFixed(ntracks);
71 gener->SetMomentum(10);
72 gener->SetPhiRange(0);
73 gener->SetThetaRange(0.);
74 gener->SetOrigin(30,30,1200); //vertex position
75 gener->SetPart(kProton); //GEANT particle type
76 break;
77 case box:
78//*********************************************
79// Example for Moving Particle Gun *
80//*********************************************
81 AliGenBox *gener = new AliGenBox(ntracks);
3c084d9f 82 gener->SetMomentumRange(33,34);
83 gener->SetPhiRange(-180,180);
84 gener->SetThetaRange(2., 9.);
85 gener->SetOrigin(0,0,0);
f5e13b7c 86 gener->SetVertexSmear(kPerTrack);
87 //vertex position
3c084d9f 88 gener->SetSigma(0, 0, 0); // Sigma in (X,Y,Z) (cm) on IP position
89 gener->SetPart(kMuonPlus); // GEANT particle type
f5e13b7c 90 break;
91 case scan:
92//*********************************************
93// Scanning on a grid *
94//*********************************************
95 AliGenScan *gener = new AliGenScan(-1);
96 gener->SetMomentumRange(20,20);
97 gener->SetPhiRange(90,90);
98 gener->SetThetaRange(0,0);
99 //vertex position
100 gener->SetSigma(1,1,0); //Sigma in (X,Y,Z) (cm) on IP position
101 gener->SetPart(kMuonMinus);
3c084d9f 102 gener->SetRange(60, -300, 300, 60, -300., 300., 1, 1200, 1200);
f5e13b7c 103 break;
104 case doublescan:
105//*********************************************
106// Scanning on a grid *
107//*********************************************
108 AliGenDoubleScan *gener = new AliGenDoubleScan(-1);
109 gener->SetMomentumRange(4,4);
110 gener->SetPhiRange(0,360);
111 gener->SetThetaRange(0,0);
112 //vertex position
113 gener->SetSigma(3,3,0); //Sigma in (X,Y,Z) (cm) on IP position
114 gener->SetPart(8);
115 gener->SetRange(20, -100, 100, 20, -100, 100, 1, 500, 500);
116 gener->SetDistance(1);
117 break;
118
119 case hijing:
120 AliGenHIJINGpara *gener = new AliGenHIJINGpara(ntracks);
121 gener->SetMomentumRange(0,999);
122 gener->SetPtRange(0,999);
123 gener->SetPhiRange(0,360);
124// gener->SetThetaRange(0.104,33.52);
125 gener->SetThetaRange(0.104,90.0);
126// gener->SetThetaRange(2.,9.);
127 gener->SetOrigin(0., 0.0 ,0); // vertex position
128 gener->SetSigma(0,0,5.3); // Sigma in (X,Y,Z) (cm) on IP position
129 gener->SetVertexSmear(kPerTrack);
130 gener->SetTrackingFlag(0);
131 break;
132 case hijing_g:
133 AliGenHijing *gener = new AliGenHijing(-1);
134
135 gener->SetEnergyCMS(5600.);
136 gener->SetReferenceFrame("CMS");
137 gener->SetProjectile("A", 208, 82);
138 gener->SetTarget ("A", 208, 82);
139 gener->SetImpactParameterRange(0, 5.);
140 gener->SetEvaluate(0);
141 gener->KeepFullEvent();
142 gener->SetJetQuenching(1);
143 gener->SetShadowing(1);
144 gener->SetDecaysOff(1);
145 gener->SetTrigger(0);
146 gener->SetSelectAll(1);
147 gener->SetMomentumRange(0,9999);
148 gener->SetPhiRange(-180,180);
149 gener->SetThetaRange(0.104,90.0);
150// gener->SetFlavor(4);
151
152
153 gener->SetOrigin(0., 0.0 ,0);
154 gener->SetSigma(0,0,5.3);
155 gener->SetVertexSmear(kPerEvent);
156 gener->SetTrackingFlag(0);
157
158 break;
159
160 case pythia:
161//********************************************
162// Example for Charm Production with Pythia *
163//********************************************
164AliGenPythia *gener = new AliGenPythia(ntracks);
165 gener->SetMomentumRange(0,999);
166 gener->SetPhiRange(0,360);
167 gener->SetThetaRange(0., 180.);
168 gener->SetYRange(-10,10);
169 gener->SetPtRange(0,100);
170 //gener->SetOrigin(0,0,0); // vertex position
171 //gener->SetVertexSmear(kPerEvent);
172 //gener->SetSigma(0,0,5.6); // Sigma in (X,Y,Z) (cm) on IP
173position
174 gener->SetStrucFunc(DO_Set_1);
175 gener->SetProcess(charm);
176 gener->SetEnergyCMS(5500.);
177 break;
178/*
179 AliGenPythia *gener = new AliGenPythia(ntracks);
180 gener->SetMomentumRange(0,999);
181 gener->SetPhiRange(0,360);
182 gener->SetThetaRange(0., 180.);
183 gener->SetYRange(-10,10);
184 gener->SetPtRange(0,100);
185 gener->SetOrigin(0,0,0); // vertex position
186 gener->SetVertexSmear(kPerEvent);
187 gener->SetSigma(0,0,5.6); // Sigma in (X,Y,Z) (cm) on IP position
188 gener->SetStrucFunc(DO_Set_1);
189 gener->SetProcess(charm);
190 gener->SetForceDecay(dimuon);
191 gener->SetEnergyCMS(5500.);
192 gener->SetTrackingFlag(0);
193
194 break;
195 */
196 case param:
197//*******************************************************
198// Example for J/psi Production from Parameterisation *
199//*******************************************************
3c084d9f 200 AliGenParam *gener = new AliGenParam(ntracks,upsilon_p);
f5e13b7c 201 gener->SetMomentumRange(0,999);
202 gener->SetPhiRange(-180, 180);
203 gener->SetYRange(2.5,4);
204 gener->SetCutOnChild(1);
205 gener->SetChildThetaRange(2,9);
206 gener->SetOrigin(0,0,0); //vertex position
207 gener->SetSigma(0,0,0); //Sigma in (X,Y,Z) (cm) on IP position
208 gener->SetForceDecay(dimuon);
3c084d9f 209 gener->SetTrackingFlag(1);
f5e13b7c 210
211 break;
212
213 case fluka:
214//*******************************************************
215// Example for a FLUKA Boundary Source *
216//*******************************************************
217 AliGenFLUKAsource *gener = new AliGenFLUKAsource(-1);
218 gener->AddFile("$(ALICE_ROOT)/data/alice.root");
219 rootfile->cd();
220 gener->SetPartFlag(7);
221 gener->SetMomentumRange(0,999);
222 gener->SetPhiRange(0,360);
223 gener->SetThetaRange(0., 180.);
224 gener->SetAgeMax(1.e-5);
225
226// 31.7 events
227 gener->SetFraction(1.);
228 break;
229
230 case ntuple:
231//*******************************************************
232// Example for reading from a external file *
233//*******************************************************
234 AliGenExtFileCH *gener = new AliGenExtFileCH(-1);
235 gener->SetFileName("$(ALICE_ROOT)/data/pbpb.root");
236 gener->SetThetaRange(0.104,90.);
237 gener->SetOrigin(0,0,0); //vertex position
238 gener->SetSigma(0,0,5.6); //Sigma in (X,Y,Z) (cm) on IP position
239 gener->SetVertexSmear(kPerTrack);
240 gener->SetTrackingFlag(1);
241 break;
242
243 case halo:
244//*******************************************************
245// Example for Tunnel Halo Source *
246//*******************************************************
247 AliGenHalo *gener = new AliGenHalo(ntracks);
248 gener->SetFileName("/h1/morsch/marsip/marsip5.mu");
249 break;
250
251 case cocktail:
252//*******************************************************
253// Example for a Cocktail *
254//*******************************************************
255 AliGenCocktail *gener = new AliGenCocktail();
256 gener->SetMomentumRange(0,10);
257 gener->SetPhiRange(0,360);
258 gener->SetThetaRange(2.,9.);
259 gener->SetTrackingFlag(0);
260 AliGenParam *Pi0 = new AliGenParam(100, new AliGenPMDlib(), Pion);
261 AliGenParam *Eta = new AliGenParam( 10, new AliGenPMDlib(), Eta);
262 gener->AddGenerator(Pi0, "neutral pions" , 1.);
263 gener->AddGenerator(Eta, "neutral etas" , 1.);
264 break;
265 }
266
267
268gener->Init();
3c084d9f 269gAlice->SetField(2,1); //Specify maximum magnetic field in Tesla (neg. ==> default field)
f5e13b7c 270
271Int_t iFRAME =0;
272Int_t iMAG =0;
273Int_t iITS =0;
274Int_t iABSO =0;
275Int_t iDIPO =0;
276Int_t iHALL =0;
277Int_t iSHIL =0;
278Int_t iPIPE =0;
279Int_t iFMD =0;
280Int_t iMUON =1;
281
282//=================== Alice BODY parameters =============================
283AliBODY *BODY = new AliBODY("BODY","Alice envelop");
284
285if(iFRAME) {
286//=================== FRAME parameters ============================
287AliFRAME *FRAME = new AliFRAMEv0("FRAME","Space Frame");
288}
289
290if(iMAG) {
291//=================== MAG parameters ============================
292// --- Start with Magnet since detector layouts may be depending ---
293// --- on the selected Magnet dimensions ---
294AliMAG *MAG = new AliMAG("MAG","Magnet");
295}
296
297if(iABSO) {
298//=================== ABSO parameters ============================
299 AliABSO *ABSO = new AliABSOv0("ABSO","Muon Absorber");
300}
301
302if(iDIPO) {
303//=================== DIPO parameters ============================
304
305 AliDIPO *DIPO = new AliDIPOv2("DIPO","Dipole version 2");
306}
307
308if(iHALL) {
309//=================== HALL parameters ============================
310 AliHALL *HALL = new AliHALL("HALL","Alice Hall");
311}
312
313
314
315if(iSHIL) {
316//=================== SHIL parameters ============================
317// AliSHIL *SHIL = new AliSAROV("SHIL","Shielding");
318 AliSHILv0 *SHIL = new AliSHILv0("SHIL","Shielding");
319 SHIL->SetPbCone(1);
320// AliSAROV *SHIL = new AliSAROV("SHIL","Shielding");
321}
322
323
324if(iPIPE) {
325//=================== PIPE parameters ============================
326 AliPIPE *PIPE = new AliPIPEv0("PIPE","Beam Pipe");
327}
328
329
330if(iFMD) {
331//=================== FMD parameters ============================
332 AliFMD *FMD = new AliFMDv1("FMD","normal FMD");
333}
334
335if(iMUON) {
336//=================== MUON parameters ===========================
337
338AliMUON *MUON = new AliMUONv1("MUON","normal MUON");
339 MUON->SetIshunt(1);
340 MUON->SetMaxStepGas(0.1);
341 MUON->SetMaxStepAlu(0.1);
342//
343// Version 0
344//
345// First define the number of planes that are segmented (1 or 2) by a call
346// to SetNsec.
347// Then chose for each chamber (chamber plane) the segmentation
348// and response model.
349// They should be equal for the two chambers of each station. In a future
350// version this will be enforced.
351//
352//
353 Int_t chamber;
354 Int_t station;
355// Default response
356 AliMUONResponseV0* response0 = new AliMUONResponseV0;
d5bfadcc 357 response0->SetSqrtKx3AndDeriveKx2Kx4(0.7131);
358 response0->SetSqrtKy3AndDeriveKy2Ky4(0.7642);
3c084d9f 359// response0->SetSqrtKx3(0.7131);
360// response0->SetKx2(1.0107);
361// response0->SetKx4(0.4036);
362// response0->SetSqrtKy3(0.7642);
363// response0->SetKy2(0.9706);
364// response0->SetKy4(0.3831);
f5e13b7c 365 response0->SetPitch(0.25);
366 response0->SetSigmaIntegration(10.);
367 response0->SetChargeSlope(50);
368 response0->SetChargeSpread(0.18, 0.18);
369 response0->SetMaxAdc(4096);
370 response0->SetZeroSuppression(6);
371//--------------------------------------------------------
372// Configuration for Chamber TC1/2 (Station 1) ----------
373//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
374 Float_t rseg1[4]={17.5, 55.2, 71.3, 95.5};
375 Int_t nseg1[4]={4, 4, 2, 1};
376//
377 chamber=1;
378//^^^^^^^^^
379 MUON->SetNsec(chamber-1,2);
380//
381 AliMUONSegmentationV01 *seg11=new AliMUONSegmentationV01;
382
383 seg11->SetSegRadii(rseg1);
384 seg11->SetPadSize(3, 0.5);
385 seg11->SetDAnod(3.0/3./4);
386 seg11->SetPadDivision(nseg1);
387
388 MUON->SetSegmentationModel(chamber-1, 1, seg11);
389//
390 AliMUONSegmentationV02 *seg12=new AliMUONSegmentationV02;
391 seg12->SetSegRadii(rseg1);
392 seg12->SetPadSize(0.75, 2.0);
393 seg12->SetDAnod(3.0/3./4);
394 seg12->SetPadDivision(nseg1);
395
396 MUON->SetSegmentationModel(chamber-1, 2, seg12);
397
398 MUON->SetResponseModel(chamber-1, response0);
399
400 chamber=2;
401//^^^^^^^^^
402//
403 MUON->SetNsec(chamber-1,2);
404//
405 AliMUONSegmentationV01 *seg21=new AliMUONSegmentationV01;
406 seg21->SetSegRadii(rseg1);
407 seg21->SetPadSize(3, 0.5);
408 seg21->SetDAnod(3.0/3./4);
409 seg21->SetPadDivision(nseg1);
410 MUON->SetSegmentationModel(chamber-1, 1, seg21);
411//
412 AliMUONSegmentationV02 *seg22=new AliMUONSegmentationV02;
413 seg22->SetSegRadii(rseg1);
414 seg22->SetPadSize(0.75, 2.);
415 seg22->SetDAnod(3.0/3./4);
416 seg22->SetPadDivision(nseg1);
417 MUON->SetSegmentationModel(chamber-1, 2, seg22);
418
419 MUON->SetResponseModel(chamber-1, response0);
420//
421//--------------------------------------------------------
de7e3024 422// Configuration for Chamber TC3/4 (Station 2) -----------
423///^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
f5e13b7c 424// Float_t rseg2[4]={23.5, 87.7, 122.4, 122.5};
425 Float_t rseg2[4]={23.5, 47.1, 87.7, 122.5};
426 Int_t nseg2[4]={4, 4, 2, 1};
427//
428 chamber=3;
429//^^^^^^^^^
430 MUON->SetNsec(chamber-1,2);
431//
432 AliMUONSegmentationV01 *seg31=new AliMUONSegmentationV01;
433 seg31->SetSegRadii(rseg2);
434 seg31->SetPadSize(6, 0.5);
435 seg31->SetDAnod(3.0/3./4);
436 seg31->SetPadDivision(nseg2);
437 MUON->SetSegmentationModel(chamber-1, 1, seg31);
438//
439 AliMUONSegmentationV02 *seg32=new AliMUONSegmentationV02;
440 seg32->SetSegRadii(rseg2);
441 seg32->SetPadSize(0.75, 4.);
442 seg32->SetPadDivision(nseg2);
443 seg32->SetDAnod(3.0/3./4);
444
445 MUON->SetSegmentationModel(chamber-1, 2, seg32);
446
447 MUON->SetResponseModel(chamber-1, response0);
448
449 chamber=4;
450//^^^^^^^^^
451//
452 MUON->SetNsec(chamber-1,2);
453//
454 AliMUONSegmentationV01 *seg41=new AliMUONSegmentationV01;
455 seg41->SetSegRadii(rseg2);
456 seg41->SetPadSize(6, 0.5);
457 seg41->SetDAnod(3.0/3./4);
458 seg41->SetPadDivision(nseg2);
459 MUON->SetSegmentationModel(chamber-1, 1, seg41);
460//
461 AliMUONSegmentationV02 *seg42=new AliMUONSegmentationV02;
462 seg42->SetSegRadii(rseg2);
463 seg42->SetPadSize(0.75, 4.);
464 seg42->SetPadDivision(nseg2);
465 seg42->SetDAnod(3.0/3./4);
466
467 MUON->SetSegmentationModel(chamber-1, 2, seg42);
468
469 MUON->SetResponseModel(chamber-1, response0);
470
471
472//--------------------------------------------------------
de7e3024 473// Configuration for Chamber TC5/6 (Station 3) ----------
f5e13b7c 474//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
f9f7c205 475 Int_t nseg3[4]={4, 4, 2, 1};
de7e3024 476/*
477 Int_t npcb5[32] = {0,0,2,0,
478 0,1,2,0,
f9f7c205 479 0,2,1,1,
480 0,2,1,0,
481 0,2,1,0,
482 0,2,1,1,
de7e3024 483 0,1,2,0,
484 0,0,2,0};
485 */
486 Int_t npcb5[32] = {0,0,1,1,
487 0,1,1,1,
488 0,2,1,1,
3c084d9f 489 0,2,1,1,
490 0,2,1,1,
de7e3024 491 0,2,1,1,
492 0,1,1,1,
493 0,0,1,1};
494
f9f7c205 495 Float_t shift = 1.5/2.;
3c084d9f 496 // Float_t xpos5[8] = {2., 2., 2., 42., 42., 2., 2., 2.};
497 Float_t xpos5[8] = {2., 2., 2., 2., 2., 2., 2., 2.};
f9f7c205 498 Float_t ypos5 = -(4.*(40.-2.*shift)+shift);
f5e13b7c 499
500 chamber=5;
f9f7c205 501 MUON->SetNsec(chamber-1,2);
502 AliMUONSegmentationSlat *seg51=new AliMUONSegmentationSlat;
503 seg51->SetNSlats(8);
504 seg51->SetShift(shift);
505 seg51->SetNPCBperSector(npcb5);
506 seg51->SetSlatXPositions(xpos5);
507 seg51->SetSlatYPosition(ypos5);
508 seg51->SetPadSize(10.,0.5);
509 seg51->SetDAnod(0.25);
510 seg51->SetPadDivision(nseg3);
511 MUON->SetSegmentationModel(chamber-1, 1, seg51);
512
513 AliMUONSegmentationSlatN *seg52=new AliMUONSegmentationSlatN;
514 seg52->SetNSlats(8);
515 seg52->SetShift(shift);
516 seg52->SetNPCBperSector(npcb5);
517 seg52->SetSlatXPositions(xpos5);
518 seg52->SetSlatYPosition(ypos5);
3f853d10 519 seg52->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f9f7c205 520 seg52->SetDAnod(0.25);
521 seg52->SetPadDivision(nseg3);
522 MUON->SetSegmentationModel(chamber-1, 2, seg52);
523 MUON->SetResponseModel(chamber-1, response0);
f5e13b7c 524
525 chamber=6;
f9f7c205 526 MUON->SetNsec(chamber-1,2);
527 AliMUONSegmentationSlat *seg61=new AliMUONSegmentationSlat;
528 seg61->SetNSlats(8);
529 seg61->SetShift(shift);
530 seg61->SetNPCBperSector(npcb5);
531 seg61->SetSlatXPositions(xpos5);
532 seg61->SetSlatYPosition(ypos5);
533 seg61->SetPadSize(10.,0.5);
534 seg61->SetDAnod(0.25);
535 seg61->SetPadDivision(nseg3);
536 MUON->SetSegmentationModel(chamber-1, 1, seg61);
537
538 AliMUONSegmentationSlatN *seg62=new AliMUONSegmentationSlatN;
539 seg62->SetNSlats(8);
540 seg62->SetShift(shift);
541 seg62->SetNPCBperSector(npcb5);
542 seg62->SetSlatXPositions(xpos5);
543 seg62->SetSlatYPosition(ypos5);
3f853d10 544 seg62->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f9f7c205 545 seg62->SetDAnod(0.25);
546 seg62->SetPadDivision(nseg3);
547 MUON->SetSegmentationModel(chamber-1, 2, seg62);
548 MUON->SetResponseModel(chamber-1, response0);
f5e13b7c 549
550//--------------------------------------------------------
551// Configuration for Chamber TC7/8 (Station 4) ----------
552//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
553
554 Int_t nseg4[4]={4, 4, 2, 1};
555
556 chamber=7;
557//^^^^^^^^^
558
559 MUON->SetNsec(chamber-1,2);
560//
561 AliMUONSegmentationSlat *seg71=new AliMUONSegmentationSlat;
f9f7c205 562 Int_t npcb7[44] = {0,0,0,2,
563 0,0,0,3,
564 0,0,2,2,
565 0,1,2,2,
566 0,2,1,2,
567 0,2,1,1,
568 0,2,1,2,
569 0,1,2,2,
570 0,0,2,2,
571 0,0,0,3,
572 0,0,0,2};
3c084d9f 573 Float_t xpos7[11] = {2., 2., 2., 2., 34.5, 39.5, 34.5, 2., 2., 2., 2.};
574 // Float_t xpos7[11] = {2., 2., 2., 2., 2., 39.5, 2., 2., 2., 2., 2.};
f9f7c205 575 Float_t ypos7 = -(20.+5.*(40.-2.*shift));
f5e13b7c 576
f9f7c205 577 seg71->SetNSlats(11);
f5e13b7c 578 seg71->SetShift(shift);
579 seg71->SetNPCBperSector(npcb7);
f9f7c205 580 seg71->SetSlatXPositions(xpos7);
581 seg71->SetSlatYPosition(ypos7);
582
f5e13b7c 583 seg71->SetPadSize(10.,0.5);
584 seg71->SetDAnod(0.25);
585 seg71->SetPadDivision(nseg4);
586 MUON->SetSegmentationModel(chamber-1, 1, seg71);
587
588 AliMUONSegmentationSlatN *seg72=new AliMUONSegmentationSlatN;
589
590 MUON->SetSegmentationModel(chamber-1, 2, seg72);
f9f7c205 591 seg72->SetNSlats(11);
592 seg72->SetShift(shift);
f5e13b7c 593 seg72->SetNPCBperSector(npcb7);
f9f7c205 594 seg72->SetSlatXPositions(xpos7);
595 seg72->SetSlatYPosition(ypos7);
3f853d10 596 seg72->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f5e13b7c 597 seg72->SetDAnod(0.25);
598 seg72->SetPadDivision(nseg4);
599
600 MUON->SetResponseModel(chamber-1, response0);
601
602 chamber=8;
603//^^^^^^^^^
604 MUON->SetNsec(chamber-1,2);
605//
606 AliMUONSegmentationSlat *seg81=new AliMUONSegmentationSlat;
607
f9f7c205 608 seg81->SetNSlats(11);
f5e13b7c 609 seg81->SetShift(shift);
610 seg81->SetNPCBperSector(npcb7);
f9f7c205 611 seg81->SetSlatXPositions(xpos7);
612 seg81->SetSlatYPosition(ypos7);
f5e13b7c 613 seg81->SetPadSize(10.,0.5);
614 seg81->SetDAnod(0.25);
615 seg81->SetPadDivision(nseg4);
616 MUON->SetSegmentationModel(chamber-1, 1, seg81);
617
618 AliMUONSegmentationSlat *seg82=new AliMUONSegmentationSlatN;
619
620 MUON->SetSegmentationModel(chamber-1, 2, seg82);
f9f7c205 621 seg82->SetNSlats(11);
f5e13b7c 622 seg82->SetShift(shift);
623 seg82->SetNPCBperSector(npcb7);
f9f7c205 624 seg82->SetSlatXPositions(xpos7);
625 seg82->SetSlatYPosition(ypos7);
3f853d10 626 seg82->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f5e13b7c 627 seg82->SetDAnod(0.25);
628 seg82->SetPadDivision(nseg4);
629
630 MUON->SetResponseModel(chamber-1, response0);
631
632
633//--------------------------------------------------------
634// Configuration for Chamber TC9/10 (Station 5) ---------
635//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
636 chamber=9;
637//^^^^^^^^^
f9f7c205 638
f5e13b7c 639 MUON->SetNsec(chamber-1,2);
640//
f9f7c205 641 AliMUONSegmentationSlat *seg91=new AliMUONSegmentationSlat;
642 Int_t npcb9[52] = {0,0,0,2,
643 0,0,0,4,
644 0,0,2,3,
645 0,0,3,3,
646 0,2,2,2,
647 0,3,2,2,
648 0,3,2,2,
649 0,3,2,2,
650 0,2,2,2,
651 0,0,3,3,
652 0,0,2,3,
653 0,0,0,4,
654 0,0,0,2 };
655
3c084d9f 656 // Float_t xpos9[13] = {2., 2., 2., 2., 2., 2., 39.5 , 2., 2., 2., 2., 2., 2.};
657 Float_t xpos9[13] = {2., 2., 2., 2., 2., 34.5, 39.5 , 34.5, 2., 2., 2., 2., 2.};
f9f7c205 658 Float_t ypos9 = -(20.+6.*(40.-2.*shift));
659
660 seg91->SetNSlats(13);
661 seg91->SetShift(shift);
662 seg91->SetNPCBperSector(npcb9);
663 seg91->SetSlatXPositions(xpos9);
664 seg91->SetSlatYPosition(ypos9);
f5e13b7c 665 seg91->SetPadSize(10.,0.5);
666 seg91->SetDAnod(0.25);
667 seg91->SetPadDivision(nseg4);
668 MUON->SetSegmentationModel(chamber-1, 1, seg91);
669
f9f7c205 670 AliMUONSegmentationSlatN *seg92=new AliMUONSegmentationSlatN;
f5e13b7c 671
672 MUON->SetSegmentationModel(chamber-1, 2, seg92);
f9f7c205 673 seg92->SetNSlats(13);
674 seg92->SetShift(shift);
675 seg92->SetNPCBperSector(npcb9);
676 seg92->SetSlatXPositions(xpos9);
677 seg92->SetSlatYPosition(ypos9);
3f853d10 678 seg92->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f9f7c205 679 seg92->SetDAnod(0.25);
680 seg92->SetPadDivision(nseg4);
f5e13b7c 681
682 MUON->SetResponseModel(chamber-1, response0);
683
684 chamber=10;
685//^^^^^^^^^
686 MUON->SetNsec(chamber-1,2);
f9f7c205 687//
688 AliMUONSegmentationSlat *seg101=new AliMUONSegmentationSlat;
689
690 seg101->SetNSlats(13);
691 seg101->SetShift(shift);
692 seg101->SetNPCBperSector(npcb9);
693 seg101->SetSlatXPositions(xpos9);
694 seg101->SetSlatYPosition(ypos9);
695 seg101->SetPadSize(10.,0.5);
f5e13b7c 696 seg101->SetDAnod(0.25);
f9f7c205 697 seg101->SetPadDivision(nseg4);
f5e13b7c 698 MUON->SetSegmentationModel(chamber-1, 1, seg101);
699
f9f7c205 700 AliMUONSegmentationSlatN *seg102=new AliMUONSegmentationSlatN;
701
f5e13b7c 702 MUON->SetSegmentationModel(chamber-1, 2, seg102);
f9f7c205 703 seg102->SetNSlats(13);
704 seg102->SetShift(shift);
705 seg102->SetNPCBperSector(npcb9);
706 seg102->SetSlatXPositions(xpos9);
707 seg102->SetSlatYPosition(ypos9);
3f853d10 708 seg102->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f9f7c205 709 seg102->SetDAnod(0.25);
710 seg102->SetPadDivision(nseg4);
f5e13b7c 711
712 MUON->SetResponseModel(chamber-1, response0);
713
714//--------------------------------------------------------
de7e3024 715// Configuration for Trigger Stations --------------------
f5e13b7c 716//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9e8ff550 717// Cluster-size off
f5e13b7c 718 AliMUONResponseTrigger* responseTrigger0 = new AliMUONResponseTrigger;
9e8ff550 719// Cluster-size on
720// AliMUONResponseTriggerV1* responseTrigger0 = new AliMUONResponseTriggerV1;
f5e13b7c 721
722 chamber=11;
723 MUON->SetNsec(chamber-1,2);
724 AliMUONSegmentationTriggerX *seg111=new AliMUONSegmentationTriggerX;
725 MUON->SetSegmentationModel(chamber-1, 1, seg111);
726 AliMUONSegmentationTriggerY *seg112=new AliMUONSegmentationTriggerY;
727 MUON->SetSegmentationModel(chamber-1, 2, seg112);
728
729 MUON->SetResponseModel(chamber-1, responseTrigger0);
730
731
732 chamber=12;
733 MUON->SetNsec(chamber-1,2);
734 AliMUONSegmentationTriggerX *seg121=new AliMUONSegmentationTriggerX;
735 MUON->SetSegmentationModel(chamber-1, 1, seg121);
736 AliMUONSegmentationTriggerY *seg122=new AliMUONSegmentationTriggerY;
737 MUON->SetSegmentationModel(chamber-1, 2, seg122);
738
739 MUON->SetResponseModel(chamber-1, responseTrigger0);
3c084d9f 740 chamber=13;
f5e13b7c 741 MUON->SetNsec(chamber-1,2);
742 AliMUONSegmentationTriggerX *seg131=new AliMUONSegmentationTriggerX;
743 MUON->SetSegmentationModel(chamber-1, 1, seg131);
744 AliMUONSegmentationTriggerY *seg132=new AliMUONSegmentationTriggerY;
745 MUON->SetSegmentationModel(chamber-1, 2, seg132);
746 MUON->SetResponseModel(chamber-1, responseTrigger0);
747
748 chamber=14;
749 MUON->SetNsec(chamber-1,2);
750 AliMUONSegmentationTriggerX *seg141=new AliMUONSegmentationTriggerX;
751 MUON->SetSegmentationModel(chamber-1, 1, seg141);
752 AliMUONSegmentationTriggerY *seg142=new AliMUONSegmentationTriggerY;
753 MUON->SetSegmentationModel(chamber-1, 2, seg142);
754
755 MUON->SetResponseModel(chamber-1, responseTrigger0);
756
757}
758
759}
760
761
762
763
764