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