]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenMC.h
better rusults with beam with high background
[u/mrichter/AliRoot.git] / EVGEN / AliGenMC.h
index ae136b9fdea349bb4e309497cad11d61468612c2..4ffd264ee72c2a722b7dbd78f867e7e284fd95db 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,12 +59,8 @@ 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 BeamCrossAngle();
     virtual void AddHeader(AliGenEventHeader* header);
-    virtual void   GetProjectile(TString& tar, Int_t& a, Int_t& z) const
-    {tar = fProjectile; a = fAProjectile; z = fZProjectile;}    
-    virtual void   GetTarget(TString& tar, Int_t& a, Int_t& z) const
-    {tar = fTarget; a = fATarget; z = fZTarget;}    
-    virtual Float_t GetEnergyCMS() const { return fEnergyCMS; }
 
  protected:
     // check if particle is selected as parent particle
@@ -72,7 +68,7 @@ class AliGenMC : public AliGenerator
     // 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:
@@ -94,23 +90,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
-    Float_t      fEnergyCMS;     //Centre of mass energy
  private:
     AliGenMC(const AliGenMC &MC);
     AliGenMC & operator=(const AliGenMC & rhs);
     
-    ClassDef(AliGenMC,6)       // AliGenerator implementation for generators using MC methods
+    ClassDef(AliGenMC,7)       // AliGenerator implementation for generators using MC methods
 };
 #endif