Update to geometry defined for the Muon Spectrometer Addendum to the TDR.
[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);
a083207d 102 gener->SetRange(60, -300, 300, 60, -300., 300., 1, 900, 900);
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);
a083207d 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};
a083207d 476 Int_t npcb5[36] = {0,0,2,0,
477 0,0,3,0,
478 0,1,3,0,
479 0,2,2,0,
de7e3024 480 0,1,2,0,
a083207d 481 0,2,2,0,
482 0,1,3,0,
483 0,0,3,0,
484 0,0,2,0};
de7e3024 485
f9f7c205 486 Float_t shift = 1.5/2.;
3c084d9f 487 // Float_t xpos5[8] = {2., 2., 2., 42., 42., 2., 2., 2.};
a083207d 488 Float_t xpos5[9] = {2., 2., 2., 2.,32., 2., 2., 2., 2.};
489 Float_t ypos5 = -(20.+4.*(40.-2.*shift));
f5e13b7c 490
491 chamber=5;
f9f7c205 492 MUON->SetNsec(chamber-1,2);
493 AliMUONSegmentationSlat *seg51=new AliMUONSegmentationSlat;
a083207d 494 seg51->SetNSlats(9);
f9f7c205 495 seg51->SetShift(shift);
496 seg51->SetNPCBperSector(npcb5);
497 seg51->SetSlatXPositions(xpos5);
498 seg51->SetSlatYPosition(ypos5);
499 seg51->SetPadSize(10.,0.5);
500 seg51->SetDAnod(0.25);
501 seg51->SetPadDivision(nseg3);
502 MUON->SetSegmentationModel(chamber-1, 1, seg51);
503
504 AliMUONSegmentationSlatN *seg52=new AliMUONSegmentationSlatN;
a083207d 505 seg52->SetNSlats(9);
f9f7c205 506 seg52->SetShift(shift);
507 seg52->SetNPCBperSector(npcb5);
508 seg52->SetSlatXPositions(xpos5);
509 seg52->SetSlatYPosition(ypos5);
3f853d10 510 seg52->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f9f7c205 511 seg52->SetDAnod(0.25);
512 seg52->SetPadDivision(nseg3);
513 MUON->SetSegmentationModel(chamber-1, 2, seg52);
514 MUON->SetResponseModel(chamber-1, response0);
f5e13b7c 515
516 chamber=6;
f9f7c205 517 MUON->SetNsec(chamber-1,2);
518 AliMUONSegmentationSlat *seg61=new AliMUONSegmentationSlat;
a083207d 519 seg61->SetNSlats(9);
f9f7c205 520 seg61->SetShift(shift);
521 seg61->SetNPCBperSector(npcb5);
522 seg61->SetSlatXPositions(xpos5);
523 seg61->SetSlatYPosition(ypos5);
524 seg61->SetPadSize(10.,0.5);
525 seg61->SetDAnod(0.25);
526 seg61->SetPadDivision(nseg3);
527 MUON->SetSegmentationModel(chamber-1, 1, seg61);
528
529 AliMUONSegmentationSlatN *seg62=new AliMUONSegmentationSlatN;
a083207d 530 seg62->SetNSlats(9);
f9f7c205 531 seg62->SetShift(shift);
532 seg62->SetNPCBperSector(npcb5);
533 seg62->SetSlatXPositions(xpos5);
534 seg62->SetSlatYPosition(ypos5);
3f853d10 535 seg62->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f9f7c205 536 seg62->SetDAnod(0.25);
537 seg62->SetPadDivision(nseg3);
538 MUON->SetSegmentationModel(chamber-1, 2, seg62);
539 MUON->SetResponseModel(chamber-1, response0);
f5e13b7c 540
541//--------------------------------------------------------
542// Configuration for Chamber TC7/8 (Station 4) ----------
543//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
544
545 Int_t nseg4[4]={4, 4, 2, 1};
546
547 chamber=7;
548//^^^^^^^^^
549
550 MUON->SetNsec(chamber-1,2);
551//
552 AliMUONSegmentationSlat *seg71=new AliMUONSegmentationSlat;
a083207d 553 Int_t npcb7[44] = {0,0,0,3,
f9f7c205 554 0,0,2,2,
a083207d 555 0,0,3,2,
556 0,2,2,1,
557 0,2,2,1,
558 0,1,2,1,
559 0,2,2,1,
560 0,2,2,1,
561 0,0,3,2,
f9f7c205 562 0,0,2,2,
a083207d 563 0,0,0,3};
564 Float_t xpos7[11] = {2., 2., 2., 2., 2., 39.5, 2., 2., 2., 2., 2.};
f9f7c205 565 Float_t ypos7 = -(20.+5.*(40.-2.*shift));
f5e13b7c 566
f9f7c205 567 seg71->SetNSlats(11);
f5e13b7c 568 seg71->SetShift(shift);
569 seg71->SetNPCBperSector(npcb7);
f9f7c205 570 seg71->SetSlatXPositions(xpos7);
571 seg71->SetSlatYPosition(ypos7);
572
f5e13b7c 573 seg71->SetPadSize(10.,0.5);
574 seg71->SetDAnod(0.25);
575 seg71->SetPadDivision(nseg4);
576 MUON->SetSegmentationModel(chamber-1, 1, seg71);
577
578 AliMUONSegmentationSlatN *seg72=new AliMUONSegmentationSlatN;
579
580 MUON->SetSegmentationModel(chamber-1, 2, seg72);
f9f7c205 581 seg72->SetNSlats(11);
582 seg72->SetShift(shift);
f5e13b7c 583 seg72->SetNPCBperSector(npcb7);
f9f7c205 584 seg72->SetSlatXPositions(xpos7);
585 seg72->SetSlatYPosition(ypos7);
3f853d10 586 seg72->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f5e13b7c 587 seg72->SetDAnod(0.25);
588 seg72->SetPadDivision(nseg4);
589
590 MUON->SetResponseModel(chamber-1, response0);
591
592 chamber=8;
593//^^^^^^^^^
594 MUON->SetNsec(chamber-1,2);
595//
596 AliMUONSegmentationSlat *seg81=new AliMUONSegmentationSlat;
597
f9f7c205 598 seg81->SetNSlats(11);
f5e13b7c 599 seg81->SetShift(shift);
600 seg81->SetNPCBperSector(npcb7);
f9f7c205 601 seg81->SetSlatXPositions(xpos7);
602 seg81->SetSlatYPosition(ypos7);
f5e13b7c 603 seg81->SetPadSize(10.,0.5);
604 seg81->SetDAnod(0.25);
605 seg81->SetPadDivision(nseg4);
606 MUON->SetSegmentationModel(chamber-1, 1, seg81);
607
608 AliMUONSegmentationSlat *seg82=new AliMUONSegmentationSlatN;
609
610 MUON->SetSegmentationModel(chamber-1, 2, seg82);
f9f7c205 611 seg82->SetNSlats(11);
f5e13b7c 612 seg82->SetShift(shift);
613 seg82->SetNPCBperSector(npcb7);
f9f7c205 614 seg82->SetSlatXPositions(xpos7);
615 seg82->SetSlatYPosition(ypos7);
3f853d10 616 seg82->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f5e13b7c 617 seg82->SetDAnod(0.25);
618 seg82->SetPadDivision(nseg4);
619
620 MUON->SetResponseModel(chamber-1, response0);
621
622
623//--------------------------------------------------------
624// Configuration for Chamber TC9/10 (Station 5) ---------
625//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
626 chamber=9;
627//^^^^^^^^^
f9f7c205 628
f5e13b7c 629 MUON->SetNsec(chamber-1,2);
630//
f9f7c205 631 AliMUONSegmentationSlat *seg91=new AliMUONSegmentationSlat;
a083207d 632 Int_t npcb9[52] = {0,0,0,3,
f9f7c205 633 0,0,0,4,
634 0,0,2,3,
635 0,0,3,3,
636 0,2,2,2,
a083207d 637 0,2,2,2,
638 0,1,2,2,
639 0,2,2,2,
f9f7c205 640 0,2,2,2,
641 0,0,3,3,
642 0,0,2,3,
643 0,0,0,4,
a083207d 644 0,0,0,3};
f9f7c205 645
3c084d9f 646 // Float_t xpos9[13] = {2., 2., 2., 2., 2., 2., 39.5 , 2., 2., 2., 2., 2., 2.};
a083207d 647 Float_t xpos9[13] = {2., 2., 2., 2., 2., 2., 39.5, 2., 2., 2., 2., 2., 2.};
f9f7c205 648 Float_t ypos9 = -(20.+6.*(40.-2.*shift));
649
650 seg91->SetNSlats(13);
651 seg91->SetShift(shift);
652 seg91->SetNPCBperSector(npcb9);
653 seg91->SetSlatXPositions(xpos9);
654 seg91->SetSlatYPosition(ypos9);
f5e13b7c 655 seg91->SetPadSize(10.,0.5);
656 seg91->SetDAnod(0.25);
657 seg91->SetPadDivision(nseg4);
658 MUON->SetSegmentationModel(chamber-1, 1, seg91);
659
f9f7c205 660 AliMUONSegmentationSlatN *seg92=new AliMUONSegmentationSlatN;
f5e13b7c 661
662 MUON->SetSegmentationModel(chamber-1, 2, seg92);
f9f7c205 663 seg92->SetNSlats(13);
664 seg92->SetShift(shift);
665 seg92->SetNPCBperSector(npcb9);
666 seg92->SetSlatXPositions(xpos9);
667 seg92->SetSlatYPosition(ypos9);
3f853d10 668 seg92->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f9f7c205 669 seg92->SetDAnod(0.25);
670 seg92->SetPadDivision(nseg4);
f5e13b7c 671
672 MUON->SetResponseModel(chamber-1, response0);
673
674 chamber=10;
675//^^^^^^^^^
676 MUON->SetNsec(chamber-1,2);
f9f7c205 677//
678 AliMUONSegmentationSlat *seg101=new AliMUONSegmentationSlat;
679
680 seg101->SetNSlats(13);
681 seg101->SetShift(shift);
682 seg101->SetNPCBperSector(npcb9);
683 seg101->SetSlatXPositions(xpos9);
684 seg101->SetSlatYPosition(ypos9);
685 seg101->SetPadSize(10.,0.5);
f5e13b7c 686 seg101->SetDAnod(0.25);
f9f7c205 687 seg101->SetPadDivision(nseg4);
f5e13b7c 688 MUON->SetSegmentationModel(chamber-1, 1, seg101);
689
f9f7c205 690 AliMUONSegmentationSlatN *seg102=new AliMUONSegmentationSlatN;
691
f5e13b7c 692 MUON->SetSegmentationModel(chamber-1, 2, seg102);
f9f7c205 693 seg102->SetNSlats(13);
694 seg102->SetShift(shift);
695 seg102->SetNPCBperSector(npcb9);
696 seg102->SetSlatXPositions(xpos9);
697 seg102->SetSlatYPosition(ypos9);
3f853d10 698 seg102->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f9f7c205 699 seg102->SetDAnod(0.25);
700 seg102->SetPadDivision(nseg4);
f5e13b7c 701
702 MUON->SetResponseModel(chamber-1, response0);
703
704//--------------------------------------------------------
de7e3024 705// Configuration for Trigger Stations --------------------
f5e13b7c 706//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9e8ff550 707// Cluster-size off
f5e13b7c 708 AliMUONResponseTrigger* responseTrigger0 = new AliMUONResponseTrigger;
9e8ff550 709// Cluster-size on
710// AliMUONResponseTriggerV1* responseTrigger0 = new AliMUONResponseTriggerV1;
f5e13b7c 711
712 chamber=11;
713 MUON->SetNsec(chamber-1,2);
714 AliMUONSegmentationTriggerX *seg111=new AliMUONSegmentationTriggerX;
715 MUON->SetSegmentationModel(chamber-1, 1, seg111);
716 AliMUONSegmentationTriggerY *seg112=new AliMUONSegmentationTriggerY;
717 MUON->SetSegmentationModel(chamber-1, 2, seg112);
718
719 MUON->SetResponseModel(chamber-1, responseTrigger0);
720
721
722 chamber=12;
723 MUON->SetNsec(chamber-1,2);
724 AliMUONSegmentationTriggerX *seg121=new AliMUONSegmentationTriggerX;
725 MUON->SetSegmentationModel(chamber-1, 1, seg121);
726 AliMUONSegmentationTriggerY *seg122=new AliMUONSegmentationTriggerY;
727 MUON->SetSegmentationModel(chamber-1, 2, seg122);
728
729 MUON->SetResponseModel(chamber-1, responseTrigger0);
3c084d9f 730 chamber=13;
f5e13b7c 731 MUON->SetNsec(chamber-1,2);
732 AliMUONSegmentationTriggerX *seg131=new AliMUONSegmentationTriggerX;
733 MUON->SetSegmentationModel(chamber-1, 1, seg131);
734 AliMUONSegmentationTriggerY *seg132=new AliMUONSegmentationTriggerY;
735 MUON->SetSegmentationModel(chamber-1, 2, seg132);
736 MUON->SetResponseModel(chamber-1, responseTrigger0);
737
738 chamber=14;
739 MUON->SetNsec(chamber-1,2);
740 AliMUONSegmentationTriggerX *seg141=new AliMUONSegmentationTriggerX;
741 MUON->SetSegmentationModel(chamber-1, 1, seg141);
742 AliMUONSegmentationTriggerY *seg142=new AliMUONSegmentationTriggerY;
743 MUON->SetSegmentationModel(chamber-1, 2, seg142);
744
745 MUON->SetResponseModel(chamber-1, responseTrigger0);
746
747}
748
749}
750
751
752
753
754