]> 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 68c200a0ca1b71cf6fbe7d230b509e9a4b2703c2..4ffd264ee72c2a722b7dbd78f867e7e284fd95db 100644 (file)
 // decay products and particle selection.
 // andreas.morsch@cern.ch
 
-class TClonesArray;
-class TParticle;
+#include<TClonesArray.h>
 #include <TArrayI.h>   
 #include <TString.h>
+class TParticle;
 
 class AliGeometry;
 class AliGenEventHeader;
-
-#include "AliDecayer.h"
 #include "AliGenerator.h"
+#include "AliDecayer.h"
 
 class AliGenMC : public AliGenerator
 {
@@ -60,52 +59,48 @@ 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);
+
  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:
-    TClonesArray* fParticles;   //!Particle  List
-    TArrayI     fParentSelect;  //!Parent particles to be selected 
-    TArrayI     fChildSelect;   //!Decay products to be selected
-    Int_t       fCutOnChild;    // Cuts on decay products (children)  are enabled/disabled
-    Float_t     fChildPtMin;    // Children minimum pT
-    Float_t     fChildPtMax;    // Children maximum pT
-    Float_t     fChildPMin;     // Children minimum p
-    Float_t     fChildPMax;     // Children maximum p
-    Float_t     fChildPhiMin;   // Children minimum phi
-    Float_t     fChildPhiMax;   // Children maximum phi
-    Float_t     fChildThetaMin; // Children minimum theta
-    Float_t     fChildThetaMax; // Children maximum theta
-    Float_t     fChildYMin;     // Children minimum y
-    Float_t     fChildYMax;     // Children maximum y
-    Float_t     fXingAngleX;    // Crossing angle X
-    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
-    
+    TClonesArray fParticles;     //!Particle  List
+    TArrayI      fParentSelect;  //!Parent particles to be selected 
+    TArrayI      fChildSelect;   //!Decay products to be selected
+    Int_t        fCutOnChild;    // Cuts on decay products (children)  are enabled/disabled
+    Float_t      fChildPtMin;    // Children minimum pT
+    Float_t      fChildPtMax;    // Children maximum pT
+    Float_t      fChildPMin;     // Children minimum p
+    Float_t      fChildPMax;     // Children maximum p
+    Float_t      fChildPhiMin;   // Children minimum phi
+    Float_t      fChildPhiMax;   // Children maximum phi
+    Float_t      fChildThetaMin; // Children minimum theta
+    Float_t      fChildThetaMax; // Children maximum theta
+    Float_t      fChildYMin;     // Children minimum y
+    Float_t      fChildYMax;     // Children maximum y
+    Float_t      fXingAngleX;    // Crossing angle X
+    Float_t      fXingAngleY;    // Crossing angle Y    
+    Decay_t      fForceDecay;    // Decay channel forced
+    Float_t      fMaxLifeTime;   // Maximum lifetime for unstable particles
+    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