1 // $Id: g4ConfigCommon.C 30849 2009-02-01 11:42:22Z fca $
3 // AliRoot Configuration for running aliroot with Monte Carlo.
4 // ConfigCommon1() includes the common setting for all MCs
5 // which has to be called before MC is instantiated.
6 // Called from g4Config.C
8 // By I. Hrivnacova, IPN Orsay
11 static AliMagF::BMap_t smag = AliMagF::k5kG;
12 static TString comment;
17 void ConfigCommon1(Bool_t setRootGeometry = kTRUE)
19 cout << "Running ConfigCommon1.C ... " << endl;
21 //=======================================================================
22 // Load Pythia libraries
23 //=======================================================================
27 //=======================================================================
28 // ALICE steering object (AliRunLoader)
29 //=======================================================================
31 // Set Root geometry file
32 if ( setRootGeometry ) {
33 gAlice->SetRootGeometry();
34 gAlice->SetGeometryFromFile("geometry.root");
38 = AliRunLoader::Open("galice.root",
39 AliConfig::GetDefaultEventFolderName(),
42 gAlice->Fatal("Config.C","Can not instatiate the Run Loader");
45 rl->SetCompressionLevel(2);
46 rl->SetNumberOfEventsPerFile(3);
47 gAlice->SetRunLoader(rl);
49 //=======================================================================
50 // Trigger configuration
51 //=======================================================================
53 AliSimulation::Instance()->SetTriggerConfig("Pb-Pb");
54 cout<<"Trigger configuration is set to Pb-Pb"<<endl;
56 // =============================
58 // =============================
61 if (smag == AliMagF::k2kG) {
62 comment = comment.Append(" | L3 field 0.2 T");
64 else if (smag == AliMagF::k5kG) {
65 comment = comment.Append(" | L3 field 0.5 T");
68 AliMagF* field = new AliMagF("Maps","Maps", -1., -1., smag);
69 TGeoGlobalMagField::Instance()->SetField(field);
71 printf("\n \n Comment: %s \n \n", comment.Data());
73 // =============================
75 // =============================
124 //=================== Alice BODY parameters =============================
125 AliBODY *BODY = new AliBODY("BODY", "Alice envelop");
129 //=================== MAG parameters ============================
130 // --- Start with Magnet since detector layouts may be depending ---
131 // --- on the selected Magnet dimensions ---
132 AliMAG *MAG = new AliMAG("MAG", "Magnet");
138 //=================== ABSO parameters ============================
139 AliABSO *ABSO = new AliABSOv3("ABSO", "Muon Absorber");
144 //=================== DIPO parameters ============================
146 AliDIPO *DIPO = new AliDIPOv3("DIPO", "Dipole version 3");
151 //=================== HALL parameters ============================
153 AliHALL *HALL = new AliHALLv3("HALL", "Alice Hall");
159 //=================== FRAME parameters ============================
161 AliFRAMEv2 *FRAME = new AliFRAMEv2("FRAME", "Space Frame");
167 //=================== SHIL parameters ============================
169 AliSHIL *SHIL = new AliSHILv3("SHIL", "Shielding Version 3");
175 //=================== PIPE parameters ============================
177 AliPIPE *PIPE = new AliPIPEv3("PIPE", "Beam Pipe");
182 //=================== ITS parameters ============================
184 AliITS *ITS = new AliITSv11("ITS","ITS v11");
189 //============================ TPC parameters ===================
190 AliTPC *TPC = new AliTPCv2("TPC", "Default");
195 //=================== TOF parameters ============================
196 AliTOF *TOF = new AliTOFv6T0("TOF", "normal TOF");
202 //=================== HMPID parameters ===========================
203 AliHMPID *HMPID = new AliHMPIDv3("HMPID", "normal HMPID");
210 //=================== ZDC parameters ============================
212 AliZDC *ZDC = new AliZDCv3("ZDC", "normal ZDC");
217 //=================== TRD parameters ============================
219 AliTRD *TRD = new AliTRDv1("TRD", "TRD slow simulator");
224 //=================== FMD parameters ============================
225 AliFMD *FMD = new AliFMDv1("FMD", "normal FMD");
230 //=================== MUON parameters ===========================
231 // New MUONv1 version (geometry defined via builders)
232 AliMUON *MUON = new AliMUONv1("MUON", "default");
234 //=================== PHOS parameters ===========================
238 AliPHOS *PHOS = new AliPHOSv1("PHOS", "IHEP");
244 //=================== PMD parameters ============================
245 AliPMD *PMD = new AliPMDv1("PMD", "normal PMD");
250 //=================== T0 parameters ============================
251 AliT0 *T0 = new AliT0v1("T0", "T0 Detector");
256 //=================== EMCAL parameters ============================
257 AliEMCAL *EMCAL = new AliEMCALv2("EMCAL", "EMCAL_COMPLETE");
262 //=================== ACORDE parameters ============================
263 AliACORDE *ACORDE = new AliACORDEv1("ACORDE", "normal ACORDE");
268 //=================== ACORDE parameters ============================
269 AliVZERO *VZERO = new AliVZEROv7("VZERO", "normal VZERO");
272 AliLog::Message(AliLog::kInfo, "End of Config", "Config.C", "Config.C", "Config()"," Config.C", __LINE__);
274 cout << "Running ConfigCommon1.C finished ... " << endl;
279 // Load Pythia related libraries
280 gSystem->Load("liblhapdf.so"); // Parton density functions
281 gSystem->Load("libEGPythia6.so"); // TGenerator interface
282 gSystem->Load("libpythia6.so"); // Pythia
283 gSystem->Load("libAliPythia6.so"); // ALICE specific implementations