add NaN trap to linux version
[u/mrichter/AliRoot.git] / RICH / Config.C
CommitLineData
e32e4cb8 1enum gentype_t {hijing, gun, box, pythia, param, cocktail, fluka, halo, ntuple, scan, doublescan};
2
778ee09b 3gentype_t gentype=gun;
4ntracks=1;
e32e4cb8 5
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;
9fbca8fc 17
18geant3->Grndmq(0,0,5," ");
e32e4cb8 19
20//=======================================================================
21// ******* GEANT STEERING parameters FOR ALICE SIMULATION *******
22geant3->SetTRIG(1); //Number of events to be processed
23geant3->SetSWIT(4,100);
24geant3->SetDEBU(0,0,1);
25//geant3->SetSWIT(2,2);
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(1);
36geant3->SetHADR(3); //Select pure GEANH (HADR 1) or GEANH/NUCRIN (HADR 3)
37geant3->SetLOSS(1);
38geant3->SetMULS(1);
39geant3->SetRAYL(0);
40geant3->SetAUTO(1); //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-5,5.e-5, 1.e-3, 1.e-4, cut, cut, cut, cut, cut, cut, tofmax);
47
48//
49//=======================================================================
50// ************* STEERING parameters FOR ALICE SIMULATION **************
51// --- Specify event type to be tracked through the ALICE setup
52// --- All positions are in cm, angles in degrees, and P and E in GeV
53
54 switch(gentype)
55 {
56 case gun:
57//*********************************************
58// Example for Fixed Particle Gun *
59//*********************************************
60 AliGenFixed *gener = new AliGenFixed(ntracks);
61 gener->SetMomentum(3);
62 gener->SetPhiRange(90);
63 gener->SetThetaRange(90);
64 gener->SetOrigin(0,0,0); //vertex position
65 gener->SetPart(kPiPlus); //GEANT particle type
66 break;
67 case box:
68//*********************************************
69// Example for Moving Particle Gun *
70//*********************************************
71 AliGenBox *gener = new AliGenBox(ntracks);
72 gener->SetMomentumRange(3,3);
778ee09b 73 gener->SetPhiRange(85,85);
74 gener->SetThetaRange(85,85);
e32e4cb8 75 gener->SetOrigin(0,0,0);
aee8290b 76 gener->SetVertexSmear(kPerTrack);
e32e4cb8 77 //vertex position
78 gener->SetSigma(1.8, 1.8,0); //Sigma in (X,Y,Z) (cm) on IP position
79 gener->SetPart(kPiPlus); //GEANT particle type
80 break;
81 case scan:
82//*********************************************
83// Scanning on a grid *
84//*********************************************
85 AliGenScan *gener = new AliGenScan(-1);
06a0df24 86 gener->SetMomentumRange(3,3);
e32e4cb8 87 gener->SetPhiRange(90,90);
778ee09b 88 gener->SetThetaRange(95,95);
e32e4cb8 89 //vertex position
06a0df24 90 gener->SetSigma(0,0,0); //Sigma in (X,Y,Z) (cm) on IP position
91 gener->SetPart(kPiPlus);
778ee09b 92 gener->SetRange(1, 0, 0, 1, 480, 480, 1, 0, 0);
e32e4cb8 93 break;
94 case doublescan:
95//*********************************************
96// Scanning on a grid *
97//*********************************************
98 AliGenDoubleScan *gener = new AliGenDoubleScan(-1);
06a0df24 99 gener->SetMomentumRange(3,3);
e32e4cb8 100 gener->SetPhiRange(0,360);
101 gener->SetThetaRange(0,0);
102 //vertex position
06a0df24 103 gener->SetSigma(0,0,0); //Sigma in (X,Y,Z) (cm) on IP position
104 gener->SetPart(kPiPlus);
105 gener->SetRange(20, -60, 60, 1, 480, 480, 20, -60, 60);
e32e4cb8 106 gener->SetDistance(1);
107
108 break;
109
110 case hijing:
111 AliGenHIJINGpara *gener = new AliGenHIJINGpara(ntracks);
112 gener->SetMomentumRange(0,999);
113 gener->SetPhiRange(0,360);
114 gener->SetThetaRange(.77,179.23);
115 gener->SetOrigin(0,0,0); //vertex position
116 gener->SetSigma(0,0,5.6); //Sigma in (X,Y,Z) (cm) on IP position
117 break;
118
119 case pythia:
120//********************************************
121// Example for Charm Production with Pythia *
122//********************************************
123
124 AliGenPythia *gener = new AliGenPythia(ntracks);
125 gener->SetMomentumRange(0,999);
126 gener->SetPhiRange(0,360);
127 gener->SetThetaRange(0., 180.);
128 gener->SetYRange(-10,10);
129 gener->SetPtRange(0,100);
130 gener->SetOrigin(0,0,0); // vertex position
9fbca8fc 131 gener->SetVertexSmear(perEvent);
e32e4cb8 132 gener->SetSigma(0,0,5.6); // Sigma in (X,Y,Z) (cm) on IP position
133// gener->SetStrucFunc(DO_Set_1);
134 gener->SetProcess(mb);
135 gener->SetEnergyCMS(5500.);
136 break;
137
138 case param:
139//*******************************************************
140// Example for J/psi Production from Parameterisation *
141//*******************************************************
142 AliGenParam *gener = new AliGenParam(178,Eta,
143 AliGenPHOSlib::GetPt(Eta),
144 AliGenPHOSlib::GetY(Eta),
145 AliGenPHOSlib::GetIp(Eta) );
146
147 gener->SetMomentumRange(0,999);
148 gener->SetPhiRange(0,360);
149 gener->SetYRange(2.5,4);
150 gener->SetThetaRange(2,9);
151 gener->SetPtRange(0,10);
152 gener->SetOrigin(0,0,0); //vertex position
153 gener->SetSigma(0,0,0); //Sigma in (X,Y,Z) (cm) on IP position
154 gener->SetCutOnChild(1);
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(9);
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/dtujet93.root");
9fbca8fc 180 gener->SetVertexSmear(perEvent);
e32e4cb8 181 gener->SetTrackingFlag(1);
182 break;
183
184 case halo:
185//*******************************************************
186// Example for Tunnel Halo Source *
187//*******************************************************
188 AliGenHalo *gener = new AliGenHalo(ntracks);
189 gener->SetFileName("/h1/morsch/marsip/marsip5.mu");
190 break;
191
192 case cocktail:
193//*******************************************************
194// Example for a Cocktail *
195//*******************************************************
196 AliGenCocktail *gener = new AliGenCocktail();
197 gener->SetMomentumRange(0,10);
198 gener->SetPhiRange(0,360);
199 gener->SetThetaRange(45.,135);
200
201 pions = new AliGenParam(100, pion_p);
202// kaons = new AliGenParam(10 , kaon_p);
203// protons = new AliGenParam(10 , proton_p);
204 gener->AddGenerator(pions , "Pions" , 100);
205// gener->AddGenerator(kaons , "Kaons" , 10);
206// gener->AddGenerator(protons, "Protons", 10);
207//
208// test
209//
210
211 Float_t p2(Float_t);
212 Float_t (*f1)(Float_t);
213 Double_t (*f2)(Double_t);
214
215
216
217
218 Float_t p2(Float_t x)
219 {
220 return x*x;
221 }
222 f1=p2;
223 Float_t x = TMath::Sqrt(2);
224
225 f1=TMath::Sqrt;
226
227 printf("\n Result %f %f \n", (*f1)(2.), TMath::Sqrt(2));
228
229
230 break;
231 }
232
233// Activate this line if you want the vertex smearing to happen
234// track by track
235//
aee8290b 236gener->SetVertexSmear(kPerTrack);
e32e4cb8 237gener->Init();
237c933d 238gAlice->SetField(0,2); //Specify maximum magnetic field in Tesla (neg. ==> default field)
e32e4cb8 239
240Int_t iMAG=0;
241Int_t iITS=0;
242Int_t iTPC=0;
243Int_t iTOF=0;
244Int_t iRICH=1;
245Int_t iZDC=0;
246Int_t iCASTOR=0;
247Int_t iTRD=0;
248Int_t iABSO=0;
249Int_t iDIPO=0;
250Int_t iHALL=0;
251Int_t iFRAME=0;
252Int_t iSHIL=0;
253Int_t iPIPE=0;
254Int_t iFMD=0;
255Int_t iMUON=0;
256Int_t iPHOS=0;
257Int_t iPMD=0;
06a0df24 258Int_t iSTART=0;
e32e4cb8 259
260//=================== Alice BODY parameters =============================
261AliBODY *BODY = new AliBODY("BODY","Alice envelop");
262
263
264if(iMAG) {
265//=================== MAG parameters ============================
266// --- Start with Magnet since detector layouts may be depending ---
267// --- on the selected Magnet dimensions ---
268AliMAG *MAG = new AliMAG("MAG","Magnet");
269}
270
06a0df24 271
272if(iABSO) {
273//=================== ABSO parameters ============================
274AliABSO *ABSO = new AliABSOv0("ABSO","Muon Absorber");
275}
276
277if(iDIPO) {
278//=================== DIPO parameters ============================
279
280AliDIPO *DIPO = new AliDIPOv2("DIPO","Dipole version 2");
281}
282
283if(iHALL) {
284//=================== HALL parameters ============================
285
286AliHALL *HALL = new AliHALL("HALL","Alice Hall");
287}
288
289
e32e4cb8 290if(iFRAME) {
291//=================== FRAME parameters ============================
06a0df24 292
e32e4cb8 293AliFRAME *FRAME = new AliFRAMEv1("FRAME","Space Frame");
06a0df24 294
295}
296
297if(iSHIL) {
298//=================== SHIL parameters ============================
299
300AliSHIL *SHIL = new AliSHILv0("SHIL","Shielding");
301}
302
303
304if(iPIPE) {
305//=================== PIPE parameters ============================
306
307AliPIPE *PIPE = new AliPIPEv0("PIPE","Beam Pipe");
e32e4cb8 308}
309
06a0df24 310
e32e4cb8 311if(iITS) {
312//=================== ITS parameters ============================
313//
314// EUCLID is a flag to output (=1) both geometry and media to two ASCII files
315// (called by default ITSgeometry.euc and ITSgeometry.tme) in a format
316// understandable to the CAD system EUCLID. The default (=0) means that you
317// dont want to use this facility.
318//
9fbca8fc 319AliITS *ITS = new AliITSvn("ITS","normal ITS");
06a0df24 320ITS->SetEUCLID(0);
e32e4cb8 321}
322
06a0df24 323
e32e4cb8 324if(iTPC) {
325//============================ TPC parameters ================================
326// --- This allows the user to specify sectors for the SLOW (TPC geometry 2)
327// --- Simulator. SecAL (SecAU) <0 means that ALL lower (upper)
328// --- sectors are specified, any value other than that requires at least one
329// --- sector (lower or upper)to be specified!
330// --- Reminder: sectors 1-24 are lower sectors (1-12 -> z>0, 13-24 -> z<0)
331// --- sectors 25-72 are the upper ones (25-48 -> z>0, 49-72 -> z<0)
332// --- SecLows - number of lower sectors specified (up to 6)
333// --- SecUps - number of upper sectors specified (up to 12)
334// --- Sens - sensitive strips for the Slow Simulator !!!
335// --- This does NOT work if all S or L-sectors are specified, i.e.
336// --- if SecAL or SecAU < 0
337//
338//
339//-----------------------------------------------------------------------------
340
06a0df24 341 gROOT->LoadMacro("SetTPCParam.C");
342 AliTPCParam *param = SetTPCParam();
9fbca8fc 343 AliTPC *TPC = new AliTPCvn("TPC","Normal TPC"); //v1 is default
06a0df24 344 TPC->SetParam(param); // pass the parameter object to the TPC
e32e4cb8 345
346// set gas mixture
347
348TPC->SetGasMixt(2,20,10,-1,0.9,0.1,0.);
06a0df24 349TPC->SetSecAL(4);
350TPC->SetSecAU(4);
351TPC->SetSecLows(1, 2, 3, 19, 20, 21);
352TPC->SetSecUps(37, 38, 39, 37+18, 38+18, 39+18, -1, -1, -1, -1, -1, -1);
e32e4cb8 353TPC->SetSens(1);
06a0df24 354
355if (TPC->IsVersion()==1) param->Write(param->GetTitle());
e32e4cb8 356}
357
358if(iTOF) {
359//=================== TOF parameters ============================
360AliTOF *TOF = new AliTOFvn("TOF","normal TOF");
361}
362
363if(iRICH) {
364//=================== RICH parameters ===========================
778ee09b 365 AliRICH *RICH = new AliRICHv2("RICH","normal RICH");
e32e4cb8 366
367//
368// Version 0
369// Default Segmentation
370 AliRICHSegmentationV0* SegmentationV0 = new AliRICHSegmentationV0;
06a0df24 371//
372// Segmentation parameters
e32e4cb8 373 SegmentationV0->SetPadSize(0.84,0.80);
374 SegmentationV0->SetDAnod(0.84/2);
778ee09b 375
06a0df24 376// Geometry parameters
237c933d 377 AliRICHGeometry* GeometryV0 = new AliRICHGeometry;
06a0df24 378 GeometryV0->SetGapThickness(8);
e32e4cb8 379 GeometryV0->SetProximityGapThickness(.4);
380 GeometryV0->SetQuartzLength(131);
381 GeometryV0->SetQuartzWidth(126.2);
382 GeometryV0->SetQuartzThickness(.5);
383 GeometryV0->SetOuterFreonLength(131);
384 GeometryV0->SetOuterFreonWidth(40.3);
385 GeometryV0->SetInnerFreonLength(131);
386 GeometryV0->SetInnerFreonWidth(40.3);
778ee09b 387 GeometryV0->SetFreonThickness(1.5);
388
06a0df24 389// Response parameters
e32e4cb8 390 AliRICHResponseV0* Rresponse0 = new AliRICHResponseV0;
391 Rresponse0->SetSigmaIntegration(5.);
9fbca8fc 392 Rresponse0->SetChargeSlope(27.);
e32e4cb8 393 Rresponse0->SetChargeSpread(0.18, 0.18);
9fbca8fc 394 Rresponse0->SetMaxAdc(4096);
395 Rresponse0->SetAlphaFeedback(0.036);
e32e4cb8 396 Rresponse0->SetEIonisation(26.e-9);
397 Rresponse0->SetSqrtKx3(0.77459667);
398 Rresponse0->SetKx2(0.962);
399 Rresponse0->SetKx4(0.379);
400 Rresponse0->SetSqrtKy3(0.77459667);
401 Rresponse0->SetKy2(0.962);
402 Rresponse0->SetKy4(0.379);
403 Rresponse0->SetPitch(0.25);
778ee09b 404
405
e32e4cb8 406 for (Int_t i=0; i<7; i++) {
407 RICH->SetGeometryModel(i,GeometryV0);
408 RICH->SetSegmentationModel(i, SegmentationV0);
409 RICH->SetResponseModel(i, Rresponse0);
410 RICH->SetNsec(i,1);
778ee09b 411 }
412 RICH->SetDebugLevel(0);
e32e4cb8 413}
414
06a0df24 415
e32e4cb8 416if(iZDC) {
417//=================== ZDC parameters ============================
418
419AliZDC *ZDC = new AliZDCv1("ZDC","normal ZDC");
420}
421
422if(iCASTOR) {
423//=================== CASTOR parameters ============================
424
425AliCASTOR *CASTOR = new AliCASTORv1("CASTOR","normal CASTOR");
426}
427
428if(iTRD) {
429//=================== TRD parameters ============================
430
06a0df24 431AliTRD *TRD = new AliTRDvn("TRD","TRD version 0");
432// Select the gas mixture (0: 97% Xe + 3% isobutane, 1: 90% Xe + 10% CO2)
433TRD->SetGasMix(0);
e32e4cb8 434}
435
e32e4cb8 436if(iFMD) {
437//=================== FMD parameters ============================
438
439AliFMD *FMD = new AliFMDv1("FMD","normal FMD");
440}
441
442if(iMUON) {
443//=================== MUON parameters ===========================
444
445AliMUON *MUON = new AliMUONv0("MUON","normal MUON");
446
447 MUON->SetMaxStepGas(0.1);
448 MUON->SetMaxStepAlu(0.1);
449//
450// Version 0
451//
452// First define the number of planes that are segmented (1 or 2) by a call
453// to SetNsec.
454// Then chose for each chamber (chamber plane) the segmentation
455// and response model.
456// They should be equal for the two chambers of each station. In a future
457// version this will be enforced.
458//
459//
460 Int_t chamber;
461 Int_t station;
462// Default response
463 AliMUONresponseV0* response0 = new AliMUONresponseV0;
464 response0->SetSqrtKx3(0.7131);
465 response0->SetKx2(1.0107);
466 response0->SetKx4(0.4036);
467 response0->SetSqrtKy3(0.7642);
468 response0->SetKy2(0.9706);
469 response0->SetKy4(0.3831);
470 response0->SetPitch(0.25);
471 response0->SetSigmaIntegration(10.);
472 response0->SetChargeSlope(50);
473 response0->SetChargeSpread(0.18, 0.18);
474 response0->SetMaxAdc(4096);
475//--------------------------------------------------------
476// Configuration for Chamber TC1/2 (Station 1) ----------
477//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
478// Float_t rseg1[4]={17.5, 55.2, 71.3, 95.5};
479 Float_t rseg1[4]={15.5, 55.2, 71.3, 95.5};
480 Int_t nseg1[4]={4, 4, 2, 1};
481//
482 chamber=1;
483//^^^^^^^^^
484 MUON->SetNsec(chamber-1,2);
485//
486 AliMUONsegmentationV01 *seg11=new AliMUONsegmentationV01;
487
488 seg11->SetSegRadii(rseg1);
489 seg11->SetPADSIZ(3, 0.5);
490 seg11->SetDAnod(3.0/3./4);
491 seg11->SetPadDivision(nseg1);
492
493 MUON->SetSegmentationModel(chamber-1, 1, seg11);
494//
495 AliMUONsegmentationV02 *seg12=new AliMUONsegmentationV02;
496 seg12->SetSegRadii(rseg1);
497 seg12->SetPADSIZ(0.75, 2.0);
498 seg12->SetDAnod(3.0/3./4);
499 seg12->SetPadDivision(nseg1);
500
501 MUON->SetSegmentationModel(chamber-1, 2, seg12);
502
503 MUON->SetResponseModel(chamber-1, response0);
504
505 chamber=2;
506//^^^^^^^^^
507//
508 MUON->SetNsec(chamber-1,2);
509//
510 AliMUONsegmentationV01 *seg21=new AliMUONsegmentationV01;
511 seg21->SetSegRadii(rseg1);
512 seg21->SetPADSIZ(3, 0.5);
513 seg21->SetDAnod(3.0/3./4);
514 seg21->SetPadDivision(nseg1);
515 MUON->SetSegmentationModel(chamber-1, 1, seg21);
516//
517 AliMUONsegmentationV02 *seg22=new AliMUONsegmentationV02;
518 seg22->SetSegRadii(rseg1);
519 seg22->SetPADSIZ(0.75, 2.);
520 seg22->SetDAnod(3.0/3./4);
521 seg22->SetPadDivision(nseg1);
522 MUON->SetSegmentationModel(chamber-1, 2, seg22);
523
524 MUON->SetResponseModel(chamber-1, response0);
525//
526//--------------------------------------------------------
527// Configuration for Chamber TC3/4 -----------------------
528//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
529// Float_t rseg2[4]={23.5, 47.1, 87.7, 122.5};
530 Float_t rseg2[4]={21.5, 47.1, 87.7, 122.5};
531 Int_t nseg2[4]={4, 4, 2, 1};
532//
533 chamber=3;
534//^^^^^^^^^
535 MUON->SetNsec(chamber-1,2);
536//
537 AliMUONsegmentationV01 *seg31=new AliMUONsegmentationV01;
538 seg31->SetSegRadii(rseg2);
539 seg31->SetPADSIZ(3, 0.5);
540 seg31->SetDAnod(3.0/3./4);
541 seg31->SetPadDivision(nseg2);
542 MUON->SetSegmentationModel(chamber-1, 1, seg31);
543//
544 AliMUONsegmentationV02 *seg32=new AliMUONsegmentationV02;
545 seg32->SetSegRadii(rseg2);
546 seg32->SetPADSIZ(0.75, 2.);
547 seg32->SetPadDivision(nseg2);
548 seg32->SetDAnod(3.0/3./4);
549
550 MUON->SetSegmentationModel(chamber-1, 2, seg32);
551
552 MUON->SetResponseModel(chamber-1, response0);
553
554 chamber=4;
555//^^^^^^^^^
556//
557 MUON->SetNsec(chamber-1,2);
558//
559 AliMUONsegmentationV01 *seg41=new AliMUONsegmentationV01;
560 seg41->SetSegRadii(rseg2);
561 seg41->SetPADSIZ(3, 0.5);
562 seg41->SetDAnod(3.0/3./4);
563 seg41->SetPadDivision(nseg2);
564 MUON->SetSegmentationModel(chamber-1, 1, seg41);
565//
566 AliMUONsegmentationV02 *seg42=new AliMUONsegmentationV02;
567 seg42->SetSegRadii(rseg2);
568 seg42->SetPADSIZ(0.75, 2.);
569 seg42->SetPadDivision(nseg2);
570 seg42->SetDAnod(3.0/3./4);
571
572 MUON->SetSegmentationModel(chamber-1, 2, seg42);
573
574 MUON->SetResponseModel(chamber-1, response0);
575
576
577//--------------------------------------------------------
578// Configuration for Chamber TC5/6 -----------------------
579//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
580/*
581 seg5 = new AliMUONsegmentationV1;
582 AliMUONresponseV0* response5 = new AliMUONresponseV0;
583 // K3 = 0.62
584 response5->SetSqrtKx3(0.78740079);
585 response5->SetKx2(0.95237319); // 0.5 * kPI * (1- 0.5*sqrtky3 )
586 response5->SetKx4(0.37480633); // 0.25/TMath::ATan(sqrtkx3)
587 // K3 = 0.55
588 response5->SetSqrtKy3(0.74161985);
589 response5->SetKy2(0.98832946);
590 response5->SetKy4(0.39177817);
591 response5->SetPitch(0.325);
592 response5->SetSigmaIntegration(10.);
593 response5->SetChargeSlope(50);
594 response5->SetChargeSpread(0.4, 0.4);
595 response5->SetMaxAdc(4096);
596
597 chamber=5;
598 MUON->SetNsec(chamber-1,1);
599 MUON->SetSegmentationModel(chamber-1, 1, seg5);
600 MUON->SetResponseModel(chamber-1, response5);
601
602 chamber=6;
603 MUON->SetNsec(chamber-1,1);
604 MUON->SetSegmentationModel(chamber-1, 1, seg5);
605 MUON->SetResponseModel(chamber-1, response5);
606//
607// Station 3
608 station=3;
609 MUON->SetPADSIZ(station, 1, 0.975, 0.55);
610*/
611
612 chamber=5;
613//^^^^^^^^^
614 MUON->SetNsec(chamber-1,2);
615//
616 AliMUONsegmentationV0 *seg51=new AliMUONsegmentationV0;
617 seg51->SetPADSIZ(0.75, 0.5);
618 seg51->SetDAnod(3.0/3./4);
619 MUON->SetSegmentationModel(chamber-1, 1, seg51);
620//
621 AliMUONsegmentationV0 *seg52=new AliMUONsegmentationV0;
622 seg52->SetPADSIZ(0.5,0.75);
623 seg52->SetDAnod(3.0/3./4);
624 MUON->SetSegmentationModel(chamber-1, 2, seg52);
625
626 MUON->SetResponseModel(chamber-1, response0);
627
628 chamber=6;
629//^^^^^^^^^
630 MUON->SetNsec(chamber-1,2);
631//
632 AliMUONsegmentationV0 *seg61=new AliMUONsegmentationV0;
633 seg61->SetPADSIZ(0.75, 0.5);
634 seg61->SetDAnod(3.0/3./4);
635 MUON->SetSegmentationModel(chamber-1, 1, seg61);
636//
637 AliMUONsegmentationV0 *seg62=new AliMUONsegmentationV0;
638 seg62->SetPADSIZ(0.5,0.75);
639 seg62->SetDAnod(3.0/3./4);
640 MUON->SetSegmentationModel(chamber-1, 2, seg62);
641
642 MUON->SetResponseModel(chamber-1, response0);
643
644//--------------------------------------------------------
645// Configuration for Chamber TC7/8 (Station 4) ----------
646//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
647
648 Int_t nseg4[4]={4, 4, 2, 1};
649
650 chamber=7;
651//^^^^^^^^^
652 MUON->SetNsec(chamber-1,2);
653//
654 AliMUONsegmentationV04 *seg71=new AliMUONsegmentationV04;
655 seg71->SetPADSIZ(10.,0.5);
656 seg71->SetDAnod(0.25);
657 seg71->SetPadDivision(nseg4);
658 MUON->SetSegmentationModel(chamber-1, 1, seg71);
659
660 AliMUONsegmentationV05 *seg72=new AliMUONsegmentationV05;
661 seg72->SetPADSIZ(1,10);
662 seg72->SetDAnod(0.25);
663 seg72->SetPadDivision(nseg4);
664 MUON->SetSegmentationModel(chamber-1, 2, seg72);
665
666 MUON->SetResponseModel(chamber-1, response0);
667
668 chamber=8;
669//^^^^^^^^^
670 MUON->SetNsec(chamber-1,2);
671 AliMUONsegmentationV04 *seg81=new AliMUONsegmentationV04;
672 seg81->SetPADSIZ(10., 0.5);
673 seg81->SetPadDivision(nseg4);
674 seg81->SetDAnod(0.25);
675 MUON->SetSegmentationModel(chamber-1, 1, seg81);
676
677 AliMUONsegmentationV05 *seg82=new AliMUONsegmentationV05;
678 seg82->SetPADSIZ(1, 10);
679 seg82->SetPadDivision(nseg4);
680 seg82->SetDAnod(0.25);
681 MUON->SetSegmentationModel(chamber-1, 2, seg82);
682
683 MUON->SetResponseModel(chamber-1, response0);
684//--------------------------------------------------------
685// Configuration for Chamber TC9/10 (Station 5) ---------
686//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
687 chamber=9;
688//^^^^^^^^^
689 MUON->SetNsec(chamber-1,2);
690//
691 AliMUONsegmentationV04 *seg91=new AliMUONsegmentationV04;
692 seg91->SetPADSIZ(10.,0.5);
693 seg91->SetDAnod(0.25);
694 seg91->SetPadDivision(nseg4);
695 MUON->SetSegmentationModel(chamber-1, 1, seg91);
696
697 AliMUONsegmentationV05 *seg92=new AliMUONsegmentationV05;
698 seg92->SetPADSIZ(1,10);
699 seg92->SetDAnod(0.25);
700 seg92->SetPadDivision(nseg4);
701
702 MUON->SetSegmentationModel(chamber-1, 2, seg92);
703
704 MUON->SetResponseModel(chamber-1, response0);
705
706 chamber=10;
707//^^^^^^^^^
708 MUON->SetNsec(chamber-1,2);
709 AliMUONsegmentationV04 *seg101=new AliMUONsegmentationV04;
710 seg101->SetPADSIZ(10., 0.5);
711 seg101->SetPadDivision(nseg4);
712 seg101->SetDAnod(0.25);
713 MUON->SetSegmentationModel(chamber-1, 1, seg101);
714
715 AliMUONsegmentationV05 *seg102=new AliMUONsegmentationV05;
716 seg102->SetPADSIZ(1,10);
717 seg102->SetPadDivision(nseg4);
718 seg102->SetDAnod(0.25);
719 MUON->SetSegmentationModel(chamber-1, 2, seg102);
720
721 MUON->SetResponseModel(chamber-1, response0);
722//--------------------------------------------------------
723// Configuration for Trigger staions ---------------------
724// (not yet used/implemented) ----------------------------
725//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
726
727 chamber=11;
728 MUON->SetNsec(chamber-1,1);
729 AliMUONsegmentationV0 *seg1112=new AliMUONsegmentationV0;
730 seg1112->SetDAnod(0.51/3.);
731
732 MUON->SetSegmentationModel(chamber-1, 1, seg1112);
733 MUON->SetResponseModel(chamber-1, response0);
734
735 chamber=12;
736 MUON->SetNsec(chamber-1,1);
737 MUON->SetSegmentationModel(chamber-1, 1, seg1112);
738 MUON->SetResponseModel(chamber-1, response0);
739//
740// Trigger Station 1
741 station=6;
742 MUON->SetPADSIZ(station, 1, 0.75, 0.5);
743
744 chamber=13;
745 MUON->SetNsec(chamber-1,1);
746 AliMUONsegmentationV0 *seg1314=new AliMUONsegmentationV0;
747 seg1314->SetDAnod(0.51/3.);
748
749 MUON->SetSegmentationModel(chamber-1, 1, seg1314);
750 MUON->SetResponseModel(chamber-1, response0);
751
752 chamber=14;
753 MUON->SetNsec(chamber-1,1);
754 MUON->SetSegmentationModel(chamber-1, 1, seg1314);
755 MUON->SetResponseModel(chamber-1, response0);
756//
757// Trigger Station 2
758 station=7;
759 MUON->SetPADSIZ(station, 1, 0.75, 0.5);
760}
761
e32e4cb8 762//=================== PHOS parameters ===========================
763
06a0df24 764if(iPHOS) {
765 AliPHOS *PHOS = new AliPHOSv0("PHOS","GPS2");
e32e4cb8 766}
767
06a0df24 768
e32e4cb8 769if(iPMD) {
770//=================== PMD parameters ============================
771
06a0df24 772AliPMD *PMD = new AliPMDv0("PMD","normal PMD");
e32e4cb8 773PMD->SetPAR(1., 1., 0.8, 0.02);
06a0df24 774PMD->SetIN(6., 18., -580., 27., 27.);
e32e4cb8 775PMD->SetGEO(0.0, 0.2, 4.);
06a0df24 776PMD->SetPadSize(0.8, 1.0, 1.0, 1.5);
e32e4cb8 777
06a0df24 778}
e32e4cb8 779
06a0df24 780if(iSTART) {
781//=================== START parameters ============================
782AliSTART *START = new AliSTARTv0("START","START Detector");
783}
e32e4cb8 784
06a0df24 785
786}