Deviate the error of makedepend
[u/mrichter/AliRoot.git] / macros / Config.C
CommitLineData
fe4da5cc 1void Config()
2{
3
b13db077 4new AliGeant3("C++ Interface to Geant3");
fe4da5cc 5
6//=======================================================================
7// Create the output file
8
9TFile *rootfile = new TFile("galice.root","recreate");
10rootfile->SetCompressionLevel(2);
11TGeant3 *geant3 = (TGeant3*)gMC;
12
13//=======================================================================
14// ******* GEANT STEERING parameters FOR ALICE SIMULATION *******
15geant3->SetTRIG(1); //Number of events to be processed
16geant3->SetSWIT(4,10);
17geant3->SetDEBU(0,0,1);
18//geant3->SetSWIT(2,2);
19geant3->SetDCAY(1);
20geant3->SetPAIR(1);
21geant3->SetCOMP(1);
22geant3->SetPHOT(1);
23geant3->SetPFIS(0);
24geant3->SetDRAY(0);
25geant3->SetANNI(1);
26geant3->SetBREM(1);
27geant3->SetMUNU(1);
28geant3->SetCKOV(1);
29geant3->SetHADR(1); //Select pure GEANH (HADR 1) or GEANH/NUCRIN (HADR 3)
30geant3->SetLOSS(2);
31geant3->SetMULS(1);
32geant3->SetRAYL(1);
33geant3->SetAUTO(1); //Select automatic STMIN etc... calc. (AUTO 1) or manual (AUTO 0)
34geant3->SetABAN(0); //Restore 3.16 behaviour for abandoned tracks
35geant3->SetOPTI(2); //Select optimisation level for GEANT geometry searches (0,1,2)
8c658074 36geant3->SetERAN(5.e-7);
37
fe4da5cc 38Float_t cut = 1.e-3; // 1MeV cut by default
39Float_t tofmax = 1.e10;
40// GAM ELEC NHAD CHAD MUON EBREM MUHAB EDEL MUDEL MUPA TOFMAX
41geant3->SetCUTS(cut,cut, cut, cut, cut, cut, cut, cut, cut, cut, tofmax);
42//
43//=======================================================================
44// ************* STEERING parameters FOR ALICE SIMULATION **************
45// --- Specify event type to be tracked through the ALICE setup
46// --- All positions are in cm, angles in degrees, and P and E in GeV
47AliGenHIJINGpara *gener = new AliGenHIJINGpara(50);
48gener->SetMomentumRange(0,999);
49gener->SetPhiRange(0,360);
50gener->SetThetaRange(10,170);
51gener->SetOrigin(0,0,0); //vertex position
52gener->SetSigma(0,0,0); //Sigma in (X,Y,Z) (cm) on IP position
53gener->Init();
54//
55// Activate this line if you want the vertex smearing to happen
56// track by track
57//
58//gener->SetVertexSmear(perTrack);
59
60gAlice->SetField(-999,2); //Specify maximum magnetic field in Tesla (neg. ==> default field)
61
4326511c 62Int_t iMAG=1;
63Int_t iITS=1;
64Int_t iTPC=1;
65Int_t iTOF=1;
fe4da5cc 66Int_t iRICH=1;
44885bd6 67Int_t iZDC=0;
4326511c 68Int_t iCASTOR=1;
69Int_t iTRD=1;
70Int_t iABSO=1;
71Int_t iDIPO=1;
72Int_t iHALL=1;
73Int_t iFRAME=1;
74Int_t iSHIL=1;
75Int_t iPIPE=1;
44885bd6 76Int_t iFMD=0;
4326511c 77Int_t iMUON=1;
78Int_t iPHOS=1;
79Int_t iPMD=1;
80Int_t iSTART=1;
fe4da5cc 81
82//=================== Alice BODY parameters =============================
83AliBODY *BODY = new AliBODY("BODY","Alice envelop");
84
85
86if(iMAG) {
87//=================== MAG parameters ============================
88// --- Start with Magnet since detector layouts may be depending ---
89// --- on the selected Magnet dimensions ---
90AliMAG *MAG = new AliMAG("MAG","Magnet");
91}
92
4b11ac09 93
94if(iABSO) {
95//=================== ABSO parameters ============================
9eecec3c 96AliABSO *ABSO = new AliABSOv0("ABSO","Muon Absorber");
4b11ac09 97}
98
99if(iDIPO) {
100//=================== DIPO parameters ============================
101
102AliDIPO *DIPO = new AliDIPOv2("DIPO","Dipole version 2");
103}
104
105if(iHALL) {
106//=================== HALL parameters ============================
107
108AliHALL *HALL = new AliHALL("HALL","Alice Hall");
109}
110
111
112if(iFRAME) {
113//=================== FRAME parameters ============================
114
0d3d4381 115AliFRAME *FRAME = new AliFRAMEv1("FRAME","Space Frame");
1756964f 116
4b11ac09 117}
118
119if(iSHIL) {
120//=================== SHIL parameters ============================
121
9eecec3c 122AliSHIL *SHIL = new AliSHILv0("SHIL","Shielding");
4b11ac09 123}
124
125
126if(iPIPE) {
127//=================== PIPE parameters ============================
128
129AliPIPE *PIPE = new AliPIPEv0("PIPE","Beam Pipe");
130}
131
132
fe4da5cc 133if(iITS) {
134//=================== ITS parameters ============================
135//
136// EUCLID is a flag to output (=1) both geometry and media to two ASCII files
137// (called by default ITSgeometry.euc and ITSgeometry.tme) in a format
138// understandable to the CAD system EUCLID. The default (=0) means that you
139// dont want to use this facility.
140//
8dfe31df 141AliITS *ITS = new AliITSv5("ITS","normal ITS");
142ITS->SetEUCLID(0);
fe4da5cc 143}
144
4d68a14a 145
fe4da5cc 146if(iTPC) {
147//============================ TPC parameters ================================
148// --- This allows the user to specify sectors for the SLOW (TPC geometry 2)
149// --- Simulator. SecAL (SecAU) <0 means that ALL lower (upper)
150// --- sectors are specified, any value other than that requires at least one
151// --- sector (lower or upper)to be specified!
152// --- Reminder: sectors 1-24 are lower sectors (1-12 -> z>0, 13-24 -> z<0)
153// --- sectors 25-72 are the upper ones (25-48 -> z>0, 49-72 -> z<0)
154// --- SecLows - number of lower sectors specified (up to 6)
155// --- SecUps - number of upper sectors specified (up to 12)
156// --- Sens - sensitive strips for the Slow Simulator !!!
157// --- This does NOT work if all S or L-sectors are specified, i.e.
158// --- if SecAL or SecAU < 0
159//
160//
161//-----------------------------------------------------------------------------
162
4d68a14a 163 gROOT->LoadMacro("SetTPCParam.C");
164 AliTPCParam *param = SetTPCParam();
165 AliTPC *TPC = new AliTPCv1("TPC","Normal TPC"); //v1 is default
166 TPC->SetParam(param); // pass the parameter object to the TPC
f72f44b7 167
50e125f7 168// set gas mixture
169
170TPC->SetGasMixt(2,20,10,-1,0.9,0.1,0.);
4d68a14a 171TPC->SetSecAL(4);
172TPC->SetSecAU(4);
173TPC->SetSecLows(1, 2, 3, 19, 20, 21);
174TPC->SetSecUps(37, 38, 39, 37+18, 38+18, 39+18, -1, -1, -1, -1, -1, -1);
f72f44b7 175TPC->SetSens(1);
4d68a14a 176
177if (TPC->IsVersion()==1) param->Write(param->GetTitle());
fe4da5cc 178}
179
180if(iTOF) {
181//=================== TOF parameters ============================
2d1e19f5 182AliTOF *TOF = new AliTOFv1("TOF","normal TOF");
fe4da5cc 183}
184
185if(iRICH) {
186//=================== RICH parameters ===========================
8de40c27 187 AliRICH *RICH = new AliRICHv0("RICH","normal RICH");
188
206e3707 189//
190// Version 0
191// Default Segmentation
8de40c27 192 AliRICHSegmentationV0* SegmentationV0 = new AliRICHSegmentationV0;
193//
194// Segmentation parameters
195 SegmentationV0->SetPadSize(0.84,0.80);
196 SegmentationV0->SetDAnod(0.84/2);
197//
198// Geometry parameters
199 AliRICHGeometry* GeometryV0 = new AliRICHGeometryV0;
200 GeometryV0->SetGapThickness(7.6);
201 GeometryV0->SetProximityGapThickness(.4);
202 GeometryV0->SetQuartzLength(131);
203 GeometryV0->SetQuartzWidth(126.2);
204 GeometryV0->SetQuartzThickness(.5);
205 GeometryV0->SetOuterFreonLength(131);
206 GeometryV0->SetOuterFreonWidth(40.3);
207 GeometryV0->SetInnerFreonLength(131);
208 GeometryV0->SetInnerFreonWidth(40.3);
209 GeometryV0->SetFreonThickness(1);
210//
211// Response parameters
212 AliRICHResponseV0* Rresponse0 = new AliRICHResponseV0;
213 Rresponse0->SetSigmaIntegration(5.);
214 Rresponse0->SetChargeSlope(41.);
215 Rresponse0->SetChargeSpread(0.18, 0.18);
216 Rresponse0->SetMaxAdc(1024);
217 Rresponse0->SetAlphaFeedback(0.05);
218 Rresponse0->SetEIonisation(26.e-9);
219 Rresponse0->SetSqrtKx3(0.77459667);
220 Rresponse0->SetKx2(0.962);
221 Rresponse0->SetKx4(0.379);
222 Rresponse0->SetSqrtKy3(0.77459667);
223 Rresponse0->SetKy2(0.962);
224 Rresponse0->SetKy4(0.379);
225 Rresponse0->SetPitch(0.25);
226//
227//
206e3707 228 for (Int_t i=0; i<7; i++) {
8de40c27 229 RICH->SetGeometryModel(i,GeometryV0);
230 RICH->SetSegmentationModel(i, SegmentationV0);
231 RICH->SetResponseModel(i, Rresponse0);
206e3707 232 RICH->SetNsec(i,1);
233 }
fe4da5cc 234}
235
8de40c27 236
fe4da5cc 237if(iZDC) {
238//=================== ZDC parameters ============================
239
240AliZDC *ZDC = new AliZDCv1("ZDC","normal ZDC");
241}
242
243if(iCASTOR) {
244//=================== CASTOR parameters ============================
245
246AliCASTOR *CASTOR = new AliCASTORv1("CASTOR","normal CASTOR");
247}
248
249if(iTRD) {
250//=================== TRD parameters ============================
adc10334 251
252 AliTRD *TRD = new AliTRDv0("TRD","TRD fast simulator");
253 //TRD->SetHits();
254
255 //AliTRD *TRD = new AliTRDv1("TRD","TRD slow simulator");
256 //TRD->SetSensPlane(0);
257 //TRD->SetSensChamber(2);
258 //TRD->SetSensSector(17);
259
260 // Select the gas mixture (0: 97% Xe + 3% isobutane, 1: 90% Xe + 10% CO2)
261 TRD->SetGasMix(1);
262
263 // With hole in front of PHOS
264 TRD->SetPHOShole();
265 // With hole in front of RICH
266 TRD->SetRICHhole();
fe4da5cc 267}
268
fe4da5cc 269if(iFMD) {
270//=================== FMD parameters ============================
271
272AliFMD *FMD = new AliFMDv1("FMD","normal FMD");
273}
274
275if(iMUON) {
276//=================== MUON parameters ===========================
277
278AliMUON *MUON = new AliMUONv0("MUON","normal MUON");
279
916c29ab 280 MUON->SetMaxStepGas(0.1);
281 MUON->SetMaxStepAlu(0.1);
282//
fe4da5cc 283// Version 0
284//
285// First define the number of planes that are segmented (1 or 2) by a call
286// to SetNsec.
287// Then chose for each chamber (chamber plane) the segmentation
288// and response model.
289// They should be equal for the two chambers of each station. In a future
290// version this will be enforced.
291//
292//
293 Int_t chamber;
294 Int_t station;
fe4da5cc 295// Default response
296 AliMUONresponseV0* response0 = new AliMUONresponseV0;
0f5936af 297 response0->SetSqrtKx3(0.7131);
298 response0->SetKx2(1.0107);
299 response0->SetKx4(0.4036);
300 response0->SetSqrtKy3(0.7642);
301 response0->SetKy2(0.9706);
302 response0->SetKy4(0.3831);
fe4da5cc 303 response0->SetPitch(0.25);
0f5936af 304 response0->SetSigmaIntegration(10.);
305 response0->SetChargeSlope(50);
306 response0->SetChargeSpread(0.18, 0.18);
307 response0->SetMaxAdc(4096);
fe4da5cc 308//--------------------------------------------------------
309// Configuration for Chamber TC1/2 (Station 1) ----------
310//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0f5936af 311// Float_t rseg1[4]={17.5, 55.2, 71.3, 95.5};
312 Float_t rseg1[4]={15.5, 55.2, 71.3, 95.5};
313 Int_t nseg1[4]={4, 4, 2, 1};
314//
fe4da5cc 315 chamber=1;
316//^^^^^^^^^
317 MUON->SetNsec(chamber-1,2);
318//
319 AliMUONsegmentationV01 *seg11=new AliMUONsegmentationV01;
0f5936af 320
321 seg11->SetSegRadii(rseg1);
322 seg11->SetPADSIZ(3, 0.5);
323 seg11->SetDAnod(3.0/3./4);
324 seg11->SetPadDivision(nseg1);
325
fe4da5cc 326 MUON->SetSegmentationModel(chamber-1, 1, seg11);
327//
0f5936af 328 AliMUONsegmentationV02 *seg12=new AliMUONsegmentationV02;
329 seg12->SetSegRadii(rseg1);
330 seg12->SetPADSIZ(0.75, 2.0);
331 seg12->SetDAnod(3.0/3./4);
332 seg12->SetPadDivision(nseg1);
fe4da5cc 333
334 MUON->SetSegmentationModel(chamber-1, 2, seg12);
335
0f5936af 336 MUON->SetResponseModel(chamber-1, response0);
337
fe4da5cc 338 chamber=2;
339//^^^^^^^^^
0f5936af 340//
fe4da5cc 341 MUON->SetNsec(chamber-1,2);
0f5936af 342//
343 AliMUONsegmentationV01 *seg21=new AliMUONsegmentationV01;
344 seg21->SetSegRadii(rseg1);
345 seg21->SetPADSIZ(3, 0.5);
346 seg21->SetDAnod(3.0/3./4);
347 seg21->SetPadDivision(nseg1);
348 MUON->SetSegmentationModel(chamber-1, 1, seg21);
349//
350 AliMUONsegmentationV02 *seg22=new AliMUONsegmentationV02;
351 seg22->SetSegRadii(rseg1);
352 seg22->SetPADSIZ(0.75, 2.);
353 seg22->SetDAnod(3.0/3./4);
354 seg22->SetPadDivision(nseg1);
355 MUON->SetSegmentationModel(chamber-1, 2, seg22);
fe4da5cc 356
0f5936af 357 MUON->SetResponseModel(chamber-1, response0);
fe4da5cc 358//
359//--------------------------------------------------------
360// Configuration for Chamber TC3/4 -----------------------
361//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0f5936af 362// Float_t rseg2[4]={23.5, 47.1, 87.7, 122.5};
363 Float_t rseg2[4]={21.5, 47.1, 87.7, 122.5};
364 Int_t nseg2[4]={4, 4, 2, 1};
365//
fe4da5cc 366 chamber=3;
0f5936af 367//^^^^^^^^^
368 MUON->SetNsec(chamber-1,2);
369//
370 AliMUONsegmentationV01 *seg31=new AliMUONsegmentationV01;
371 seg31->SetSegRadii(rseg2);
372 seg31->SetPADSIZ(3, 0.5);
373 seg31->SetDAnod(3.0/3./4);
374 seg31->SetPadDivision(nseg2);
375 MUON->SetSegmentationModel(chamber-1, 1, seg31);
376//
377 AliMUONsegmentationV02 *seg32=new AliMUONsegmentationV02;
378 seg32->SetSegRadii(rseg2);
379 seg32->SetPADSIZ(0.75, 2.);
380 seg32->SetPadDivision(nseg2);
381 seg32->SetDAnod(3.0/3./4);
382
383 MUON->SetSegmentationModel(chamber-1, 2, seg32);
384
fe4da5cc 385 MUON->SetResponseModel(chamber-1, response0);
386
387 chamber=4;
0f5936af 388//^^^^^^^^^
fe4da5cc 389//
0f5936af 390 MUON->SetNsec(chamber-1,2);
391//
392 AliMUONsegmentationV01 *seg41=new AliMUONsegmentationV01;
393 seg41->SetSegRadii(rseg2);
394 seg41->SetPADSIZ(3, 0.5);
395 seg41->SetDAnod(3.0/3./4);
396 seg41->SetPadDivision(nseg2);
397 MUON->SetSegmentationModel(chamber-1, 1, seg41);
fe4da5cc 398//
0f5936af 399 AliMUONsegmentationV02 *seg42=new AliMUONsegmentationV02;
400 seg42->SetSegRadii(rseg2);
401 seg42->SetPADSIZ(0.75, 2.);
402 seg42->SetPadDivision(nseg2);
403 seg42->SetDAnod(3.0/3./4);
404
405 MUON->SetSegmentationModel(chamber-1, 2, seg42);
406
407 MUON->SetResponseModel(chamber-1, response0);
408
409
fe4da5cc 410//--------------------------------------------------------
411// Configuration for Chamber TC5/6 -----------------------
412//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
916c29ab 413/*
fe4da5cc 414 seg5 = new AliMUONsegmentationV1;
415 AliMUONresponseV0* response5 = new AliMUONresponseV0;
416 // K3 = 0.62
417 response5->SetSqrtKx3(0.78740079);
418 response5->SetKx2(0.95237319); // 0.5 * kPI * (1- 0.5*sqrtky3 )
419 response5->SetKx4(0.37480633); // 0.25/TMath::ATan(sqrtkx3)
420 // K3 = 0.55
421 response5->SetSqrtKy3(0.74161985);
422 response5->SetKy2(0.98832946);
423 response5->SetKy4(0.39177817);
424 response5->SetPitch(0.325);
0f5936af 425 response5->SetSigmaIntegration(10.);
426 response5->SetChargeSlope(50);
427 response5->SetChargeSpread(0.4, 0.4);
428 response5->SetMaxAdc(4096);
fe4da5cc 429
430 chamber=5;
431 MUON->SetNsec(chamber-1,1);
432 MUON->SetSegmentationModel(chamber-1, 1, seg5);
433 MUON->SetResponseModel(chamber-1, response5);
434
435 chamber=6;
436 MUON->SetNsec(chamber-1,1);
437 MUON->SetSegmentationModel(chamber-1, 1, seg5);
438 MUON->SetResponseModel(chamber-1, response5);
439//
440// Station 3
441 station=3;
442 MUON->SetPADSIZ(station, 1, 0.975, 0.55);
916c29ab 443*/
444
445 chamber=5;
446//^^^^^^^^^
447 MUON->SetNsec(chamber-1,2);
448//
449 AliMUONsegmentationV0 *seg51=new AliMUONsegmentationV0;
450 seg51->SetPADSIZ(0.75, 0.5);
451 seg51->SetDAnod(3.0/3./4);
452 MUON->SetSegmentationModel(chamber-1, 1, seg51);
453//
454 AliMUONsegmentationV0 *seg52=new AliMUONsegmentationV0;
455 seg52->SetPADSIZ(0.5,0.75);
456 seg52->SetDAnod(3.0/3./4);
457 MUON->SetSegmentationModel(chamber-1, 2, seg52);
458
459 MUON->SetResponseModel(chamber-1, response0);
460
461 chamber=6;
462//^^^^^^^^^
463 MUON->SetNsec(chamber-1,2);
464//
465 AliMUONsegmentationV0 *seg61=new AliMUONsegmentationV0;
466 seg61->SetPADSIZ(0.75, 0.5);
467 seg61->SetDAnod(3.0/3./4);
468 MUON->SetSegmentationModel(chamber-1, 1, seg61);
469//
470 AliMUONsegmentationV0 *seg62=new AliMUONsegmentationV0;
471 seg62->SetPADSIZ(0.5,0.75);
472 seg62->SetDAnod(3.0/3./4);
473 MUON->SetSegmentationModel(chamber-1, 2, seg62);
474
475 MUON->SetResponseModel(chamber-1, response0);
fe4da5cc 476
fe4da5cc 477//--------------------------------------------------------
0f5936af 478// Configuration for Chamber TC7/8 (Station 4) ----------
fe4da5cc 479//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
480
0f5936af 481 Int_t nseg4[4]={4, 4, 2, 1};
482
fe4da5cc 483 chamber=7;
0f5936af 484//^^^^^^^^^
485 MUON->SetNsec(chamber-1,2);
486//
487 AliMUONsegmentationV04 *seg71=new AliMUONsegmentationV04;
488 seg71->SetPADSIZ(10.,0.5);
489 seg71->SetDAnod(0.25);
490 seg71->SetPadDivision(nseg4);
491 MUON->SetSegmentationModel(chamber-1, 1, seg71);
492
493 AliMUONsegmentationV05 *seg72=new AliMUONsegmentationV05;
494 seg72->SetPADSIZ(1,10);
495 seg72->SetDAnod(0.25);
496 seg72->SetPadDivision(nseg4);
497 MUON->SetSegmentationModel(chamber-1, 2, seg72);
fe4da5cc 498
fe4da5cc 499 MUON->SetResponseModel(chamber-1, response0);
500
501 chamber=8;
0f5936af 502//^^^^^^^^^
503 MUON->SetNsec(chamber-1,2);
504 AliMUONsegmentationV04 *seg81=new AliMUONsegmentationV04;
505 seg81->SetPADSIZ(10., 0.5);
506 seg81->SetPadDivision(nseg4);
507 seg81->SetDAnod(0.25);
508 MUON->SetSegmentationModel(chamber-1, 1, seg81);
509
510 AliMUONsegmentationV05 *seg82=new AliMUONsegmentationV05;
511 seg82->SetPADSIZ(1, 10);
512 seg82->SetPadDivision(nseg4);
513 seg82->SetDAnod(0.25);
514 MUON->SetSegmentationModel(chamber-1, 2, seg82);
515
fe4da5cc 516 MUON->SetResponseModel(chamber-1, response0);
0f5936af 517//--------------------------------------------------------
518// Configuration for Chamber TC9/10 (Station 5) ---------
519//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
520 chamber=9;
521//^^^^^^^^^
522 MUON->SetNsec(chamber-1,2);
fe4da5cc 523//
0f5936af 524 AliMUONsegmentationV04 *seg91=new AliMUONsegmentationV04;
525 seg91->SetPADSIZ(10.,0.5);
526 seg91->SetDAnod(0.25);
527 seg91->SetPadDivision(nseg4);
528 MUON->SetSegmentationModel(chamber-1, 1, seg91);
fe4da5cc 529
0f5936af 530 AliMUONsegmentationV05 *seg92=new AliMUONsegmentationV05;
531 seg92->SetPADSIZ(1,10);
532 seg92->SetDAnod(0.25);
533 seg92->SetPadDivision(nseg4);
534
535 MUON->SetSegmentationModel(chamber-1, 2, seg92);
fe4da5cc 536
fe4da5cc 537 MUON->SetResponseModel(chamber-1, response0);
538
539 chamber=10;
0f5936af 540//^^^^^^^^^
541 MUON->SetNsec(chamber-1,2);
542 AliMUONsegmentationV04 *seg101=new AliMUONsegmentationV04;
543 seg101->SetPADSIZ(10., 0.5);
544 seg101->SetPadDivision(nseg4);
545 seg101->SetDAnod(0.25);
546 MUON->SetSegmentationModel(chamber-1, 1, seg101);
547
548 AliMUONsegmentationV05 *seg102=new AliMUONsegmentationV05;
549 seg102->SetPADSIZ(1,10);
550 seg102->SetPadDivision(nseg4);
551 seg102->SetDAnod(0.25);
552 MUON->SetSegmentationModel(chamber-1, 2, seg102);
553
fe4da5cc 554 MUON->SetResponseModel(chamber-1, response0);
0f5936af 555//--------------------------------------------------------
556// Configuration for Trigger staions ---------------------
557// (not yet used/implemented) ----------------------------
558//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
fe4da5cc 559
560 chamber=11;
561 MUON->SetNsec(chamber-1,1);
562 AliMUONsegmentationV0 *seg1112=new AliMUONsegmentationV0;
563 seg1112->SetDAnod(0.51/3.);
564
565 MUON->SetSegmentationModel(chamber-1, 1, seg1112);
566 MUON->SetResponseModel(chamber-1, response0);
567
568 chamber=12;
569 MUON->SetNsec(chamber-1,1);
570 MUON->SetSegmentationModel(chamber-1, 1, seg1112);
571 MUON->SetResponseModel(chamber-1, response0);
572//
573// Trigger Station 1
574 station=6;
575 MUON->SetPADSIZ(station, 1, 0.75, 0.5);
576
577 chamber=13;
578 MUON->SetNsec(chamber-1,1);
579 AliMUONsegmentationV0 *seg1314=new AliMUONsegmentationV0;
580 seg1314->SetDAnod(0.51/3.);
581
582 MUON->SetSegmentationModel(chamber-1, 1, seg1314);
583 MUON->SetResponseModel(chamber-1, response0);
584
585 chamber=14;
586 MUON->SetNsec(chamber-1,1);
587 MUON->SetSegmentationModel(chamber-1, 1, seg1314);
588 MUON->SetResponseModel(chamber-1, response0);
589//
590// Trigger Station 2
591 station=7;
592 MUON->SetPADSIZ(station, 1, 0.75, 0.5);
593}
0f5936af 594
fe4da5cc 595//=================== PHOS parameters ===========================
596
8dfe31df 597if(iPHOS) {
47f39b79 598 AliPHOS *PHOS = new AliPHOSv0("PHOS","GPS2");
fe4da5cc 599}
600
8dfe31df 601
fe4da5cc 602if(iPMD) {
603//=================== PMD parameters ============================
604
ecd5c1f7 605AliPMD *PMD = new AliPMDv0("PMD","normal PMD");
fe4da5cc 606PMD->SetPAR(1., 1., 0.8, 0.02);
ecd5c1f7 607PMD->SetIN(6., 18., -580., 27., 27.);
fe4da5cc 608PMD->SetGEO(0.0, 0.2, 4.);
ecd5c1f7 609PMD->SetPadSize(0.8, 1.0, 1.0, 1.5);
610
fe4da5cc 611}
b422f318 612
613if(iSTART) {
614//=================== START parameters ============================
615AliSTART *START = new AliSTARTv0("START","START Detector");
616}
617
fe4da5cc 618
619}