]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PYTHIA6/AliDecayerPythia.cxx
reverted commit 092db0d78a7a4058bb5893bf8110127f6fa3bfe1
[u/mrichter/AliRoot.git] / PYTHIA6 / AliDecayerPythia.cxx
index 0b9be557115e33c6e218160b46d2925e8a879f65..7119714aef1acb5df679a624ea3bb6576cf38f51 100644 (file)
@@ -62,6 +62,7 @@ AliDecayerPythia::AliDecayerPythia():
     fHeavyFlavour(kTRUE),
     fLongLived(kFALSE),
     fPatchOmegaDalitz(0),
+    fDecayerExodus(0),
     fPi0(1)
 {
 // Default Constructor
@@ -76,6 +77,7 @@ AliDecayerPythia::AliDecayerPythia(const AliDecayerPythia &decayer):
     fHeavyFlavour(kTRUE),
     fLongLived(kFALSE),
     fPatchOmegaDalitz(0),
+    fDecayerExodus(0),
     fPi0(1)
 {
     // Copy Constructor
@@ -138,6 +140,12 @@ void AliDecayerPythia::Init()
     ForceDecay();
 }
 
+void AliDecayerPythia::SwitchOffParticle(Int_t kf)
+{
+//switch off decay for particle "kf"
+fPythia->SetMDCY(fPythia->Pycomp(kf),1,0);
+}
+
 void AliDecayerPythia::Decay(Int_t idpart, TLorentzVector* p)
 {
 //  Decay a particle