]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/ConfigSDD03.C
Fixes for report #63583: High CPU time spent in TMath::Erf
[u/mrichter/AliRoot.git] / ITS / ConfigSDD03.C
index 5d51a0ec8b68684c7c9dffad69841013d1727f8a..bb936c61f5cdc9da4743d510e26093d7f031ff3b 100644 (file)
@@ -1,6 +1,7 @@
 //
 #if !defined(__CINT__) || defined(__MAKECINT__)
 #include <Riostream.h>
+#include <TPDGCode.h>
 #include <TRandom.h>
 #include <TSystem.h>
 #include <TVirtualMC.h>
@@ -11,9 +12,7 @@
 #include "PYTHIA6/AliDecayerPythia.h"
 #include "EVGEN/AliGenCocktail.h"
 #include "EVGEN/AliGenHIJINGpara.h"
-#include "STEER/AliMagFMaps.h"
 #include "STRUCT/AliBODY.h"
-#include "STRUCT/AliMAG.h"
 #include "STRUCT/AliABSOv0.h"
 #include "STRUCT/AliDIPOv2.h"
 #include "STRUCT/AliHALL.h"
@@ -37,7 +36,7 @@ void Config(){
     new TGeant3("C++ Interface to Geant3");
     AliRunLoader *rl = 0;
     rl = AliRunLoader::Open("galice.root",
-                           AliConfig::fgkDefaultEventFolderName,"recreate");
+                           AliConfig::GetDefaultEventFolderName(),"recreate");
     if (rl == 0x0){
       gAlice->Fatal("Config.C","Can not instatiate the Run Loader");
       return;
@@ -87,13 +86,13 @@ void Config(){
     // Example for Moving Particle Gun            *
     //*********************************************
     AliGenBox *gener = new AliGenBox(nParticles);
-    gener->SetMomentumRange(100.,300.);
+    gener->SetMomentumRange(300.,301.);
     gener->SetPhiRange(0,0.1);
     gener->SetThetaRange(0.0, .1);
-    gener->SetOrigin(0.,0.,-50.);
+    gener->SetOrigin(0.,0.,-800.);
     //vertex position
     gener->SetSigma(0.1,0.1,0.0); //Sigma in (X,Y,Z) (cm) on IP position
-    gener->SetPart(211);                //GEANT particle type
+    gener->SetPart(kPiPlus);
     gener->Init();
     // Activate this line if you want the vertex smearing to happen
     // track by track