Mothervolume defined MANY because overlap with station 3 mothervolume not avoidable...
[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);
21a18f36 99
f5e13b7c 100 //vertex position
101 gener->SetSigma(1,1,0); //Sigma in (X,Y,Z) (cm) on IP position
102 gener->SetPart(kMuonMinus);
21a18f36 103 gener->SetRange(100, -300., 300., 100, -300., 300., 1, 900, 900);
f5e13b7c 104 break;
105 case doublescan:
106//*********************************************
107// Scanning on a grid *
108//*********************************************
109 AliGenDoubleScan *gener = new AliGenDoubleScan(-1);
110 gener->SetMomentumRange(4,4);
111 gener->SetPhiRange(0,360);
112 gener->SetThetaRange(0,0);
113 //vertex position
114 gener->SetSigma(3,3,0); //Sigma in (X,Y,Z) (cm) on IP position
115 gener->SetPart(8);
116 gener->SetRange(20, -100, 100, 20, -100, 100, 1, 500, 500);
117 gener->SetDistance(1);
118 break;
119
120 case hijing:
121 AliGenHIJINGpara *gener = new AliGenHIJINGpara(ntracks);
122 gener->SetMomentumRange(0,999);
123 gener->SetPtRange(0,999);
124 gener->SetPhiRange(0,360);
125// gener->SetThetaRange(0.104,33.52);
126 gener->SetThetaRange(0.104,90.0);
127// gener->SetThetaRange(2.,9.);
128 gener->SetOrigin(0., 0.0 ,0); // vertex position
129 gener->SetSigma(0,0,5.3); // Sigma in (X,Y,Z) (cm) on IP position
130 gener->SetVertexSmear(kPerTrack);
131 gener->SetTrackingFlag(0);
132 break;
133 case hijing_g:
134 AliGenHijing *gener = new AliGenHijing(-1);
135
136 gener->SetEnergyCMS(5600.);
137 gener->SetReferenceFrame("CMS");
138 gener->SetProjectile("A", 208, 82);
139 gener->SetTarget ("A", 208, 82);
140 gener->SetImpactParameterRange(0, 5.);
141 gener->SetEvaluate(0);
142 gener->KeepFullEvent();
143 gener->SetJetQuenching(1);
144 gener->SetShadowing(1);
145 gener->SetDecaysOff(1);
146 gener->SetTrigger(0);
147 gener->SetSelectAll(1);
148 gener->SetMomentumRange(0,9999);
149 gener->SetPhiRange(-180,180);
150 gener->SetThetaRange(0.104,90.0);
151// gener->SetFlavor(4);
152
153
154 gener->SetOrigin(0., 0.0 ,0);
155 gener->SetSigma(0,0,5.3);
156 gener->SetVertexSmear(kPerEvent);
157 gener->SetTrackingFlag(0);
158
159 break;
160
161 case pythia:
162//********************************************
163// Example for Charm Production with Pythia *
164//********************************************
165AliGenPythia *gener = new AliGenPythia(ntracks);
166 gener->SetMomentumRange(0,999);
167 gener->SetPhiRange(0,360);
168 gener->SetThetaRange(0., 180.);
169 gener->SetYRange(-10,10);
170 gener->SetPtRange(0,100);
171 //gener->SetOrigin(0,0,0); // vertex position
172 //gener->SetVertexSmear(kPerEvent);
173 //gener->SetSigma(0,0,5.6); // Sigma in (X,Y,Z) (cm) on IP
174position
175 gener->SetStrucFunc(DO_Set_1);
176 gener->SetProcess(charm);
177 gener->SetEnergyCMS(5500.);
178 break;
179/*
180 AliGenPythia *gener = new AliGenPythia(ntracks);
181 gener->SetMomentumRange(0,999);
182 gener->SetPhiRange(0,360);
183 gener->SetThetaRange(0., 180.);
184 gener->SetYRange(-10,10);
185 gener->SetPtRange(0,100);
186 gener->SetOrigin(0,0,0); // vertex position
187 gener->SetVertexSmear(kPerEvent);
188 gener->SetSigma(0,0,5.6); // Sigma in (X,Y,Z) (cm) on IP position
189 gener->SetStrucFunc(DO_Set_1);
190 gener->SetProcess(charm);
191 gener->SetForceDecay(dimuon);
192 gener->SetEnergyCMS(5500.);
193 gener->SetTrackingFlag(0);
194
195 break;
196 */
197 case param:
198//*******************************************************
199// Example for J/psi Production from Parameterisation *
200//*******************************************************
3c084d9f 201 AliGenParam *gener = new AliGenParam(ntracks,upsilon_p);
f5e13b7c 202 gener->SetMomentumRange(0,999);
203 gener->SetPhiRange(-180, 180);
204 gener->SetYRange(2.5,4);
205 gener->SetCutOnChild(1);
206 gener->SetChildThetaRange(2,9);
207 gener->SetOrigin(0,0,0); //vertex position
208 gener->SetSigma(0,0,0); //Sigma in (X,Y,Z) (cm) on IP position
209 gener->SetForceDecay(dimuon);
3c084d9f 210 gener->SetTrackingFlag(1);
f5e13b7c 211
212 break;
213
214 case fluka:
215//*******************************************************
216// Example for a FLUKA Boundary Source *
217//*******************************************************
218 AliGenFLUKAsource *gener = new AliGenFLUKAsource(-1);
219 gener->AddFile("$(ALICE_ROOT)/data/alice.root");
220 rootfile->cd();
221 gener->SetPartFlag(7);
222 gener->SetMomentumRange(0,999);
223 gener->SetPhiRange(0,360);
224 gener->SetThetaRange(0., 180.);
225 gener->SetAgeMax(1.e-5);
226
227// 31.7 events
228 gener->SetFraction(1.);
229 break;
230
231 case ntuple:
232//*******************************************************
233// Example for reading from a external file *
234//*******************************************************
235 AliGenExtFileCH *gener = new AliGenExtFileCH(-1);
236 gener->SetFileName("$(ALICE_ROOT)/data/pbpb.root");
237 gener->SetThetaRange(0.104,90.);
238 gener->SetOrigin(0,0,0); //vertex position
239 gener->SetSigma(0,0,5.6); //Sigma in (X,Y,Z) (cm) on IP position
240 gener->SetVertexSmear(kPerTrack);
241 gener->SetTrackingFlag(1);
242 break;
243
244 case halo:
245//*******************************************************
246// Example for Tunnel Halo Source *
247//*******************************************************
248 AliGenHalo *gener = new AliGenHalo(ntracks);
249 gener->SetFileName("/h1/morsch/marsip/marsip5.mu");
250 break;
251
252 case cocktail:
253//*******************************************************
254// Example for a Cocktail *
255//*******************************************************
256 AliGenCocktail *gener = new AliGenCocktail();
257 gener->SetMomentumRange(0,10);
258 gener->SetPhiRange(0,360);
259 gener->SetThetaRange(2.,9.);
260 gener->SetTrackingFlag(0);
261 AliGenParam *Pi0 = new AliGenParam(100, new AliGenPMDlib(), Pion);
262 AliGenParam *Eta = new AliGenParam( 10, new AliGenPMDlib(), Eta);
263 gener->AddGenerator(Pi0, "neutral pions" , 1.);
264 gener->AddGenerator(Eta, "neutral etas" , 1.);
265 break;
266 }
267
268
269gener->Init();
3c084d9f 270gAlice->SetField(2,1); //Specify maximum magnetic field in Tesla (neg. ==> default field)
f5e13b7c 271
272Int_t iFRAME =0;
273Int_t iMAG =0;
274Int_t iITS =0;
275Int_t iABSO =0;
21a18f36 276Int_t iDIPO =1;
f5e13b7c 277Int_t iHALL =0;
278Int_t iSHIL =0;
279Int_t iPIPE =0;
280Int_t iFMD =0;
281Int_t iMUON =1;
282
283//=================== Alice BODY parameters =============================
284AliBODY *BODY = new AliBODY("BODY","Alice envelop");
285
286if(iFRAME) {
287//=================== FRAME parameters ============================
288AliFRAME *FRAME = new AliFRAMEv0("FRAME","Space Frame");
289}
290
291if(iMAG) {
292//=================== MAG parameters ============================
293// --- Start with Magnet since detector layouts may be depending ---
294// --- on the selected Magnet dimensions ---
295AliMAG *MAG = new AliMAG("MAG","Magnet");
296}
297
298if(iABSO) {
299//=================== ABSO parameters ============================
300 AliABSO *ABSO = new AliABSOv0("ABSO","Muon Absorber");
301}
302
303if(iDIPO) {
304//=================== DIPO parameters ============================
305
306 AliDIPO *DIPO = new AliDIPOv2("DIPO","Dipole version 2");
307}
308
309if(iHALL) {
310//=================== HALL parameters ============================
311 AliHALL *HALL = new AliHALL("HALL","Alice Hall");
312}
313
314
315
316if(iSHIL) {
317//=================== SHIL parameters ============================
318// AliSHIL *SHIL = new AliSAROV("SHIL","Shielding");
319 AliSHILv0 *SHIL = new AliSHILv0("SHIL","Shielding");
320 SHIL->SetPbCone(1);
321// AliSAROV *SHIL = new AliSAROV("SHIL","Shielding");
322}
323
324
325if(iPIPE) {
326//=================== PIPE parameters ============================
327 AliPIPE *PIPE = new AliPIPEv0("PIPE","Beam Pipe");
328}
329
330
331if(iFMD) {
332//=================== FMD parameters ============================
333 AliFMD *FMD = new AliFMDv1("FMD","normal FMD");
334}
335
336if(iMUON) {
337//=================== MUON parameters ===========================
338
339AliMUON *MUON = new AliMUONv1("MUON","normal MUON");
340 MUON->SetIshunt(1);
341 MUON->SetMaxStepGas(0.1);
342 MUON->SetMaxStepAlu(0.1);
343//
344// Version 0
345//
346// First define the number of planes that are segmented (1 or 2) by a call
347// to SetNsec.
348// Then chose for each chamber (chamber plane) the segmentation
349// and response model.
350// They should be equal for the two chambers of each station. In a future
351// version this will be enforced.
352//
353//
354 Int_t chamber;
355 Int_t station;
b64652f5 356 // Default response: 5 mm of gas
f5e13b7c 357 AliMUONResponseV0* response0 = new AliMUONResponseV0;
b64652f5 358 response0->SetSqrtKx3AndDeriveKx2Kx4(0.7131); // sqrt(0.5085)
359 response0->SetSqrtKy3AndDeriveKy2Ky4(0.7642); // sqrt(0.5840)
360 response0->SetPitch(0.25); // anode-cathode distance
f5e13b7c 361 response0->SetSigmaIntegration(10.);
362 response0->SetChargeSlope(50);
363 response0->SetChargeSpread(0.18, 0.18);
364 response0->SetMaxAdc(4096);
365 response0->SetZeroSuppression(6);
b64652f5 366
367 // Response for 4 mm of gas (station 1)
368 // automatic consistency with width of sensitive medium in CreateGeometry ????
369 AliMUONResponseV0* responseSt1 = new AliMUONResponseV0;
370 // Mathieson parameters from L.Kharmandarian's thesis, page 190
371 responseSt1->SetSqrtKx3AndDeriveKx2Kx4(0.7000); // sqrt(0.4900)
372 responseSt1->SetSqrtKy3AndDeriveKy2Ky4(0.7550); // sqrt(0.5700)
373 responseSt1->SetPitch(0.20); // anode-cathode distance
374 responseSt1->SetSigmaIntegration(10.);
375 // ChargeSlope larger to compensate for the smaller anode-cathode distance
376 // and keep the same most probable ADC channel for mip's
377 responseSt1->SetChargeSlope(62.5);
378 // assumed proportionality to anode-cathode distance for ChargeSpread
379 responseSt1->SetChargeSpread(0.144, 0.144);
380 responseSt1->SetMaxAdc(4096);
381 responseSt1->SetZeroSuppression(6);
382
f5e13b7c 383//--------------------------------------------------------
384// Configuration for Chamber TC1/2 (Station 1) ----------
385//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
386 Float_t rseg1[4]={17.5, 55.2, 71.3, 95.5};
387 Int_t nseg1[4]={4, 4, 2, 1};
388//
389 chamber=1;
390//^^^^^^^^^
391 MUON->SetNsec(chamber-1,2);
392//
393 AliMUONSegmentationV01 *seg11=new AliMUONSegmentationV01;
394
395 seg11->SetSegRadii(rseg1);
b64652f5 396// seg11->SetPadSize(3, 0.5);
397 seg11->SetPadSize(2.4, 0.4); // smaller pad size
398// seg11->SetDAnod(3.0/3./4);
399 seg11->SetDAnod(0.20); // smaller distance between anode wires
f5e13b7c 400 seg11->SetPadDivision(nseg1);
401
402 MUON->SetSegmentationModel(chamber-1, 1, seg11);
403//
404 AliMUONSegmentationV02 *seg12=new AliMUONSegmentationV02;
405 seg12->SetSegRadii(rseg1);
b64652f5 406// seg12->SetPadSize(0.75, 2.0);
407 seg12->SetPadSize(0.6, 1.6); // smaller pad size
408// seg12->SetDAnod(3.0/3./4);
409 seg12->SetDAnod(0.20); // smaller distance between anode wires
f5e13b7c 410 seg12->SetPadDivision(nseg1);
411
412 MUON->SetSegmentationModel(chamber-1, 2, seg12);
413
b64652f5 414// MUON->SetResponseModel(chamber-1, response0);
415 MUON->SetResponseModel(chamber-1, responseSt1); // special response
681d067b 416 MUON->Chamber(chamber-1).SetChargeCorrel(0.11); // 11% charge spread
f5e13b7c 417
418 chamber=2;
419//^^^^^^^^^
420//
421 MUON->SetNsec(chamber-1,2);
422//
423 AliMUONSegmentationV01 *seg21=new AliMUONSegmentationV01;
424 seg21->SetSegRadii(rseg1);
b64652f5 425// seg21->SetPadSize(3, 0.5);
426 seg21->SetPadSize(2.4, 0.4); // smaller pad size
427// seg21->SetDAnod(3.0/3./4);
428 seg21->SetDAnod(0.20); // smaller distance between anode wires
f5e13b7c 429 seg21->SetPadDivision(nseg1);
430 MUON->SetSegmentationModel(chamber-1, 1, seg21);
431//
432 AliMUONSegmentationV02 *seg22=new AliMUONSegmentationV02;
433 seg22->SetSegRadii(rseg1);
b64652f5 434// seg22->SetPadSize(0.75, 2.);
435 seg22->SetPadSize(0.6, 1.6); // smaller pad size
436// seg22->SetDAnod(3.0/3./4);
437 seg22->SetDAnod(0.20); // smaller distance between anode wires
f5e13b7c 438 seg22->SetPadDivision(nseg1);
439 MUON->SetSegmentationModel(chamber-1, 2, seg22);
440
b64652f5 441// MUON->SetResponseModel(chamber-1, response0);
442 MUON->SetResponseModel(chamber-1, responseSt1); // special response
681d067b 443 MUON->Chamber(chamber-1).SetChargeCorrel(0.11); // 11% charge spread
b64652f5 444
f5e13b7c 445//
446//--------------------------------------------------------
de7e3024 447// Configuration for Chamber TC3/4 (Station 2) -----------
448///^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
f5e13b7c 449// Float_t rseg2[4]={23.5, 87.7, 122.4, 122.5};
450 Float_t rseg2[4]={23.5, 47.1, 87.7, 122.5};
451 Int_t nseg2[4]={4, 4, 2, 1};
452//
453 chamber=3;
454//^^^^^^^^^
455 MUON->SetNsec(chamber-1,2);
456//
457 AliMUONSegmentationV01 *seg31=new AliMUONSegmentationV01;
458 seg31->SetSegRadii(rseg2);
7dfbb987 459 seg31->SetPadSize(3.0, 0.5);
f5e13b7c 460 seg31->SetDAnod(3.0/3./4);
461 seg31->SetPadDivision(nseg2);
462 MUON->SetSegmentationModel(chamber-1, 1, seg31);
463//
464 AliMUONSegmentationV02 *seg32=new AliMUONSegmentationV02;
465 seg32->SetSegRadii(rseg2);
7dfbb987 466 seg32->SetPadSize(0.75, 2.0);
f5e13b7c 467 seg32->SetPadDivision(nseg2);
468 seg32->SetDAnod(3.0/3./4);
469
470 MUON->SetSegmentationModel(chamber-1, 2, seg32);
471
472 MUON->SetResponseModel(chamber-1, response0);
681d067b 473 MUON->Chamber(chamber-1).SetChargeCorrel(0.11); // 11% charge spread
f5e13b7c 474
475 chamber=4;
476//^^^^^^^^^
477//
478 MUON->SetNsec(chamber-1,2);
479//
480 AliMUONSegmentationV01 *seg41=new AliMUONSegmentationV01;
481 seg41->SetSegRadii(rseg2);
7dfbb987 482 seg41->SetPadSize(3.0, 0.5);
f5e13b7c 483 seg41->SetDAnod(3.0/3./4);
484 seg41->SetPadDivision(nseg2);
485 MUON->SetSegmentationModel(chamber-1, 1, seg41);
486//
487 AliMUONSegmentationV02 *seg42=new AliMUONSegmentationV02;
488 seg42->SetSegRadii(rseg2);
7dfbb987 489 seg42->SetPadSize(0.75, 2.0);
f5e13b7c 490 seg42->SetPadDivision(nseg2);
491 seg42->SetDAnod(3.0/3./4);
492
493 MUON->SetSegmentationModel(chamber-1, 2, seg42);
494
495 MUON->SetResponseModel(chamber-1, response0);
681d067b 496 MUON->Chamber(chamber-1).SetChargeCorrel(0.11); // 11% charge spread
f5e13b7c 497
498
499//--------------------------------------------------------
de7e3024 500// Configuration for Chamber TC5/6 (Station 3) ----------
f5e13b7c 501//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
f9f7c205 502 Int_t nseg3[4]={4, 4, 2, 1};
a083207d 503 Int_t npcb5[36] = {0,0,2,0,
504 0,0,3,0,
505 0,1,3,0,
506 0,2,2,0,
de7e3024 507 0,1,2,0,
a083207d 508 0,2,2,0,
509 0,1,3,0,
510 0,0,3,0,
511 0,0,2,0};
de7e3024 512
f9f7c205 513 Float_t shift = 1.5/2.;
3c084d9f 514 // Float_t xpos5[8] = {2., 2., 2., 42., 42., 2., 2., 2.};
21a18f36 515 Float_t xpos5[9] = {2., 2., 2., 2.,33., 2., 2., 2., 2.};
a083207d 516 Float_t ypos5 = -(20.+4.*(40.-2.*shift));
f5e13b7c 517
518 chamber=5;
f9f7c205 519 MUON->SetNsec(chamber-1,2);
520 AliMUONSegmentationSlat *seg51=new AliMUONSegmentationSlat;
a083207d 521 seg51->SetNSlats(9);
f9f7c205 522 seg51->SetShift(shift);
523 seg51->SetNPCBperSector(npcb5);
524 seg51->SetSlatXPositions(xpos5);
525 seg51->SetSlatYPosition(ypos5);
526 seg51->SetPadSize(10.,0.5);
527 seg51->SetDAnod(0.25);
528 seg51->SetPadDivision(nseg3);
529 MUON->SetSegmentationModel(chamber-1, 1, seg51);
530
531 AliMUONSegmentationSlatN *seg52=new AliMUONSegmentationSlatN;
a083207d 532 seg52->SetNSlats(9);
f9f7c205 533 seg52->SetShift(shift);
534 seg52->SetNPCBperSector(npcb5);
535 seg52->SetSlatXPositions(xpos5);
536 seg52->SetSlatYPosition(ypos5);
3f853d10 537 seg52->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f9f7c205 538 seg52->SetDAnod(0.25);
539 seg52->SetPadDivision(nseg3);
540 MUON->SetSegmentationModel(chamber-1, 2, seg52);
541 MUON->SetResponseModel(chamber-1, response0);
681d067b 542 MUON->Chamber(chamber-1).SetChargeCorrel(0.11); // 11% charge spread
f5e13b7c 543
544 chamber=6;
f9f7c205 545 MUON->SetNsec(chamber-1,2);
546 AliMUONSegmentationSlat *seg61=new AliMUONSegmentationSlat;
a083207d 547 seg61->SetNSlats(9);
f9f7c205 548 seg61->SetShift(shift);
549 seg61->SetNPCBperSector(npcb5);
550 seg61->SetSlatXPositions(xpos5);
551 seg61->SetSlatYPosition(ypos5);
552 seg61->SetPadSize(10.,0.5);
553 seg61->SetDAnod(0.25);
554 seg61->SetPadDivision(nseg3);
555 MUON->SetSegmentationModel(chamber-1, 1, seg61);
556
557 AliMUONSegmentationSlatN *seg62=new AliMUONSegmentationSlatN;
a083207d 558 seg62->SetNSlats(9);
f9f7c205 559 seg62->SetShift(shift);
560 seg62->SetNPCBperSector(npcb5);
561 seg62->SetSlatXPositions(xpos5);
562 seg62->SetSlatYPosition(ypos5);
3f853d10 563 seg62->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f9f7c205 564 seg62->SetDAnod(0.25);
565 seg62->SetPadDivision(nseg3);
566 MUON->SetSegmentationModel(chamber-1, 2, seg62);
567 MUON->SetResponseModel(chamber-1, response0);
681d067b 568 MUON->Chamber(chamber-1).SetChargeCorrel(0.11); // 11% charge spread
f5e13b7c 569
570//--------------------------------------------------------
571// Configuration for Chamber TC7/8 (Station 4) ----------
572//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
573
574 Int_t nseg4[4]={4, 4, 2, 1};
575
576 chamber=7;
577//^^^^^^^^^
578
579 MUON->SetNsec(chamber-1,2);
580//
581 AliMUONSegmentationSlat *seg71=new AliMUONSegmentationSlat;
a083207d 582 Int_t npcb7[44] = {0,0,0,3,
f9f7c205 583 0,0,2,2,
a083207d 584 0,0,3,2,
585 0,2,2,1,
586 0,2,2,1,
587 0,1,2,1,
588 0,2,2,1,
589 0,2,2,1,
590 0,0,3,2,
f9f7c205 591 0,0,2,2,
a083207d 592 0,0,0,3};
21a18f36 593 Float_t xpos7[11] = {2., 2., 2., 2., 2., 40.5, 2., 2., 2., 2., 2.};
f9f7c205 594 Float_t ypos7 = -(20.+5.*(40.-2.*shift));
f5e13b7c 595
f9f7c205 596 seg71->SetNSlats(11);
f5e13b7c 597 seg71->SetShift(shift);
598 seg71->SetNPCBperSector(npcb7);
f9f7c205 599 seg71->SetSlatXPositions(xpos7);
600 seg71->SetSlatYPosition(ypos7);
601
f5e13b7c 602 seg71->SetPadSize(10.,0.5);
603 seg71->SetDAnod(0.25);
604 seg71->SetPadDivision(nseg4);
605 MUON->SetSegmentationModel(chamber-1, 1, seg71);
606
607 AliMUONSegmentationSlatN *seg72=new AliMUONSegmentationSlatN;
608
609 MUON->SetSegmentationModel(chamber-1, 2, seg72);
f9f7c205 610 seg72->SetNSlats(11);
611 seg72->SetShift(shift);
f5e13b7c 612 seg72->SetNPCBperSector(npcb7);
f9f7c205 613 seg72->SetSlatXPositions(xpos7);
614 seg72->SetSlatYPosition(ypos7);
3f853d10 615 seg72->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f5e13b7c 616 seg72->SetDAnod(0.25);
617 seg72->SetPadDivision(nseg4);
618
619 MUON->SetResponseModel(chamber-1, response0);
681d067b 620 MUON->Chamber(chamber-1).SetChargeCorrel(0.11); // 11% charge spread
f5e13b7c 621
622 chamber=8;
623//^^^^^^^^^
624 MUON->SetNsec(chamber-1,2);
625//
626 AliMUONSegmentationSlat *seg81=new AliMUONSegmentationSlat;
627
f9f7c205 628 seg81->SetNSlats(11);
f5e13b7c 629 seg81->SetShift(shift);
630 seg81->SetNPCBperSector(npcb7);
f9f7c205 631 seg81->SetSlatXPositions(xpos7);
632 seg81->SetSlatYPosition(ypos7);
f5e13b7c 633 seg81->SetPadSize(10.,0.5);
634 seg81->SetDAnod(0.25);
635 seg81->SetPadDivision(nseg4);
636 MUON->SetSegmentationModel(chamber-1, 1, seg81);
637
638 AliMUONSegmentationSlat *seg82=new AliMUONSegmentationSlatN;
639
640 MUON->SetSegmentationModel(chamber-1, 2, seg82);
f9f7c205 641 seg82->SetNSlats(11);
f5e13b7c 642 seg82->SetShift(shift);
643 seg82->SetNPCBperSector(npcb7);
f9f7c205 644 seg82->SetSlatXPositions(xpos7);
645 seg82->SetSlatYPosition(ypos7);
3f853d10 646 seg82->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f5e13b7c 647 seg82->SetDAnod(0.25);
648 seg82->SetPadDivision(nseg4);
649
650 MUON->SetResponseModel(chamber-1, response0);
681d067b 651 MUON->Chamber(chamber-1).SetChargeCorrel(0.11); // 11% charge spread
f5e13b7c 652
653
654//--------------------------------------------------------
655// Configuration for Chamber TC9/10 (Station 5) ---------
656//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
657 chamber=9;
658//^^^^^^^^^
f9f7c205 659
f5e13b7c 660 MUON->SetNsec(chamber-1,2);
661//
f9f7c205 662 AliMUONSegmentationSlat *seg91=new AliMUONSegmentationSlat;
a083207d 663 Int_t npcb9[52] = {0,0,0,3,
f9f7c205 664 0,0,0,4,
665 0,0,2,3,
666 0,0,3,3,
667 0,2,2,2,
a083207d 668 0,2,2,2,
669 0,1,2,2,
670 0,2,2,2,
f9f7c205 671 0,2,2,2,
672 0,0,3,3,
673 0,0,2,3,
674 0,0,0,4,
a083207d 675 0,0,0,3};
f9f7c205 676
3c084d9f 677 // Float_t xpos9[13] = {2., 2., 2., 2., 2., 2., 39.5 , 2., 2., 2., 2., 2., 2.};
21a18f36 678 Float_t xpos9[13] = {2., 2., 2., 2., 2., 2., 40.5, 2., 2., 2., 2., 2., 2.};
f9f7c205 679 Float_t ypos9 = -(20.+6.*(40.-2.*shift));
680
681 seg91->SetNSlats(13);
682 seg91->SetShift(shift);
683 seg91->SetNPCBperSector(npcb9);
684 seg91->SetSlatXPositions(xpos9);
685 seg91->SetSlatYPosition(ypos9);
f5e13b7c 686 seg91->SetPadSize(10.,0.5);
687 seg91->SetDAnod(0.25);
688 seg91->SetPadDivision(nseg4);
689 MUON->SetSegmentationModel(chamber-1, 1, seg91);
690
f9f7c205 691 AliMUONSegmentationSlatN *seg92=new AliMUONSegmentationSlatN;
f5e13b7c 692
693 MUON->SetSegmentationModel(chamber-1, 2, seg92);
f9f7c205 694 seg92->SetNSlats(13);
695 seg92->SetShift(shift);
696 seg92->SetNPCBperSector(npcb9);
697 seg92->SetSlatXPositions(xpos9);
698 seg92->SetSlatYPosition(ypos9);
3f853d10 699 seg92->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f9f7c205 700 seg92->SetDAnod(0.25);
701 seg92->SetPadDivision(nseg4);
f5e13b7c 702
703 MUON->SetResponseModel(chamber-1, response0);
681d067b 704 MUON->Chamber(chamber-1).SetChargeCorrel(0.11); // 11% charge spread
f5e13b7c 705
706 chamber=10;
707//^^^^^^^^^
708 MUON->SetNsec(chamber-1,2);
f9f7c205 709//
710 AliMUONSegmentationSlat *seg101=new AliMUONSegmentationSlat;
711
712 seg101->SetNSlats(13);
713 seg101->SetShift(shift);
714 seg101->SetNPCBperSector(npcb9);
715 seg101->SetSlatXPositions(xpos9);
716 seg101->SetSlatYPosition(ypos9);
717 seg101->SetPadSize(10.,0.5);
f5e13b7c 718 seg101->SetDAnod(0.25);
f9f7c205 719 seg101->SetPadDivision(nseg4);
f5e13b7c 720 MUON->SetSegmentationModel(chamber-1, 1, seg101);
721
f9f7c205 722 AliMUONSegmentationSlatN *seg102=new AliMUONSegmentationSlatN;
723
f5e13b7c 724 MUON->SetSegmentationModel(chamber-1, 2, seg102);
f9f7c205 725 seg102->SetNSlats(13);
726 seg102->SetShift(shift);
727 seg102->SetNPCBperSector(npcb9);
728 seg102->SetSlatXPositions(xpos9);
729 seg102->SetSlatYPosition(ypos9);
3f853d10 730 seg102->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f9f7c205 731 seg102->SetDAnod(0.25);
732 seg102->SetPadDivision(nseg4);
f5e13b7c 733
734 MUON->SetResponseModel(chamber-1, response0);
681d067b 735 MUON->Chamber(chamber-1).SetChargeCorrel(0.11); // 11% charge spread
f5e13b7c 736
737//--------------------------------------------------------
de7e3024 738// Configuration for Trigger Stations --------------------
f5e13b7c 739//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9e8ff550 740// Cluster-size off
f5e13b7c 741 AliMUONResponseTrigger* responseTrigger0 = new AliMUONResponseTrigger;
9e8ff550 742// Cluster-size on
743// AliMUONResponseTriggerV1* responseTrigger0 = new AliMUONResponseTriggerV1;
f5e13b7c 744
745 chamber=11;
746 MUON->SetNsec(chamber-1,2);
747 AliMUONSegmentationTriggerX *seg111=new AliMUONSegmentationTriggerX;
748 MUON->SetSegmentationModel(chamber-1, 1, seg111);
749 AliMUONSegmentationTriggerY *seg112=new AliMUONSegmentationTriggerY;
750 MUON->SetSegmentationModel(chamber-1, 2, seg112);
751
752 MUON->SetResponseModel(chamber-1, responseTrigger0);
681d067b 753 MUON->Chamber(chamber-1).SetChargeCorrel(0); // same charge on cathodes
f5e13b7c 754
755
756 chamber=12;
757 MUON->SetNsec(chamber-1,2);
758 AliMUONSegmentationTriggerX *seg121=new AliMUONSegmentationTriggerX;
759 MUON->SetSegmentationModel(chamber-1, 1, seg121);
760 AliMUONSegmentationTriggerY *seg122=new AliMUONSegmentationTriggerY;
761 MUON->SetSegmentationModel(chamber-1, 2, seg122);
762
681d067b 763 MUON->SetResponseModel(chamber-1, responseTrigger0);
764 MUON->Chamber(chamber-1).SetChargeCorrel(0); // same charge on cathodes
765
3c084d9f 766 chamber=13;
f5e13b7c 767 MUON->SetNsec(chamber-1,2);
768 AliMUONSegmentationTriggerX *seg131=new AliMUONSegmentationTriggerX;
769 MUON->SetSegmentationModel(chamber-1, 1, seg131);
770 AliMUONSegmentationTriggerY *seg132=new AliMUONSegmentationTriggerY;
771 MUON->SetSegmentationModel(chamber-1, 2, seg132);
772 MUON->SetResponseModel(chamber-1, responseTrigger0);
681d067b 773 MUON->Chamber(chamber-1).SetChargeCorrel(0); // same charge on cathodes
f5e13b7c 774
775 chamber=14;
776 MUON->SetNsec(chamber-1,2);
777 AliMUONSegmentationTriggerX *seg141=new AliMUONSegmentationTriggerX;
778 MUON->SetSegmentationModel(chamber-1, 1, seg141);
779 AliMUONSegmentationTriggerY *seg142=new AliMUONSegmentationTriggerY;
780 MUON->SetSegmentationModel(chamber-1, 2, seg142);
781
782 MUON->SetResponseModel(chamber-1, responseTrigger0);
681d067b 783 MUON->Chamber(chamber-1).SetChargeCorrel(0); // same charge on cathodes
f5e13b7c 784
785}
786
787}
788
789
790
791
792