]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenHijing.h
Include AliDecayer.h instead of GenTypeDefs.h
[u/mrichter/AliRoot.git] / EVGEN / AliGenHijing.h
index 9856e0ff8c5f2d3877847df11117325fa526e541..542c809c4805aa36285709f3be1aa28017cab8f1 100644 (file)
@@ -5,15 +5,18 @@
 
 /* $Id$ */
 
+// Generator using HIJING as an external generator
+// The main HIJING options are accessable for the user through this interface.
+// andreas.morsch@cern.ch
 
 #include "AliGenerator.h"
-#include "GenTypeDefs.h"
-#include <THijing.h>
 #include <TString.h>
 #include <TArrayI.h>
 
+class THijing;
 class TArrayI;
 class TParticle;
+class TClonesArray;
 
 class AliGenHijing : public AliGenerator
 {
@@ -52,6 +55,7 @@ class AliGenHijing : public AliGenerator
     virtual void    SetFlavor(Int_t flag=0)           {fFlavor    = flag;}    
     virtual void    SetEvaluate(Int_t flag=0)         {fEvaluate  = flag;}
     virtual void    SetSelectAll(Int_t flag=0)        {fSelectAll = flag;}    
+    virtual void    SetSpectators(Int_t spects=1)     {fSpectators = spects;}
     AliGenHijing &  operator=(const AliGenHijing & rhs);
 // Physics Routines        
     virtual void EvaluateCrossSections();
@@ -77,7 +81,6 @@ class AliGenHijing : public AliGenerator
     Int_t       fEvaluate;       // Evaluate total and partial cross-sections
     Int_t       fSelectAll;      // Flag to write the full event
     Int_t       fFlavor;         // Selected particle flavor 4: charm+beauty 5: beauty
-    Decay_t     fForceDecay;     // Decay channel  are forced
     Float_t     fEnergyCMS;      // Centre of mass energy
     Float_t     fKineBias;       // Bias from kinematic selection
     Int_t       fTrials;         // Number of trials
@@ -87,6 +90,7 @@ class AliGenHijing : public AliGenerator
     THijing    *fHijing;         // Hijing
     Float_t     fPtHardMin;      // lower pT-hard cut 
     Float_t     fPtHardMax;      // higher pT-hard cut
+    Int_t       fSpectators;     // put spectators on stack
 
  private:
     // check if particle is selected as parent particle
@@ -99,6 +103,9 @@ class AliGenHijing : public AliGenerator
     void   AdjustWeights();
     // check seleted daughters
     Bool_t DaughtersSelection(TParticle* iparticle, TClonesArray* particles);
+    // check if stable
+    Bool_t Stable(TParticle*  particle);
+    
     ClassDef(AliGenHijing,1) // AliGenerator interface to Hijing
 };
 #endif