AliRoot Core  3dc7879 (3dc7879)
AliGenerator Class Referenceabstract

#include <AliGenerator.h>

Inheritance diagram for AliGenerator:

Public Member Functions

 AliGenerator ()
 
 AliGenerator (Int_t npart)
 
virtual ~AliGenerator ()
 
virtual void Init ()
 
virtual void SetOrigin (Float_t ox, Float_t oy, Float_t oz)
 
virtual void SetOrigin (const TLorentzVector &o)
 
virtual void SetSigma (Float_t sx, Float_t sy, Float_t sz)
 
virtual void SetSigmaZ (Float_t sz)
 
virtual void SetMomentumRange (Float_t pmin=0, Float_t pmax=1.e10)
 
virtual void SetPtRange (Float_t ptmin=0, Float_t ptmax=1.e10)
 
virtual void SetPhiRange (Float_t phimin=0., Float_t phimax=360.)
 
virtual void SetYRange (Float_t ymin=-100, Float_t ymax=100)
 
virtual void SetVRange (Float_t vxmin, Float_t vxmax, Float_t vymin, Float_t vymax, Float_t vzmin, Float_t vzmax)
 
virtual void SetNumberParticles (Int_t npart=100)
 
virtual Int_t NumberParticles () const
 
virtual void SetThetaRange (Float_t thetamin=0, Float_t thetamax=180)
 
virtual void GenerateN (Int_t ntimes)
 
virtual void Generate ()=0
 
virtual void SetParentWeight (Float_t wgt)
 
virtual void SetChildWeight (Float_t wgt)
 
virtual void SetAnalog (Int_t flag=1)
 
virtual void SetVertexSmear (VertexSmear_t smear)
 
virtual void SetCutVertexZ (Float_t cut=999999.)
 
virtual void SetVertexSource (VertexSource_t source=kInternal)
 
virtual void SetVertex (Float_t vx, Float_t vy, Float_t vz, Float_t t=0)
 
void SetVertexGenerator (AliVertexGenerator *vertexGenerator)
 
AliVertexGeneratorGetVertexGenerator () const
 
void SetPileUpTimeWindow (Float_t pileUpTimeW)
 
virtual void SetTime (Float_t time)
 
virtual void SetTimeOrigin (Float_t timeorig)
 
virtual void SetTrackingFlag (Int_t flag=1)
 
void Vertex ()
 
void VertexExternal ()
 
virtual void VertexInternal ()
 
virtual void FinishRun ()
 
virtual void SetMC (TGenerator *theMC)
 
virtual TGenerator * GetMC () const
 
virtual void AddHeader (AliGenEventHeader *)
 
virtual void SetContainer (AliGenerator *container)
 
virtual void SetEventPlane (Float_t evPlane)
 
virtual void GetOrigin (Float_t &ox, Float_t &oy, Float_t &oz) const
 
virtual void GetOrigin (TLorentzVector &o) const
 
void SetStack (AliStack *stack)
 
AliStackGetStack ()
 
virtual Bool_t ProvidesCollisionGeometry () const
 
virtual Bool_t NeedsCollisionGeometry () const
 
virtual AliCollisionGeometryCollisionGeometry () const
 
virtual void SetCollisionGeometry (AliCollisionGeometry *geom)
 
virtual Float_t GetEnergyCMS () const
 
virtual void SetEnergyCMS (Float_t energy=0)
 
virtual void GetProjectile (TString &tar, Int_t &a, Int_t &z) const
 
virtual void GetTarget (TString &tar, Int_t &a, Int_t &z) const
 
virtual void SetProjectile (TString proj="", Int_t a=0, Int_t z=0)
 
virtual void SetTarget (TString tar="", Int_t a=0, Int_t z=0)
 
virtual void SetSeed (UInt_t seed)
 
- Public Member Functions inherited from AliRndm
 AliRndm ()
 
 AliRndm (const AliRndm &rn)
 
virtual ~AliRndm ()
 
AliRndmoperator= (const AliRndm &rn)
 
virtual void SetRandom (TRandom *ran=0)
 
virtual TRandom * GetRandom () const
 
virtual void Rndm (Float_t *array, Int_t size) const
 
virtual Float_t Rndm () const
 
virtual void WriteRandom (const char *filename) const
 
virtual void ReadRandom (const char *filename)
 

Protected Types

enum  {
  kThetaRange = BIT(14), kVertexRange = BIT(15), kPhiRange = BIT(16), kPtRange = BIT(17),
  kYRange = BIT(18), kMomentumRange = BIT(19), kEtaRange = BIT(20)
}
 Collision geometry. More...
 

Protected Member Functions

virtual void PushTrack (Int_t done, Int_t parent, Int_t pdg, Float_t *pmom, Float_t *vpos, Float_t *polar, Float_t tof, TMCProcess mech, Int_t &ntr, Float_t weight=1, Int_t is=0)
 
virtual void PushTrack (Int_t done, Int_t parent, Int_t pdg, Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vx, Double_t vy, Double_t vz, Double_t tof, Double_t polx, Double_t poly, Double_t polz, TMCProcess mech, Int_t &ntr, Float_t weight=1, Int_t is=0)
 
virtual void KeepTrack (Int_t itrack)
 
virtual void SetHighWaterMark (Int_t nt)
 

Protected Attributes

TGenerator * fMCEvGen
 
Float_t fThetaMin
 Pointer to the generator. More...
 
Float_t fThetaMax
 
Float_t fPhiMin
 
Float_t fPhiMax
 
Float_t fPMin
 
Float_t fPMax
 
Float_t fPtMin
 
Float_t fPtMax
 
Float_t fYMin
 
Float_t fYMax
 
TArrayF fVMin
 
TArrayF fVMax
 
Int_t fNpart
 
Float_t fParentWeight
 
Float_t fChildWeight
 
Int_t fAnalog
 
VertexSmear_t fVertexSmear
 
VertexSource_t fVertexSource
 
Float_t fCutVertexZ
 
Float_t fPileUpTimeWindow
 
Int_t fTrackIt
 
AliVertexGeneratorfVertexGenerator
 
TArrayF fOrigin
 Generator for the vertex. More...
 
TArrayF fOsigma
 
TArrayF fVertex
 
Float_t fTimeOrigin
 Vertex of current event. More...
 
Float_t fTime
 
Float_t fEvPlane
 
AliStackfStack
 
AliGeneratorfContainer
 Local pointer to stack. More...
 
AliCollisionGeometryfCollisionGeometry
 Local pointer to container. More...
 
Float_t fEnergyCMS
 
Int_t fAProjectile
 
Int_t fZProjectile
 
Int_t fATarget
 
Int_t fZTarget
 
TString fProjectile
 
TString fTarget
 
- Protected Attributes inherited from AliRndm
TRandom * fRandom
 

Private Member Functions

 AliGenerator (const AliGenerator &gen)
 
AliGeneratoroperator= (const AliGenerator &gen)
 

Detailed Description

Definition at line 33 of file AliGenerator.h.

Member Enumeration Documentation

anonymous enum
protected

Collision geometry.

Enumerator
kThetaRange 
kVertexRange 
kPhiRange 
kPtRange 
kYRange 
kMomentumRange 
kEtaRange 

Definition at line 165 of file AliGenerator.h.

Constructor & Destructor Documentation

AliGenerator::AliGenerator ( )

Definition at line 53 of file AliGenerator.cxx.

AliGenerator::AliGenerator ( Int_t  npart)

Definition at line 124 of file AliGenerator.cxx.

AliGenerator::~AliGenerator ( )
virtual

Definition at line 197 of file AliGenerator.cxx.

AliGenerator::AliGenerator ( const AliGenerator gen)
private

Member Function Documentation

virtual void AliGenerator::AddHeader ( AliGenEventHeader )
inlinevirtual

Definition at line 82 of file AliGenerator.h.

Referenced by AliGenParamPionsKaons::Generate().

virtual AliCollisionGeometry* AliGenerator::CollisionGeometry ( ) const
inlinevirtual

Definition at line 98 of file AliGenerator.h.

void AliGenerator::FinishRun ( )
virtual
void AliGenerator::GenerateN ( Int_t  ntimes)
virtual

Definition at line 219 of file AliGenerator.cxx.

Referenced by NumberParticles().

virtual Float_t AliGenerator::GetEnergyCMS ( ) const
inlinevirtual

Definition at line 101 of file AliGenerator.h.

Referenced by AliSimulation::WriteGRPEntry().

virtual TGenerator* AliGenerator::GetMC ( ) const
inlinevirtual

Definition at line 81 of file AliGenerator.h.

virtual void AliGenerator::GetOrigin ( Float_t &  ox,
Float_t &  oy,
Float_t &  oz 
) const
inlinevirtual

Definition at line 88 of file AliGenerator.h.

virtual void AliGenerator::GetOrigin ( TLorentzVector &  o) const
inlinevirtual

Definition at line 90 of file AliGenerator.h.

virtual void AliGenerator::GetProjectile ( TString &  tar,
Int_t &  a,
Int_t &  z 
) const
inlinevirtual

Definition at line 103 of file AliGenerator.h.

Referenced by AliSimulation::WriteGRPEntry().

AliStack* AliGenerator::GetStack ( )
inline

Definition at line 94 of file AliGenerator.h.

virtual void AliGenerator::GetTarget ( TString &  tar,
Int_t &  a,
Int_t &  z 
) const
inlinevirtual

Definition at line 105 of file AliGenerator.h.

Referenced by AliSimulation::WriteGRPEntry().

AliVertexGenerator* AliGenerator::GetVertexGenerator ( ) const
inline

Definition at line 68 of file AliGenerator.h.

Referenced by AliSimulation::GenerateTimeStamp().

void AliGenerator::Init ( void  )
virtual
void AliGenerator::KeepTrack ( Int_t  itrack)
protectedvirtual

Definition at line 433 of file AliGenerator.cxx.

Referenced by SetTarget().

virtual Bool_t AliGenerator::NeedsCollisionGeometry ( ) const
inlinevirtual

Definition at line 97 of file AliGenerator.h.

virtual Int_t AliGenerator::NumberParticles ( ) const
inlinevirtual

Definition at line 54 of file AliGenerator.h.

AliGenerator& AliGenerator::operator= ( const AliGenerator gen)
private
virtual Bool_t AliGenerator::ProvidesCollisionGeometry ( ) const
inlinevirtual

Definition at line 96 of file AliGenerator.h.

void AliGenerator::PushTrack ( Int_t  done,
Int_t  parent,
Int_t  pdg,
Float_t *  pmom,
Float_t *  vpos,
Float_t *  polar,
Float_t  tof,
TMCProcess  mech,
Int_t &  ntr,
Float_t  weight = 1,
Int_t  is = 0 
)
protectedvirtual

Definition at line 395 of file AliGenerator.cxx.

Referenced by AliGenParamPionsKaons::Generate(), and SetTarget().

void AliGenerator::PushTrack ( Int_t  done,
Int_t  parent,
Int_t  pdg,
Double_t  px,
Double_t  py,
Double_t  pz,
Double_t  e,
Double_t  vx,
Double_t  vy,
Double_t  vz,
Double_t  tof,
Double_t  polx,
Double_t  poly,
Double_t  polz,
TMCProcess  mech,
Int_t &  ntr,
Float_t  weight = 1,
Int_t  is = 0 
)
protectedvirtual

Definition at line 413 of file AliGenerator.cxx.

virtual void AliGenerator::SetAnalog ( Int_t  flag = 1)
inlinevirtual

Definition at line 60 of file AliGenerator.h.

virtual void AliGenerator::SetChildWeight ( Float_t  wgt)
inlinevirtual

Definition at line 59 of file AliGenerator.h.

virtual void AliGenerator::SetCollisionGeometry ( AliCollisionGeometry geom)
inlinevirtual

Definition at line 99 of file AliGenerator.h.

virtual void AliGenerator::SetContainer ( AliGenerator container)
inlinevirtual

Definition at line 83 of file AliGenerator.h.

virtual void AliGenerator::SetCutVertexZ ( Float_t  cut = 999999.)
inlinevirtual

Definition at line 62 of file AliGenerator.h.

Referenced by AliGenerator(), and Config().

virtual void AliGenerator::SetEnergyCMS ( Float_t  energy = 0)
inlinevirtual

Definition at line 102 of file AliGenerator.h.

virtual void AliGenerator::SetEventPlane ( Float_t  evPlane)
inlinevirtual

Definition at line 84 of file AliGenerator.h.

void AliGenerator::SetHighWaterMark ( Int_t  nt)
protectedvirtual

Definition at line 446 of file AliGenerator.cxx.

Referenced by SetTarget().

virtual void AliGenerator::SetMC ( TGenerator *  theMC)
inlinevirtual

Definition at line 80 of file AliGenerator.h.

void AliGenerator::SetMomentumRange ( Float_t  pmin = 0,
Float_t  pmax = 1.e10 
)
virtual

Definition at line 266 of file AliGenerator.cxx.

Referenced by AliGenerator(), and SetSigmaZ().

virtual void AliGenerator::SetNumberParticles ( Int_t  npart = 100)
inlinevirtual

Definition at line 53 of file AliGenerator.h.

Referenced by AliGenerator().

void AliGenerator::SetOrigin ( Float_t  ox,
Float_t  oy,
Float_t  oz 
)
virtual

Definition at line 233 of file AliGenerator.cxx.

Referenced by Config(), genConfig(), and AliSimulation::RunSimulation().

void AliGenerator::SetOrigin ( const TLorentzVector &  o)
virtual

Definition at line 244 of file AliGenerator.cxx.

virtual void AliGenerator::SetParentWeight ( Float_t  wgt)
inlinevirtual

Definition at line 58 of file AliGenerator.h.

void AliGenerator::SetPhiRange ( Float_t  phimin = 0.,
Float_t  phimax = 360. 
)
virtual

Definition at line 288 of file AliGenerator.cxx.

Referenced by AliGenerator(), and SetSigmaZ().

void AliGenerator::SetPileUpTimeWindow ( Float_t  pileUpTimeW)
inline

Definition at line 69 of file AliGenerator.h.

virtual void AliGenerator::SetProjectile ( TString  proj = "",
Int_t  a = 0,
Int_t  z = 0 
)
inlinevirtual

Definition at line 107 of file AliGenerator.h.

void AliGenerator::SetPtRange ( Float_t  ptmin = 0,
Float_t  ptmax = 1.e10 
)
virtual

Definition at line 277 of file AliGenerator.cxx.

Referenced by AliGenerator(), and SetSigmaZ().

void AliGenerator::SetSeed ( UInt_t  seed)
virtual

Definition at line 463 of file AliGenerator.cxx.

Referenced by AliMCGenHandler::Init(), and SetTarget().

void AliGenerator::SetSigma ( Float_t  sx,
Float_t  sy,
Float_t  sz 
)
virtual

Definition at line 255 of file AliGenerator.cxx.

Referenced by Config(), and AliSimulation::RunSimulation().

virtual void AliGenerator::SetSigmaZ ( Float_t  sz)
inlinevirtual

Definition at line 45 of file AliGenerator.h.

Referenced by AliSimulation::RunSimulation().

void AliGenerator::SetStack ( AliStack stack)
inline
virtual void AliGenerator::SetTarget ( TString  tar = "",
Int_t  a = 0,
Int_t  z = 0 
)
inlinevirtual

Definition at line 109 of file AliGenerator.h.

void AliGenerator::SetThetaRange ( Float_t  thetamin = 0,
Float_t  thetamax = 180 
)
virtual

Definition at line 323 of file AliGenerator.cxx.

Referenced by AliGenerator(), and NumberParticles().

virtual void AliGenerator::SetTime ( Float_t  time)
inlinevirtual

Definition at line 70 of file AliGenerator.h.

virtual void AliGenerator::SetTimeOrigin ( Float_t  timeorig)
inlinevirtual

Definition at line 72 of file AliGenerator.h.

virtual void AliGenerator::SetTrackingFlag ( Int_t  flag = 1)
inlinevirtual

Definition at line 75 of file AliGenerator.h.

Referenced by AliGenerator(), Config(), genConfig(), and AliSimulation::RunSimulation().

virtual void AliGenerator::SetVertex ( Float_t  vx,
Float_t  vy,
Float_t  vz,
Float_t  t = 0 
)
inlinevirtual

Definition at line 64 of file AliGenerator.h.

void AliGenerator::SetVertexGenerator ( AliVertexGenerator vertexGenerator)
inline

Definition at line 66 of file AliGenerator.h.

Referenced by AliSimulation::RunSimulation().

virtual void AliGenerator::SetVertexSmear ( VertexSmear_t  smear)
inlinevirtual

Definition at line 61 of file AliGenerator.h.

Referenced by Config().

virtual void AliGenerator::SetVertexSource ( VertexSource_t  source = kInternal)
inlinevirtual

Definition at line 63 of file AliGenerator.h.

void AliGenerator::SetVRange ( Float_t  vxmin,
Float_t  vxmax,
Float_t  vymin,
Float_t  vymax,
Float_t  vzmin,
Float_t  vzmax 
)
virtual

Definition at line 310 of file AliGenerator.cxx.

Referenced by SetSigmaZ().

void AliGenerator::SetYRange ( Float_t  ymin = -100,
Float_t  ymax = 100 
)
virtual

Definition at line 299 of file AliGenerator.cxx.

Referenced by AliGenerator(), and SetSigmaZ().

void AliGenerator::Vertex ( )

Definition at line 333 of file AliGenerator.cxx.

Referenced by AliGenParamPionsKaons::Generate(), and SetTrackingFlag().

void AliGenerator::VertexExternal ( )

Definition at line 348 of file AliGenerator.cxx.

Referenced by SetTrackingFlag(), and Vertex().

void AliGenerator::VertexInternal ( )
virtual

Definition at line 361 of file AliGenerator.cxx.

Referenced by SetTrackingFlag(), and Vertex().

Member Data Documentation

Int_t AliGenerator::fAnalog
protected

Definition at line 144 of file AliGenerator.h.

Referenced by SetAnalog().

Int_t AliGenerator::fAProjectile
protected

Definition at line 175 of file AliGenerator.h.

Referenced by GetProjectile(), and SetProjectile().

Int_t AliGenerator::fATarget
protected

Definition at line 177 of file AliGenerator.h.

Referenced by GetTarget(), and SetTarget().

Float_t AliGenerator::fChildWeight
protected

Definition at line 143 of file AliGenerator.h.

Referenced by SetChildWeight().

AliCollisionGeometry* AliGenerator::fCollisionGeometry
protected

Local pointer to container.

Definition at line 163 of file AliGenerator.h.

Referenced by CollisionGeometry(), and SetCollisionGeometry().

AliGenerator* AliGenerator::fContainer
protected

Local pointer to stack.

Definition at line 161 of file AliGenerator.h.

Referenced by AliGenParamPionsKaons::Generate(), and SetContainer().

Float_t AliGenerator::fCutVertexZ
protected

Definition at line 148 of file AliGenerator.h.

Referenced by SetCutVertexZ(), and VertexInternal().

Float_t AliGenerator::fEnergyCMS
protected

Definition at line 174 of file AliGenerator.h.

Referenced by GetEnergyCMS(), and SetEnergyCMS().

Float_t AliGenerator::fEvPlane
protected

Definition at line 158 of file AliGenerator.h.

Referenced by SetEventPlane().

TGenerator* AliGenerator::fMCEvGen
protected

Definition at line 128 of file AliGenerator.h.

Referenced by GetMC(), SetMC(), and ~AliGenerator().

Int_t AliGenerator::fNpart
protected
TArrayF AliGenerator::fOrigin
protected

Generator for the vertex.

Definition at line 152 of file AliGenerator.h.

Referenced by AliGenerator(), AliGenParamPionsKaons::Generate(), GetOrigin(), SetOrigin(), VertexInternal(), and ~AliGenerator().

TArrayF AliGenerator::fOsigma
protected

Definition at line 153 of file AliGenerator.h.

Referenced by AliGenerator(), SetSigma(), SetSigmaZ(), VertexInternal(), and ~AliGenerator().

Float_t AliGenerator::fParentWeight
protected

Definition at line 142 of file AliGenerator.h.

Referenced by SetParentWeight().

Float_t AliGenerator::fPhiMax
protected

Definition at line 132 of file AliGenerator.h.

Referenced by AliGenParamPionsKaons::Generate(), and SetPhiRange().

Float_t AliGenerator::fPhiMin
protected

Definition at line 131 of file AliGenerator.h.

Referenced by AliGenParamPionsKaons::Generate(), and SetPhiRange().

Float_t AliGenerator::fPileUpTimeWindow
protected

Definition at line 149 of file AliGenerator.h.

Referenced by SetPileUpTimeWindow().

Float_t AliGenerator::fPMax
protected

Definition at line 134 of file AliGenerator.h.

Referenced by AliGenParamPionsKaons::Generate(), and SetMomentumRange().

Float_t AliGenerator::fPMin
protected

Definition at line 133 of file AliGenerator.h.

Referenced by SetMomentumRange().

TString AliGenerator::fProjectile
protected

Definition at line 179 of file AliGenerator.h.

Referenced by GetProjectile(), and SetProjectile().

Float_t AliGenerator::fPtMax
protected

Definition at line 136 of file AliGenerator.h.

Referenced by AliGenParamPionsKaons::Generate(), and SetPtRange().

Float_t AliGenerator::fPtMin
protected

Definition at line 135 of file AliGenerator.h.

Referenced by SetPtRange().

AliStack* AliGenerator::fStack
protected

Definition at line 160 of file AliGenerator.h.

Referenced by GetStack(), KeepTrack(), PushTrack(), SetHighWaterMark(), and SetStack().

TString AliGenerator::fTarget
protected

Definition at line 180 of file AliGenerator.h.

Referenced by GetTarget(), and SetTarget().

Float_t AliGenerator::fThetaMax
protected

Definition at line 130 of file AliGenerator.h.

Referenced by AliGenParamPionsKaons::Generate(), and SetThetaRange().

Float_t AliGenerator::fThetaMin
protected

Pointer to the generator.

Definition at line 129 of file AliGenerator.h.

Referenced by SetThetaRange().

Float_t AliGenerator::fTime
protected
Float_t AliGenerator::fTimeOrigin
protected

Vertex of current event.

Definition at line 156 of file AliGenerator.h.

Referenced by AliGenParamPionsKaons::Generate(), SetTimeOrigin(), and VertexInternal().

Int_t AliGenerator::fTrackIt
protected

Definition at line 150 of file AliGenerator.h.

Referenced by SetTrackingFlag().

TArrayF AliGenerator::fVertex
protected
AliVertexGenerator* AliGenerator::fVertexGenerator
protected

Definition at line 151 of file AliGenerator.h.

Referenced by GetVertexGenerator(), SetVertexGenerator(), and VertexExternal().

VertexSmear_t AliGenerator::fVertexSmear
protected
VertexSource_t AliGenerator::fVertexSource
protected

Definition at line 147 of file AliGenerator.h.

Referenced by SetVertexGenerator(), SetVertexSource(), and Vertex().

TArrayF AliGenerator::fVMax
protected

Definition at line 140 of file AliGenerator.h.

Referenced by AliGenerator(), SetVRange(), and VertexInternal().

TArrayF AliGenerator::fVMin
protected

Definition at line 139 of file AliGenerator.h.

Referenced by AliGenerator(), SetVRange(), and VertexInternal().

Float_t AliGenerator::fYMax
protected

Definition at line 138 of file AliGenerator.h.

Referenced by AliGenParamPionsKaons::Generate(), and SetYRange().

Float_t AliGenerator::fYMin
protected

Definition at line 137 of file AliGenerator.h.

Referenced by SetYRange().

Int_t AliGenerator::fZProjectile
protected

Definition at line 176 of file AliGenerator.h.

Referenced by GetProjectile(), and SetProjectile().

Int_t AliGenerator::fZTarget
protected

Definition at line 178 of file AliGenerator.h.

Referenced by GetTarget(), and SetTarget().


The documentation for this class was generated from the following files: