3 // =============================
5 // =============================
7 cout << "Processing config " << endl;
9 // Create the output file
10 TFile *rootfile = new TFile("galice.root","recreate");
11 rootfile->SetCompressionLevel(2);
13 // =============================
15 // =============================
59 // Exclude detectors that do not work with Geant4
63 // Without any modification
66 //=================== Alice BODY parameters =============================
67 AliBODY *BODY = new AliBODY("BODY","Alice envelop");
71 //=================== MAG parameters ============================
72 // --- Start with Magnet since detector layouts may be depending ---
73 // --- on the selected Magnet dimensions ---
74 AliMAG *MAG = new AliMAG("MAG","Magnet");
79 //=================== ABSO parameters ============================
80 AliABSO *ABSO = new AliABSOv0("ABSO","Muon Absorber");
84 //=================== DIPO parameters ============================
86 AliDIPO *DIPO = new AliDIPOv2("DIPO","Dipole version 2");
90 //=================== HALL parameters ============================
92 AliHALL *HALL = new AliHALL("HALL","Alice Hall");
97 //=================== FRAME parameters ============================
99 AliFRAME *FRAME = new AliFRAMEv1("FRAME","Space Frame");
104 //=================== SHIL parameters ============================
106 AliSHIL *SHIL = new AliSHILv0("SHIL","Shielding");
111 //=================== PIPE parameters ============================
113 AliPIPE *PIPE = new AliPIPEv0("PIPE","Beam Pipe");
118 //=================== ITS parameters ============================
120 // As the innermost detector in ALICE, the Inner Tracking System "impacts" on
121 // almost all other detectors. This involves the fact that the ITS geometry
122 // still has several options to be followed in parallel in order to determine
123 // the best set-up which minimizes the induced background. All the geometries
124 // available to date are described in the following. Read carefully the comments
125 // and use the default version (the only one uncommented) unless you are making
126 // comparisons and you know what you are doing. In this case just uncomment the
127 // ITS geometry you want to use and run Aliroot.
129 // Detailed geometries:
133 //AliITS *ITS = new AliITSv5symm("ITS","Updated ITS TDR detailed version with symmetric services");
135 AliITS *ITS = new AliITSv5asymm("ITS","Updates ITS TDR detailed version with asymmetric services");
137 //AliITSvPPRasymm *ITS = new AliITSvPPRasymm("ITS","New ITS PPR detailed version with asymmetric services");
138 //ITS->SetMinorVersion(2);
139 //ITS->SetReadDet(kFALSE);
140 //ITS->SetWriteDet("$ALICE_ROOT/ITS/ITSgeometry_vPPRasymm2.det");
141 //ITS->SetThicknessDet1(300.); // detector thickness on layer 1 must be in the range [100,300]
142 //ITS->SetThicknessDet2(300.); // detector thickness on layer 2 must be in the range [100,300]
143 //ITS->SetThicknessChip1(300.); // chip thickness on layer 1 must be in the range [150,300]
144 //ITS->SetThicknessChip2(300.); // chip thickness on layer 2 must be in the range [150,300]
145 //ITS->SetRails(1); // 1 --> rails in ; 0 --> rails out
146 //ITS->SetCoolingFluid(1); // 1 --> water ; 0 --> freon
148 //AliITSvPPRsymm *ITS = new AliITSvPPRsymm("ITS","New ITS PPR detailed version with symmetric services");
149 //ITS->SetMinorVersion(2);
150 //ITS->SetReadDet(kFALSE);
151 //ITS->SetWriteDet("$ALICE_ROOT/ITS/ITSgeometry_vPPRsymm2.det");
152 //ITS->SetThicknessDet1(300.); // detector thickness on layer 1 must be in the range [100,300]
153 //ITS->SetThicknessDet2(300.); // detector thickness on layer 2 must be in the range [100,300]
154 //ITS->SetThicknessChip1(300.); // chip thickness on layer 1 must be in the range [150,300]
155 //ITS->SetThicknessChip2(300.); // chip thickness on layer 2 must be in the range [150,300]
156 //ITS->SetRails(1); // 1 --> rails in ; 0 --> rails out
157 //ITS->SetCoolingFluid(1); // 1 --> water ; 0 --> freon
160 // Coarse geometries (warning: no hits are produced with these coarse geometries and they unuseful
161 // for reconstruction !):
165 //AliITSvPPRcoarseasymm *ITS = new AliITSvPPRcoarseasymm("ITS","New ITS coarse version with asymmetric services");
166 //ITS->SetRails(1); // 1 --> rails in ; 0 --> rails out
167 //ITS->SetSupportMaterial(0); // 0 --> Copper ; 1 --> Aluminum ; 2 --> Carbon
169 //AliITS *ITS = new AliITSvPPRcoarsesymm("ITS","New ITS coarse version with symmetric services");
170 //ITS->SetRails(1); // 1 --> rails in ; 0 --> rails out
171 //ITS->SetSupportMaterial(0); // 0 --> Copper ; 1 --> Aluminum ; 2 --> Carbon
175 // Geant3 <-> EUCLID conversion
176 // ============================
178 // SetEUCLID is a flag to output (=1) or not to output (=0) both geometry and
179 // media to two ASCII files (called by default ITSgeometry.euc and
180 // ITSgeometry.tme) in a format understandable to the CAD system EUCLID.
181 // The default (=0) means that you dont want to use this facility.
188 //============================ TPC parameters ================================
189 // --- This allows the user to specify sectors for the SLOW (TPC geometry 2)
190 // --- Simulator. SecAL (SecAU) <0 means that ALL lower (upper)
191 // --- sectors are specified, any value other than that requires at least one
192 // --- sector (lower or upper)to be specified!
193 // --- Reminder: sectors 1-24 are lower sectors (1-12 -> z>0, 13-24 -> z<0)
194 // --- sectors 25-72 are the upper ones (25-48 -> z>0, 49-72 -> z<0)
195 // --- SecLows - number of lower sectors specified (up to 6)
196 // --- SecUps - number of upper sectors specified (up to 12)
197 // --- Sens - sensitive strips for the Slow Simulator !!!
198 // --- This does NOT work if all S or L-sectors are specified, i.e.
199 // --- if SecAL or SecAU < 0
202 //-----------------------------------------------------------------------------
204 // gROOT->LoadMacro("SetTPCParam.C");
205 // AliTPCParam *param = SetTPCParam();
206 AliTPC *TPC = new AliTPCv2("TPC","Default");
207 // All sectors included
214 //=================== TOF parameters ============================
215 AliTOF *TOF = new AliTOFv2("TOF","normal TOF");
219 //=================== RICH parameters ===========================
220 AliRICH *RICH = new AliRICHv1("RICH","normal RICH");
226 //=================== ZDC parameters ============================
228 AliZDC *ZDC = new AliZDCv1("ZDC","normal ZDC");
232 //=================== CASTOR parameters ============================
234 AliCASTOR *CASTOR = new AliCASTORv1("CASTOR","normal CASTOR");
238 //=================== TRD parameters ============================
240 AliTRD *TRD = new AliTRDv1("TRD","TRD slow simulator");
242 // Select the gas mixture (0: 97% Xe + 3% isobutane, 1: 90% Xe + 10% CO2)
245 // With hole in front of PHOS
247 // With hole in front of RICH
250 AliTRDsim *TRDsim = TRD->CreateTR();
254 //=================== FMD parameters ============================
256 AliFMD *FMD = new AliFMDv0("FMD","normal FMD");
260 //=================== MUON parameters ===========================
262 AliMUON *MUON = new AliMUONv1("MUON","default");
265 //=================== PHOS parameters ===========================
268 AliPHOS *PHOS = new AliPHOSv1("PHOS","GPS2");
273 //=================== PMD parameters ============================
275 AliPMD *PMD = new AliPMDv1("PMD","normal PMD");
276 PMD->SetPAR(1., 1., 0.8, 0.02);
277 PMD->SetIN(6., 18., -580., 27., 27.);
278 PMD->SetGEO(0.0, 0.2, 4.);
279 PMD->SetPadSize(0.8, 1.0, 1.0, 1.5);
284 //=================== START parameters ============================
285 AliSTART *START = new AliSTARTv1("START","START Detector");