]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenMC.cxx
Coding conventions
[u/mrichter/AliRoot.git] / EVGEN / AliGenMC.cxx
index 8db3df8a9b185dc678ddaddc614df88ac02ebefe..d8d68526e7a9cce809048f30e01b135cf62ddcef 100644 (file)
 // decay products and particle selection.
 // andreas.morsch@cern.ch
 
+#include <TClonesArray.h>
 #include <TMath.h>
 #include <TPDGCode.h>
 #include <TParticle.h>
 
 #include "AliGenMC.h"
+#include "AliGeometry.h"
 
 ClassImp(AliGenMC)
 
@@ -47,6 +49,7 @@ AliGenMC::AliGenMC()
     SetProjectile();
     fParentSelect.Set(8);
     fChildSelect.Set(8);
+    fForceDecay = kAll;
 }
 
 AliGenMC::AliGenMC(Int_t npart)
@@ -69,6 +72,7 @@ AliGenMC::AliGenMC(Int_t npart)
     SetNumberOfAcceptedParticles();
     SetTarget();
     SetProjectile();
+    fForceDecay = kAll;
 }
 
 AliGenMC::AliGenMC(const AliGenMC & mc):
@@ -109,6 +113,10 @@ void AliGenMC::Init()
        break;
     case kPhiKK:
        fChildSelect[0]=kKPlus;
+       break;
+    case kBJpsi:
+       fChildSelect[0]=443;
+       break;
     case kOmega:       
     case kAll:
     case kNoDecay:
@@ -343,7 +351,7 @@ AliGenMC& AliGenMC::operator=(const  AliGenMC& rhs)
     return *this;
 }
 
-void AliGenMC::Copy(AliGenMC&) const
+void AliGenMC::Copy(TObject&) const
 {
     //
     // Copy