10 #if !defined(__CINT__) || defined(__MAKECINT__) 11 #include <Riostream.h> 15 #include <TVirtualMC.h> 16 #include <TGeant3TGeo.h> 20 #include "PYTHIA6/AliDecayerPythia.h" 21 #include "EVGEN/AliGenCocktail.h" 22 #include "EVGEN/AliGenHIJINGpara.h" 23 #include "STEER/AliMagF.h" 24 #include "STRUCT/AliBODY.h" 25 #include "STRUCT/AliMAG.h" 26 #include "STRUCT/AliABSOv3.h" 27 #include "STRUCT/AliDIPOv3.h" 28 #include "STRUCT/AliHALLv3.h" 29 #include "STRUCT/AliFRAMEv2.h" 30 #include "STRUCT/AliSHILv3.h" 31 #include "STRUCT/AliPIPEv3.h" 32 #include "ITS/AliITSv11.h" 33 #include "TPC/AliTPCv2.h" 34 #include "TOF/AliTOFv6T0.h" 35 #include "HMPID/AliHMPIDv3.h" 36 #include "ZDC/AliZDCv3.h" 37 #include "TRD/AliTRDv1.h" 38 #include "FMD/AliFMDv1.h" 39 #include "MUON/AliMUONv1.h" 40 #include "PHOS/AliPHOSv1.h" 41 #include "PMD/AliPMDv1.h" 42 #include "T0/AliT0v1.h" 43 #include "EMCAL/AliEMCALv2.h" 44 #include "ACORDE/AliACORDEv1.h" 45 #include "VZERO/AliVZEROv7.h" 46 #include "EVGEN/AliGenCosmicsParam.h" 62 AliLog::Message(
AliLog::kInfo, Form(
"Seed for random number generation = %d",gRandom->GetSeed()),
"Config.C",
"Config.C",
"Config()",
"Config.C", __LINE__);
68 gSystem->Load(
"libgeant321");
71 new TGeant3TGeo(
"C++ Interface to Geant3");
82 gAlice->Fatal(
"Config.C",
"Can not instatiate the Run Loader");
120 cout<<
"Trigger configuration is set to Pb-Pb"<<endl;
124 TVirtualMCDecayer *decayer =
new AliDecayerPythia();
126 decayer->SetForceDecay(kAll);
128 gMC->SetExternalDecayer(decayer);
135 gMC->SetProcess(
"DCAY",1);
136 gMC->SetProcess(
"PAIR",1);
137 gMC->SetProcess(
"COMP",1);
138 gMC->SetProcess(
"PHOT",1);
139 gMC->SetProcess(
"PFIS",0);
140 gMC->SetProcess(
"DRAY",0);
141 gMC->SetProcess(
"ANNI",1);
142 gMC->SetProcess(
"BREM",1);
143 gMC->SetProcess(
"MUNU",1);
144 gMC->SetProcess(
"CKOV",1);
145 gMC->SetProcess(
"HADR",1);
146 gMC->SetProcess(
"LOSS",2);
147 gMC->SetProcess(
"MULS",1);
148 gMC->SetProcess(
"RAYL",1);
151 Float_t tofmax = 1.e10;
153 gMC->SetCut(
"CUTGAM", cut);
154 gMC->SetCut(
"CUTELE", cut);
155 gMC->SetCut(
"CUTNEU", cut);
156 gMC->SetCut(
"CUTHAD", cut);
157 gMC->SetCut(
"CUTMUO", cut);
158 gMC->SetCut(
"BCUTE", cut);
159 gMC->SetCut(
"BCUTM", cut);
160 gMC->SetCut(
"DCUTE", cut);
161 gMC->SetCut(
"DCUTM", cut);
162 gMC->SetCut(
"PPCUTM", cut);
163 gMC->SetCut(
"TOFMAX", tofmax);
166 int nParticles = 100;
167 if (gSystem->Getenv(
"CONFIG_NPARTICLES"))
169 nParticles = atoi(gSystem->Getenv(
"CONFIG_NPARTICLES"));
172 AliGenCosmicsParam *gener =
new AliGenCosmicsParam();
173 gener->SetNumberParticles(20);
174 gener->SetParamACORDE();
175 gener->SetYOrigin(900.);
176 gener->SetMomentumRange(0.2,100.);
177 gener->SetMaxAngleWRTVertical(3.1415/4);
215 AliBODY *BODY =
new AliBODY(
"BODY",
"Alice envelop");
222 AliMAG *MAG =
new AliMAG(
"MAG",
"Magnet");
229 AliABSO *ABSO =
new AliABSOv3(
"ABSO",
"Muon Absorber");
236 AliDIPO *DIPO =
new AliDIPOv3(
"DIPO",
"Dipole version 3");
243 AliHALL *HALL =
new AliHALLv3(
"HALL",
"Alice Hall");
251 AliFRAMEv2 *
FRAME =
new AliFRAMEv2(
"FRAME",
"Space Frame");
259 AliSHIL *SHIL =
new AliSHILv3(
"SHIL",
"Shielding Version 3");
267 AliPIPE *PIPE =
new AliPIPEv3(
"PIPE",
"Beam Pipe");
274 AliITS *ITS =
new AliITSv11(
"ITS",
"ITS v11");
280 AliTPC *TPC =
new AliTPCv2(
"TPC",
"Default");
286 AliTOF *TOF =
new AliTOFv6T0(
"TOF",
"normal TOF");
293 AliHMPID *HMPID =
new AliHMPIDv3(
"HMPID",
"normal HMPID");
302 AliZDC *ZDC =
new AliZDCv3(
"ZDC",
"normal ZDC");
309 AliTRD *TRD =
new AliTRDv1(
"TRD",
"TRD slow simulator");
328 AliPHOS *
PHOS =
new AliPHOSv1(
"PHOS",
"IHEP");
335 AliPMD *PMD =
new AliPMDv1(
"PMD",
"normal PMD");
341 AliT0 *T0 =
new AliT0v1(
"T0",
"T0 Detector");
353 AliACORDE *ACORDE =
new AliACORDEv1(
"ACORDE",
"normal ACORDE");
359 AliVZERO *VZERO =
new AliVZEROv7(
"VZERO",
"normal VZERO");
367 return (180./TMath::Pi())*2.*atan(exp(-arg));
375 gSystem->Load(
"liblhapdf");
376 gSystem->Load(
"libEGPythia6");
377 gSystem->Load(
"libpythia6");
378 gSystem->Load(
"libAliPythia6");
void SetRunLoader(AliRunLoader *rloader)
static const TString & GetDefaultEventFolderName()
static void Message(UInt_t level, const char *message, const char *module, const char *className, const char *function, const char *file, Int_t line)
AliDetector class for MUON subsystem providing simulation data management.
Forward Multiplicity Detector based on Silicon wafers. This class is the driver for especially simula...
Forward Multiplicity Detector based on Silicon wafers.
static AliRunLoader * Open(const char *filename="galice.root", const char *eventfoldername=AliConfig::GetDefaultEventFolderName(), Option_t *option="READ")
Float_t EtaToTheta(Float_t arg)
void SetTriggerConfig(TString conf)
AliDetector class for MUON subsystem which implements functions for simulation.
void SetCompressionLevel(Int_t cl)
static AliSimulation * Instance()
Base Class for EMCAL description.
void SetNumberOfEventsPerFile(Int_t nevpf)
EMCal simulation manager class v2.