]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/ConfigSPD02.C
test svn commit, removing
[u/mrichter/AliRoot.git] / ITS / ConfigSPD02.C
index 58fc4ad93f5e62ee2a8802d1941a4e983e3e6ed2..d07e20d0ed57099f16110e08f011a8bc5303d580 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>
@@ -37,7 +38,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;
@@ -79,7 +80,7 @@ void Config(){
     gMC->SetCut("DCUTM",  cut);
     gMC->SetCut("PPCUTM", cut);
     gMC->SetCut("TOFMAX", tofmax);
-    int     nParticles = 10;
+    int     nParticles = 1;
     if (gSystem->Getenv("CONFIG_NPARTICLES")){
       nParticles = atoi(gSystem->Getenv("CONFIG_NPARTICLES"));
     } // end if
@@ -93,7 +94,7 @@ void Config(){
     gener->SetOrigin(0.,0.,-50.);
     //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
@@ -114,7 +115,7 @@ void Config(){
     } // end if
     if(iITS) {
        //=================== ITS parameters ============================
-       AliITSvSPD02 *ITS  = new AliITSvSPD02("SPD test beam 2002");
+       AliITSvSPD02 *ITS  = new AliITSvSPD02("SPD test beam 2002",2002);
     }
     return;
 }