]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/oldmacros/ConfigSPD02.C
Using symbolic particle types everywhere
[u/mrichter/AliRoot.git] / ITS / oldmacros / ConfigSPD02.C
index 46a858433f15bcfdd49a61d87b6dcf8c658247e7..69337bda928c4dc23606a8d75de9e9e15327eb7d 100644 (file)
@@ -1,3 +1,5 @@
+#include <TPDGCode.h>
+
 void Config(){
     // Set Random Number seed
     // gRandom->SetSeed(12345);
@@ -70,7 +72,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