Tagging gray and black particles
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 19 Jun 2013 15:35:02 +0000 (15:35 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 19 Jun 2013 15:35:02 +0000 (15:35 +0000)
EVGEN/AliGenSlowNucleons.cxx
EVGEN/AliGenSlowNucleons.h

index 9688e62..9567e56 100644 (file)
 #include <TH1F.h>
 #include <TF1.h>
 #include <TCanvas.h>
+#include <TParticle.h>
 
 #include "AliConst.h"
 #include "AliCollisionGeometry.h"
+#include "AliStack.h"
 #include "AliGenSlowNucleons.h"
 #include "AliSlowNucleonModel.h"
 
@@ -214,6 +216,7 @@ void AliGenSlowNucleons::Generate()
        PushTrack(fTrackIt, -1, kf, p, origin, polar,
                 time, kPNoProcess, nt, 1.,-2);
        KeepTrack(nt);
+       GetStack()->Particle(nt)->SetUniqueID(kGrayProcess);
     }
 //
 //  Gray neutrons
@@ -226,6 +229,7 @@ void AliGenSlowNucleons::Generate()
        PushTrack(fTrackIt, -1, kf, p, origin, polar,
                 time, kPNoProcess, nt, 1.,-2);
        KeepTrack(nt);
+       GetStack()->Particle(nt)->SetUniqueID(kGrayProcess);
     }
 //
 //  Black protons
@@ -237,6 +241,7 @@ void AliGenSlowNucleons::Generate()
        PushTrack(fTrackIt, -1, kf, p, origin, polar,
                 time, kPNoProcess, nt, 1.,-1);
        KeepTrack(nt);
+       GetStack()->Particle(nt)->SetUniqueID(kBlackProcess);
     }
 //
 //  Black neutrons
@@ -248,6 +253,7 @@ void AliGenSlowNucleons::Generate()
        PushTrack(fTrackIt, -1, kf, p, origin, polar,
                 time, kPNoProcess, nt, 1.,-1);
        KeepTrack(nt);
+       GetStack()->Particle(nt)->SetUniqueID(kBlackProcess);
     }
 }
 
index 010a45e..b663269 100644 (file)
@@ -92,6 +92,8 @@ public:
     //
     AliSlowNucleonModel* fSlowNucleonModel; // The slow nucleon model
 
+    enum {kGrayProcess = 200, kBlackProcess = 300};
+
  private:
     AliGenSlowNucleons(const AliGenSlowNucleons &sn);
     AliGenSlowNucleons & operator=(const AliGenSlowNucleons & rhs);