]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/ConfigSDD03.C
Using symbolic particle types everywhere
[u/mrichter/AliRoot.git] / ITS / ConfigSDD03.C
index 2e3f892eb1543d1e66165fea964a7c8ecb991ba0..ae79a87b408987d3d6514f33df598423c2b0d018 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>
@@ -93,7 +94,7 @@ void Config(){
     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