Introducing Decay_t in AliRoot decayers
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 13 Dec 2002 11:51:34 +0000 (11:51 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 13 Dec 2002 11:51:34 +0000 (11:51 +0000)
EVGEN/AliDecayer.h
EVGEN/AliDecayerPythia.h

index 8ee2b80e69f1ffbea9d918e5348a1d2807ba1f44..b6c1b46416212c7951b7d46d3e0fa63f781fe2fe 100644 (file)
@@ -5,8 +5,20 @@
 
 /* $Id$ */
 
+#include "RVersion.h"
 #include "TVirtualMCDecayer.h"
 
 typedef TVirtualMCDecayer AliDecayer;
 
+#if ROOT_VERSION_CODE >= ROOT_VERSION(3,04,1)
+typedef enum 
+{
+    kSemiElectronic, kDiElectron, kSemiMuonic, kDiMuon,
+    kBJpsiDiMuon, kBJpsiDiElectron, 
+    kBPsiPrimeDiMuon, kBPsiPrimeDiElectron, kPiToMu,
+    kKaToMu, kNoDecay,
+    kHadronicD, kOmega, kPhiKK, kAll, kNoDecayHeavy
+} Decay_t;
+#endif
+
 #endif //ALI_DECAYER__H
index b6e3f208de2646559928094af137b2acb56687f2..29f10d2ed22241b03c3d9e89c38c24609d44beb4 100644 (file)
@@ -27,6 +27,8 @@ public AliDecayer
     virtual void    Decay(Int_t idpart, TLorentzVector *p);
     virtual Int_t   ImportParticles(TClonesArray *particles);
     virtual void    SetForceDecay(Decay_t decay) {fDecay=decay;}
+    virtual void    SetForceDecay(Int_t decay)
+      {SetForceDecay((Decay_t) decay);}
     virtual void    ForceDecay();
     
     virtual Float_t GetPartialBranchingRatio(Int_t ipart);