X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EVGEN%2FAliGenMC.h;h=4d147a74eb7ee83b7170f0c920956b7d78f25eb7;hb=e905f1e1783fc52473c359a6a6879bcc420050be;hp=ae136b9fdea349bb4e309497cad11d61468612c2;hpb=befa366cb32aba84a9d22c064fa5493eeef776f5;p=u%2Fmrichter%2FAliRoot.git diff --git a/EVGEN/AliGenMC.h b/EVGEN/AliGenMC.h index ae136b9fdea..4d147a74eb7 100644 --- a/EVGEN/AliGenMC.h +++ b/EVGEN/AliGenMC.h @@ -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,9 @@ 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); - 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 +69,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 +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 - 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