4 new AliGeant3("C++ Interface to Geant3");
6 //=======================================================================
7 // Create the output file
9 TFile *rootfile = new TFile("galice.root","recreate");
10 rootfile->SetCompressionLevel(2);
11 TGeant3 *geant3 = (TGeant3*)gMC;
13 //=======================================================================
14 // ******* GEANT STEERING parameters FOR ALICE SIMULATION *******
15 geant3->SetTRIG(1); //Number of events to be processed
16 geant3->SetSWIT(4,10);
17 geant3->SetDEBU(0,0,1);
18 //geant3->SetSWIT(2,2);
29 geant3->SetHADR(1); //Select pure GEANH (HADR 1) or GEANH/NUCRIN (HADR 3)
33 geant3->SetAUTO(1); //Select automatic STMIN etc... calc. (AUTO 1) or manual (AUTO 0)
34 geant3->SetABAN(0); //Restore 3.16 behaviour for abandoned tracks
35 geant3->SetOPTI(2); //Select optimisation level for GEANT geometry searches (0,1,2)
36 geant3->SetERAN(5.e-7);
38 Float_t cut = 1.e-3; // 1MeV cut by default
39 Float_t tofmax = 1.e10;
40 // GAM ELEC NHAD CHAD MUON EBREM MUHAB EDEL MUDEL MUPA TOFMAX
41 geant3->SetCUTS(cut,cut, cut, cut, cut, cut, cut, cut, cut, cut, tofmax);
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
47 AliGenHIJINGpara *gener = new AliGenHIJINGpara(50);
48 gener->SetMomentumRange(0,999);
49 gener->SetPhiRange(0,360);
50 gener->SetThetaRange(10,170);
51 gener->SetOrigin(0,0,0); //vertex position
52 gener->SetSigma(0,0,0); //Sigma in (X,Y,Z) (cm) on IP position
55 // Activate this line if you want the vertex smearing to happen
58 //gener->SetVertexSmear(perTrack);
60 gAlice->SetField(-999,2); //Specify maximum magnetic field in Tesla (neg. ==> default field)
82 //=================== Alice BODY parameters =============================
83 AliBODY *BODY = new AliBODY("BODY","Alice envelop");
87 //=================== MAG parameters ============================
88 // --- Start with Magnet since detector layouts may be depending ---
89 // --- on the selected Magnet dimensions ---
90 AliMAG *MAG = new AliMAG("MAG","Magnet");
95 //=================== ABSO parameters ============================
96 AliABSO *ABSO = new AliABSOv0("ABSO","Muon Absorber");
100 //=================== DIPO parameters ============================
102 AliDIPO *DIPO = new AliDIPOv2("DIPO","Dipole version 2");
106 //=================== HALL parameters ============================
108 AliHALL *HALL = new AliHALL("HALL","Alice Hall");
113 //=================== FRAME parameters ============================
115 AliFRAME *FRAME = new AliFRAMEv1("FRAME","Space Frame");
120 //=================== SHIL parameters ============================
122 AliSHIL *SHIL = new AliSHILv0("SHIL","Shielding");
127 //=================== PIPE parameters ============================
129 AliPIPE *PIPE = new AliPIPEv0("PIPE","Beam Pipe");
134 //=================== ITS parameters ============================
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.
141 AliITS *ITS = new AliITSv5("ITS","normal ITS");
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
161 //-----------------------------------------------------------------------------
163 // gROOT->LoadMacro("SetTPCParam.C");
164 // AliTPCParam *param = SetTPCParam();
165 AliTPC *TPC = new AliTPCv1("TPC","Default"); //v1 is default
166 // TPC->SetParam(param); // pass the parameter object to the TPC
170 //TPC->SetGasMixt(2,20,10,-1,0.9,0.1,0.);
173 //TPC->SetSecLows(1, 2, 3, 19, 20, 21);
174 //TPC->SetSecUps(37, 38, 39, 37+18, 38+18, 39+18, -1, -1, -1, -1, -1, -1);
177 //if (TPC->IsVersion()==1) param->Write(param->GetTitle());
181 //=================== TOF parameters ============================
182 AliTOF *TOF = new AliTOFv1("TOF","normal TOF");
186 //=================== RICH parameters ===========================
187 AliRICH *RICH = new AliRICHv1("RICH","normal RICH");
193 //=================== ZDC parameters ============================
195 AliZDC *ZDC = new AliZDCv1("ZDC","normal ZDC");
199 //=================== CASTOR parameters ============================
201 AliCASTOR *CASTOR = new AliCASTORv1("CASTOR","normal CASTOR");
205 //=================== TRD parameters ============================
207 AliTRD *TRD = new AliTRDv0("TRD","TRD fast simulator");
210 //AliTRD *TRD = new AliTRDv1("TRD","TRD slow simulator");
211 //TRD->SetSensPlane(0);
212 //TRD->SetSensChamber(2);
213 //TRD->SetSensSector(17);
215 // Select the gas mixture (0: 97% Xe + 3% isobutane, 1: 90% Xe + 10% CO2)
218 // With hole in front of PHOS
220 // With hole in front of RICH
225 //=================== FMD parameters ============================
227 AliFMD *FMD = new AliFMDv1("FMD","normal FMD");
231 //=================== MUON parameters ===========================
233 AliMUON *MUON = new AliMUONv0("MUON","normal MUON");
237 //=================== PHOS parameters ===========================
240 AliPHOS *PHOS = new AliPHOSv1("PHOS","GPS2");
245 //=================== PMD parameters ============================
247 AliPMD *PMD = new AliPMDv0("PMD","normal PMD");
248 PMD->SetPAR(1., 1., 0.8, 0.02);
249 PMD->SetIN(6., 18., -580., 27., 27.);
250 PMD->SetGEO(0.0, 0.2, 4.);
251 PMD->SetPadSize(0.8, 1.0, 1.0, 1.5);
256 //=================== START parameters ============================
257 AliSTART *START = new AliSTARTv0("START","START Detector");