]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenMC.h
SetSeed implementation
[u/mrichter/AliRoot.git] / EVGEN / AliGenMC.h
index f537cf334f166aad43dbd18be42637c20f27c212..4d147a74eb7ee83b7170f0c920956b7d78f25eb7 100644 (file)
@@ -19,8 +19,8 @@ class TParticle;
 
 class AliGeometry;
 class AliGenEventHeader;
-#include "AliDecayer.h"
 #include "AliGenerator.h"
+#include "AliDecayer.h"
 
 class AliGenMC : public AliGenerator
 {
@@ -59,14 +59,17 @@ class AliGenMC : public AliGenerator
        {fTarget = tar; fATarget = a; fZTarget = z;}
     virtual void   SetCrossingAngle(Float_t phiX, Float_t phiY) {fXingAngleX = phiX; fXingAngleY = phiY;}
     virtual void Boost();
+    virtual void SetDyBoost(Double_t dyBoost = 0.) {fDyBoost = dyBoost;}
+    virtual void BeamCrossAngle();
     virtual void AddHeader(AliGenEventHeader* header);
+
  protected:
     // check if particle is selected as parent particle
     Bool_t ParentSelected(Int_t ip) const;
     // check if particle is selected as child particle
     Bool_t ChildSelected(Int_t ip) const;
     // all kinematic selection cuts go here 
-    Bool_t KinematicSelection(TParticle *particle, Int_t flag) const;
+    Bool_t KinematicSelection(const TParticle *particle, Int_t flag) const;
     Int_t  CheckPDGCode(Int_t pdgcode) const;
 
  protected:
@@ -88,23 +91,17 @@ class AliGenMC : public AliGenerator
     Float_t      fXingAngleY;    // Crossing angle Y    
     Decay_t      fForceDecay;    // Decay channel forced
     Float_t      fMaxLifeTime;   // Maximum lifetime for unstable particles
-    Int_t        fAProjectile;   // Projectile A
-    Int_t        fZProjectile;   // Projectile Z
-    Int_t        fATarget;       // Target A
-    Int_t        fZTarget;       // Target Z
-    TString      fProjectile;    // Projectile
-    TString      fTarget;        // Target
     Double_t     fDyBoost;       // dy for boost into lab frame
     AliGeometry* fGeometryAcceptance; // Geometry to which particles must be simulated
     Int_t        fPdgCodeParticleforAcceptanceCut;  // Abs(PDG Code) of the particle to which the GeometryAcceptance must be applied
     Int_t        fNumberOfAcceptedParticles;  // Number of accepted particles in GeometryAcceptance with the right Abs(PdgCode) 
     Int_t        fNprimaries;                 // Number of produced and stored particles
-    
  private:
     AliGenMC(const AliGenMC &MC);
     AliGenMC & operator=(const AliGenMC & rhs);
     
-    ClassDef(AliGenMC,5)       // AliGenerator implementation for generators using MC methods
+    ClassDef(AliGenMC,7)       // AliGenerator implementation for generators using MC methods
 };
 #endif