updated for AliTrackingAction change
[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;
b64652f5 355 // Default response: 5 mm of gas
f5e13b7c 356 AliMUONResponseV0* response0 = new AliMUONResponseV0;
b64652f5 357 response0->SetSqrtKx3AndDeriveKx2Kx4(0.7131); // sqrt(0.5085)
358 response0->SetSqrtKy3AndDeriveKy2Ky4(0.7642); // sqrt(0.5840)
359 response0->SetPitch(0.25); // anode-cathode distance
f5e13b7c 360 response0->SetSigmaIntegration(10.);
361 response0->SetChargeSlope(50);
362 response0->SetChargeSpread(0.18, 0.18);
363 response0->SetMaxAdc(4096);
364 response0->SetZeroSuppression(6);
b64652f5 365
366 // Response for 4 mm of gas (station 1)
367 // automatic consistency with width of sensitive medium in CreateGeometry ????
368 AliMUONResponseV0* responseSt1 = new AliMUONResponseV0;
369 // Mathieson parameters from L.Kharmandarian's thesis, page 190
370 responseSt1->SetSqrtKx3AndDeriveKx2Kx4(0.7000); // sqrt(0.4900)
371 responseSt1->SetSqrtKy3AndDeriveKy2Ky4(0.7550); // sqrt(0.5700)
372 responseSt1->SetPitch(0.20); // anode-cathode distance
373 responseSt1->SetSigmaIntegration(10.);
374 // ChargeSlope larger to compensate for the smaller anode-cathode distance
375 // and keep the same most probable ADC channel for mip's
376 responseSt1->SetChargeSlope(62.5);
377 // assumed proportionality to anode-cathode distance for ChargeSpread
378 responseSt1->SetChargeSpread(0.144, 0.144);
379 responseSt1->SetMaxAdc(4096);
380 responseSt1->SetZeroSuppression(6);
381
f5e13b7c 382//--------------------------------------------------------
383// Configuration for Chamber TC1/2 (Station 1) ----------
384//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
385 Float_t rseg1[4]={17.5, 55.2, 71.3, 95.5};
386 Int_t nseg1[4]={4, 4, 2, 1};
387//
388 chamber=1;
389//^^^^^^^^^
390 MUON->SetNsec(chamber-1,2);
391//
392 AliMUONSegmentationV01 *seg11=new AliMUONSegmentationV01;
393
394 seg11->SetSegRadii(rseg1);
b64652f5 395// seg11->SetPadSize(3, 0.5);
396 seg11->SetPadSize(2.4, 0.4); // smaller pad size
397// seg11->SetDAnod(3.0/3./4);
398 seg11->SetDAnod(0.20); // smaller distance between anode wires
f5e13b7c 399 seg11->SetPadDivision(nseg1);
400
401 MUON->SetSegmentationModel(chamber-1, 1, seg11);
402//
403 AliMUONSegmentationV02 *seg12=new AliMUONSegmentationV02;
404 seg12->SetSegRadii(rseg1);
b64652f5 405// seg12->SetPadSize(0.75, 2.0);
406 seg12->SetPadSize(0.6, 1.6); // smaller pad size
407// seg12->SetDAnod(3.0/3./4);
408 seg12->SetDAnod(0.20); // smaller distance between anode wires
f5e13b7c 409 seg12->SetPadDivision(nseg1);
410
411 MUON->SetSegmentationModel(chamber-1, 2, seg12);
412
b64652f5 413// MUON->SetResponseModel(chamber-1, response0);
414 MUON->SetResponseModel(chamber-1, responseSt1); // special response
f5e13b7c 415
416 chamber=2;
417//^^^^^^^^^
418//
419 MUON->SetNsec(chamber-1,2);
420//
421 AliMUONSegmentationV01 *seg21=new AliMUONSegmentationV01;
422 seg21->SetSegRadii(rseg1);
b64652f5 423// seg21->SetPadSize(3, 0.5);
424 seg21->SetPadSize(2.4, 0.4); // smaller pad size
425// seg21->SetDAnod(3.0/3./4);
426 seg21->SetDAnod(0.20); // smaller distance between anode wires
f5e13b7c 427 seg21->SetPadDivision(nseg1);
428 MUON->SetSegmentationModel(chamber-1, 1, seg21);
429//
430 AliMUONSegmentationV02 *seg22=new AliMUONSegmentationV02;
431 seg22->SetSegRadii(rseg1);
b64652f5 432// seg22->SetPadSize(0.75, 2.);
433 seg22->SetPadSize(0.6, 1.6); // smaller pad size
434// seg22->SetDAnod(3.0/3./4);
435 seg22->SetDAnod(0.20); // smaller distance between anode wires
f5e13b7c 436 seg22->SetPadDivision(nseg1);
437 MUON->SetSegmentationModel(chamber-1, 2, seg22);
438
b64652f5 439// MUON->SetResponseModel(chamber-1, response0);
440 MUON->SetResponseModel(chamber-1, responseSt1); // special response
441
f5e13b7c 442//
443//--------------------------------------------------------
de7e3024 444// Configuration for Chamber TC3/4 (Station 2) -----------
445///^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
f5e13b7c 446// Float_t rseg2[4]={23.5, 87.7, 122.4, 122.5};
447 Float_t rseg2[4]={23.5, 47.1, 87.7, 122.5};
448 Int_t nseg2[4]={4, 4, 2, 1};
449//
450 chamber=3;
451//^^^^^^^^^
452 MUON->SetNsec(chamber-1,2);
453//
454 AliMUONSegmentationV01 *seg31=new AliMUONSegmentationV01;
455 seg31->SetSegRadii(rseg2);
7dfbb987 456 seg31->SetPadSize(3.0, 0.5);
f5e13b7c 457 seg31->SetDAnod(3.0/3./4);
458 seg31->SetPadDivision(nseg2);
459 MUON->SetSegmentationModel(chamber-1, 1, seg31);
460//
461 AliMUONSegmentationV02 *seg32=new AliMUONSegmentationV02;
462 seg32->SetSegRadii(rseg2);
7dfbb987 463 seg32->SetPadSize(0.75, 2.0);
f5e13b7c 464 seg32->SetPadDivision(nseg2);
465 seg32->SetDAnod(3.0/3./4);
466
467 MUON->SetSegmentationModel(chamber-1, 2, seg32);
468
469 MUON->SetResponseModel(chamber-1, response0);
470
471 chamber=4;
472//^^^^^^^^^
473//
474 MUON->SetNsec(chamber-1,2);
475//
476 AliMUONSegmentationV01 *seg41=new AliMUONSegmentationV01;
477 seg41->SetSegRadii(rseg2);
7dfbb987 478 seg41->SetPadSize(3.0, 0.5);
f5e13b7c 479 seg41->SetDAnod(3.0/3./4);
480 seg41->SetPadDivision(nseg2);
481 MUON->SetSegmentationModel(chamber-1, 1, seg41);
482//
483 AliMUONSegmentationV02 *seg42=new AliMUONSegmentationV02;
484 seg42->SetSegRadii(rseg2);
7dfbb987 485 seg42->SetPadSize(0.75, 2.0);
f5e13b7c 486 seg42->SetPadDivision(nseg2);
487 seg42->SetDAnod(3.0/3./4);
488
489 MUON->SetSegmentationModel(chamber-1, 2, seg42);
490
491 MUON->SetResponseModel(chamber-1, response0);
492
493
494//--------------------------------------------------------
de7e3024 495// Configuration for Chamber TC5/6 (Station 3) ----------
f5e13b7c 496//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
f9f7c205 497 Int_t nseg3[4]={4, 4, 2, 1};
a083207d 498 Int_t npcb5[36] = {0,0,2,0,
499 0,0,3,0,
500 0,1,3,0,
501 0,2,2,0,
de7e3024 502 0,1,2,0,
a083207d 503 0,2,2,0,
504 0,1,3,0,
505 0,0,3,0,
506 0,0,2,0};
de7e3024 507
f9f7c205 508 Float_t shift = 1.5/2.;
3c084d9f 509 // Float_t xpos5[8] = {2., 2., 2., 42., 42., 2., 2., 2.};
a083207d 510 Float_t xpos5[9] = {2., 2., 2., 2.,32., 2., 2., 2., 2.};
511 Float_t ypos5 = -(20.+4.*(40.-2.*shift));
f5e13b7c 512
513 chamber=5;
f9f7c205 514 MUON->SetNsec(chamber-1,2);
515 AliMUONSegmentationSlat *seg51=new AliMUONSegmentationSlat;
a083207d 516 seg51->SetNSlats(9);
f9f7c205 517 seg51->SetShift(shift);
518 seg51->SetNPCBperSector(npcb5);
519 seg51->SetSlatXPositions(xpos5);
520 seg51->SetSlatYPosition(ypos5);
521 seg51->SetPadSize(10.,0.5);
522 seg51->SetDAnod(0.25);
523 seg51->SetPadDivision(nseg3);
524 MUON->SetSegmentationModel(chamber-1, 1, seg51);
525
526 AliMUONSegmentationSlatN *seg52=new AliMUONSegmentationSlatN;
a083207d 527 seg52->SetNSlats(9);
f9f7c205 528 seg52->SetShift(shift);
529 seg52->SetNPCBperSector(npcb5);
530 seg52->SetSlatXPositions(xpos5);
531 seg52->SetSlatYPosition(ypos5);
3f853d10 532 seg52->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f9f7c205 533 seg52->SetDAnod(0.25);
534 seg52->SetPadDivision(nseg3);
535 MUON->SetSegmentationModel(chamber-1, 2, seg52);
536 MUON->SetResponseModel(chamber-1, response0);
f5e13b7c 537
538 chamber=6;
f9f7c205 539 MUON->SetNsec(chamber-1,2);
540 AliMUONSegmentationSlat *seg61=new AliMUONSegmentationSlat;
a083207d 541 seg61->SetNSlats(9);
f9f7c205 542 seg61->SetShift(shift);
543 seg61->SetNPCBperSector(npcb5);
544 seg61->SetSlatXPositions(xpos5);
545 seg61->SetSlatYPosition(ypos5);
546 seg61->SetPadSize(10.,0.5);
547 seg61->SetDAnod(0.25);
548 seg61->SetPadDivision(nseg3);
549 MUON->SetSegmentationModel(chamber-1, 1, seg61);
550
551 AliMUONSegmentationSlatN *seg62=new AliMUONSegmentationSlatN;
a083207d 552 seg62->SetNSlats(9);
f9f7c205 553 seg62->SetShift(shift);
554 seg62->SetNPCBperSector(npcb5);
555 seg62->SetSlatXPositions(xpos5);
556 seg62->SetSlatYPosition(ypos5);
3f853d10 557 seg62->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f9f7c205 558 seg62->SetDAnod(0.25);
559 seg62->SetPadDivision(nseg3);
560 MUON->SetSegmentationModel(chamber-1, 2, seg62);
561 MUON->SetResponseModel(chamber-1, response0);
f5e13b7c 562
563//--------------------------------------------------------
564// Configuration for Chamber TC7/8 (Station 4) ----------
565//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
566
567 Int_t nseg4[4]={4, 4, 2, 1};
568
569 chamber=7;
570//^^^^^^^^^
571
572 MUON->SetNsec(chamber-1,2);
573//
574 AliMUONSegmentationSlat *seg71=new AliMUONSegmentationSlat;
a083207d 575 Int_t npcb7[44] = {0,0,0,3,
f9f7c205 576 0,0,2,2,
a083207d 577 0,0,3,2,
578 0,2,2,1,
579 0,2,2,1,
580 0,1,2,1,
581 0,2,2,1,
582 0,2,2,1,
583 0,0,3,2,
f9f7c205 584 0,0,2,2,
a083207d 585 0,0,0,3};
586 Float_t xpos7[11] = {2., 2., 2., 2., 2., 39.5, 2., 2., 2., 2., 2.};
f9f7c205 587 Float_t ypos7 = -(20.+5.*(40.-2.*shift));
f5e13b7c 588
f9f7c205 589 seg71->SetNSlats(11);
f5e13b7c 590 seg71->SetShift(shift);
591 seg71->SetNPCBperSector(npcb7);
f9f7c205 592 seg71->SetSlatXPositions(xpos7);
593 seg71->SetSlatYPosition(ypos7);
594
f5e13b7c 595 seg71->SetPadSize(10.,0.5);
596 seg71->SetDAnod(0.25);
597 seg71->SetPadDivision(nseg4);
598 MUON->SetSegmentationModel(chamber-1, 1, seg71);
599
600 AliMUONSegmentationSlatN *seg72=new AliMUONSegmentationSlatN;
601
602 MUON->SetSegmentationModel(chamber-1, 2, seg72);
f9f7c205 603 seg72->SetNSlats(11);
604 seg72->SetShift(shift);
f5e13b7c 605 seg72->SetNPCBperSector(npcb7);
f9f7c205 606 seg72->SetSlatXPositions(xpos7);
607 seg72->SetSlatYPosition(ypos7);
3f853d10 608 seg72->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f5e13b7c 609 seg72->SetDAnod(0.25);
610 seg72->SetPadDivision(nseg4);
611
612 MUON->SetResponseModel(chamber-1, response0);
613
614 chamber=8;
615//^^^^^^^^^
616 MUON->SetNsec(chamber-1,2);
617//
618 AliMUONSegmentationSlat *seg81=new AliMUONSegmentationSlat;
619
f9f7c205 620 seg81->SetNSlats(11);
f5e13b7c 621 seg81->SetShift(shift);
622 seg81->SetNPCBperSector(npcb7);
f9f7c205 623 seg81->SetSlatXPositions(xpos7);
624 seg81->SetSlatYPosition(ypos7);
f5e13b7c 625 seg81->SetPadSize(10.,0.5);
626 seg81->SetDAnod(0.25);
627 seg81->SetPadDivision(nseg4);
628 MUON->SetSegmentationModel(chamber-1, 1, seg81);
629
630 AliMUONSegmentationSlat *seg82=new AliMUONSegmentationSlatN;
631
632 MUON->SetSegmentationModel(chamber-1, 2, seg82);
f9f7c205 633 seg82->SetNSlats(11);
f5e13b7c 634 seg82->SetShift(shift);
635 seg82->SetNPCBperSector(npcb7);
f9f7c205 636 seg82->SetSlatXPositions(xpos7);
637 seg82->SetSlatYPosition(ypos7);
3f853d10 638 seg82->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f5e13b7c 639 seg82->SetDAnod(0.25);
640 seg82->SetPadDivision(nseg4);
641
642 MUON->SetResponseModel(chamber-1, response0);
643
644
645//--------------------------------------------------------
646// Configuration for Chamber TC9/10 (Station 5) ---------
647//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
648 chamber=9;
649//^^^^^^^^^
f9f7c205 650
f5e13b7c 651 MUON->SetNsec(chamber-1,2);
652//
f9f7c205 653 AliMUONSegmentationSlat *seg91=new AliMUONSegmentationSlat;
a083207d 654 Int_t npcb9[52] = {0,0,0,3,
f9f7c205 655 0,0,0,4,
656 0,0,2,3,
657 0,0,3,3,
658 0,2,2,2,
a083207d 659 0,2,2,2,
660 0,1,2,2,
661 0,2,2,2,
f9f7c205 662 0,2,2,2,
663 0,0,3,3,
664 0,0,2,3,
665 0,0,0,4,
a083207d 666 0,0,0,3};
f9f7c205 667
3c084d9f 668 // Float_t xpos9[13] = {2., 2., 2., 2., 2., 2., 39.5 , 2., 2., 2., 2., 2., 2.};
a083207d 669 Float_t xpos9[13] = {2., 2., 2., 2., 2., 2., 39.5, 2., 2., 2., 2., 2., 2.};
f9f7c205 670 Float_t ypos9 = -(20.+6.*(40.-2.*shift));
671
672 seg91->SetNSlats(13);
673 seg91->SetShift(shift);
674 seg91->SetNPCBperSector(npcb9);
675 seg91->SetSlatXPositions(xpos9);
676 seg91->SetSlatYPosition(ypos9);
f5e13b7c 677 seg91->SetPadSize(10.,0.5);
678 seg91->SetDAnod(0.25);
679 seg91->SetPadDivision(nseg4);
680 MUON->SetSegmentationModel(chamber-1, 1, seg91);
681
f9f7c205 682 AliMUONSegmentationSlatN *seg92=new AliMUONSegmentationSlatN;
f5e13b7c 683
684 MUON->SetSegmentationModel(chamber-1, 2, seg92);
f9f7c205 685 seg92->SetNSlats(13);
686 seg92->SetShift(shift);
687 seg92->SetNPCBperSector(npcb9);
688 seg92->SetSlatXPositions(xpos9);
689 seg92->SetSlatYPosition(ypos9);
3f853d10 690 seg92->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f9f7c205 691 seg92->SetDAnod(0.25);
692 seg92->SetPadDivision(nseg4);
f5e13b7c 693
694 MUON->SetResponseModel(chamber-1, response0);
695
696 chamber=10;
697//^^^^^^^^^
698 MUON->SetNsec(chamber-1,2);
f9f7c205 699//
700 AliMUONSegmentationSlat *seg101=new AliMUONSegmentationSlat;
701
702 seg101->SetNSlats(13);
703 seg101->SetShift(shift);
704 seg101->SetNPCBperSector(npcb9);
705 seg101->SetSlatXPositions(xpos9);
706 seg101->SetSlatYPosition(ypos9);
707 seg101->SetPadSize(10.,0.5);
f5e13b7c 708 seg101->SetDAnod(0.25);
f9f7c205 709 seg101->SetPadDivision(nseg4);
f5e13b7c 710 MUON->SetSegmentationModel(chamber-1, 1, seg101);
711
f9f7c205 712 AliMUONSegmentationSlatN *seg102=new AliMUONSegmentationSlatN;
713
f5e13b7c 714 MUON->SetSegmentationModel(chamber-1, 2, seg102);
f9f7c205 715 seg102->SetNSlats(13);
716 seg102->SetShift(shift);
717 seg102->SetNPCBperSector(npcb9);
718 seg102->SetSlatXPositions(xpos9);
719 seg102->SetSlatYPosition(ypos9);
3f853d10 720 seg102->SetPadSize(1., 10.); // DeltaX(non bending) = 2 * DeltaY(bending)
f9f7c205 721 seg102->SetDAnod(0.25);
722 seg102->SetPadDivision(nseg4);
f5e13b7c 723
724 MUON->SetResponseModel(chamber-1, response0);
725
726//--------------------------------------------------------
de7e3024 727// Configuration for Trigger Stations --------------------
f5e13b7c 728//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9e8ff550 729// Cluster-size off
f5e13b7c 730 AliMUONResponseTrigger* responseTrigger0 = new AliMUONResponseTrigger;
9e8ff550 731// Cluster-size on
732// AliMUONResponseTriggerV1* responseTrigger0 = new AliMUONResponseTriggerV1;
f5e13b7c 733
734 chamber=11;
735 MUON->SetNsec(chamber-1,2);
736 AliMUONSegmentationTriggerX *seg111=new AliMUONSegmentationTriggerX;
737 MUON->SetSegmentationModel(chamber-1, 1, seg111);
738 AliMUONSegmentationTriggerY *seg112=new AliMUONSegmentationTriggerY;
739 MUON->SetSegmentationModel(chamber-1, 2, seg112);
740
741 MUON->SetResponseModel(chamber-1, responseTrigger0);
742
743
744 chamber=12;
745 MUON->SetNsec(chamber-1,2);
746 AliMUONSegmentationTriggerX *seg121=new AliMUONSegmentationTriggerX;
747 MUON->SetSegmentationModel(chamber-1, 1, seg121);
748 AliMUONSegmentationTriggerY *seg122=new AliMUONSegmentationTriggerY;
749 MUON->SetSegmentationModel(chamber-1, 2, seg122);
750
751 MUON->SetResponseModel(chamber-1, responseTrigger0);
3c084d9f 752 chamber=13;
f5e13b7c 753 MUON->SetNsec(chamber-1,2);
754 AliMUONSegmentationTriggerX *seg131=new AliMUONSegmentationTriggerX;
755 MUON->SetSegmentationModel(chamber-1, 1, seg131);
756 AliMUONSegmentationTriggerY *seg132=new AliMUONSegmentationTriggerY;
757 MUON->SetSegmentationModel(chamber-1, 2, seg132);
758 MUON->SetResponseModel(chamber-1, responseTrigger0);
759
760 chamber=14;
761 MUON->SetNsec(chamber-1,2);
762 AliMUONSegmentationTriggerX *seg141=new AliMUONSegmentationTriggerX;
763 MUON->SetSegmentationModel(chamber-1, 1, seg141);
764 AliMUONSegmentationTriggerY *seg142=new AliMUONSegmentationTriggerY;
765 MUON->SetSegmentationModel(chamber-1, 2, seg142);
766
767 MUON->SetResponseModel(chamber-1, responseTrigger0);
768
769}
770
771}
772
773
774
775
776