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