Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TGeant4 Class Reference

Implementation of the TVirtualMC interface for Geant4. More...

#include <TGeant4.h>

Inheritance diagram for TGeant4:

Public Member Functions

 TGeant4 (const char *name, const char *title, TG4RunConfiguration *configuration, int argc=0, char **argv=0)
 
virtual ~TGeant4 ()
 
virtual Bool_t IsRootGeometrySupported () const
 
virtual void FinishGeometry ()
 
virtual void Gfmate (Int_t imat, char *name, Float_t &a, Float_t &z, Float_t &dens, Float_t &radl, Float_t &absl, Float_t *ubuf, Int_t &nbuf)
 
virtual void Gfmate (Int_t imat, char *name, Double_t &a, Double_t &z, Double_t &dens, Double_t &radl, Double_t &absl, Double_t *ubuf, Int_t &nbuf)
 
virtual void Gckmat (Int_t itmed, char *natmed)
 
virtual void Material (Int_t &kmat, const char *name, Double_t a, Double_t z, Double_t dens, Double_t radl, Double_t absl, Float_t *buf, Int_t nwbuf)
 
virtual void Material (Int_t &kmat, const char *name, Double_t a, Double_t z, Double_t dens, Double_t radl, Double_t absl, Double_t *buf, Int_t nwbuf)
 
virtual void Mixture (Int_t &kmat, const char *name, Float_t *a, Float_t *z, Double_t dens, Int_t nlmat, Float_t *wmat)
 
virtual void Mixture (Int_t &kmat, const char *name, Double_t *a, Double_t *z, Double_t dens, Int_t nlmat, Double_t *wmat)
 
virtual void Medium (Int_t &kmed, const char *name, Int_t nmat, Int_t isvol, Int_t ifield, Double_t fieldm, Double_t tmaxfd, Double_t stemax, Double_t deemax, Double_t epsil, Double_t stmin, Float_t *ubuf, Int_t nbuf)
 
virtual void Medium (Int_t &kmed, const char *name, Int_t nmat, Int_t isvol, Int_t ifield, Double_t fieldm, Double_t tmaxfd, Double_t stemax, Double_t deemax, Double_t epsil, Double_t stmin, Double_t *ubuf, Int_t nbuf)
 
virtual void Matrix (Int_t &krot, Double_t thetaX, Double_t phiX, Double_t thetaY, Double_t phiY, Double_t thetaZ, Double_t phiZ)
 
virtual void SetCerenkov (Int_t itmed, Int_t npckov, Float_t *ppckov, Float_t *absco, Float_t *effic, Float_t *rindex, Bool_t aspline=false, Bool_t rspline=false)
 
virtual void SetCerenkov (Int_t itmed, Int_t npckov, Double_t *ppckov, Double_t *absco, Double_t *effic, Double_t *rindex, Bool_t aspline=false, Bool_t rspline=false)
 
virtual void DefineOpSurface (const char *name, EMCOpSurfaceModel model, EMCOpSurfaceType surfaceType, EMCOpSurfaceFinish surfaceFinish, Double_t sigmaAlpha)
 
virtual void SetBorderSurface (const char *name, const char *vol1Name, int vol1CopyNo, const char *vol2Name, int vol2CopyNo, const char *opSurfaceName)
 
virtual void SetSkinSurface (const char *name, const char *volName, const char *opSurfaceName)
 
virtual void SetMaterialProperty (Int_t itmed, const char *propertyName, Int_t np, Double_t *pp, Double_t *values, Bool_t createNewKey=false, Bool_t spline=false)
 
virtual void SetMaterialProperty (Int_t itmed, const char *propertyName, Double_t value)
 
virtual void SetMaterialProperty (const char *surfaceName, const char *propertyName, Int_t np, Double_t *pp, Double_t *values, Bool_t createNewKey=false, Bool_t spline=false)
 
virtual Bool_t GetTransformation (const TString &volumePath, TGeoHMatrix &matrix)
 
virtual Bool_t GetShape (const TString &volumePath, TString &shapeType, TArrayD &par)
 
virtual Bool_t GetMaterial (Int_t imat, TString &name, Double_t &a, Double_t &z, Double_t &density, Double_t &radl, Double_t &inter, TArrayD &par)
 
virtual Bool_t GetMaterial (const TString &volumeName, TString &name, Int_t &imat, Double_t &a, Double_t &z, Double_t &density, Double_t &radl, Double_t &inter, TArrayD &par)
 
virtual Bool_t GetMedium (const TString &volumeName, TString &name, Int_t &imed, Int_t &nmat, Int_t &isvol, Int_t &ifield, Double_t &fieldm, Double_t &tmaxfd, Double_t &stemax, Double_t &deemax, Double_t &epsil, Double_t &stmin, TArrayD &par)
 
virtual Int_t Gsvolu (const char *name, const char *shape, Int_t nmed, Double_t *upar, Int_t np)
 
virtual Int_t Gsvolu (const char *name, const char *shape, Int_t nmed, Float_t *upar, Int_t np)
 
virtual void Gsdvn (const char *name, const char *mother, Int_t ndiv, Int_t iaxis)
 
virtual void Gsdvn2 (const char *name, const char *mother, Int_t ndiv, Int_t iaxis, Double_t c0i, Int_t numed)
 
virtual void Gsdvt (const char *name, const char *mother, Double_t step, Int_t iaxis, Int_t numed, Int_t ndvmx)
 
virtual void Gsdvt2 (const char *name, const char *mother, Double_t step, Int_t iaxis, Double_t c0, Int_t numed, Int_t ndvmx)
 
virtual void Gsord (const char *name, Int_t iax)
 
virtual void Gspos (const char *name, Int_t nr, const char *mother, Double_t x, Double_t y, Double_t z, Int_t irot, const char *konly="ONLY")
 
virtual void Gsposp (const char *name, Int_t nr, const char *mother, Double_t x, Double_t y, Double_t z, Int_t irot, const char *konly, Double_t *upar, Int_t np)
 
virtual void Gsposp (const char *name, Int_t nr, const char *mother, Double_t x, Double_t y, Double_t z, Int_t irot, const char *konly, Float_t *upar, Int_t np)
 
virtual void Gsbool (const char *onlyVolName, const char *manyVolName)
 
virtual void WriteEuclid (const char *fileName, const char *topVol, Int_t number, Int_t nlevel)
 
virtual void SetRootGeometry ()
 
virtual void SetUserParameters (Bool_t isUserParameters)
 
virtual Int_t VolId (const Text_t *volName) const
 
virtual const char * VolName (Int_t id) const
 
virtual Int_t MediumId (const Text_t *medName) const
 
virtual Int_t NofVolumes () const
 
virtual Int_t NofVolDaughters (const char *volName) const
 
virtual const char * VolDaughterName (const char *volName, Int_t i) const
 
virtual Int_t VolDaughterCopyNo (const char *volName, Int_t i) const
 
virtual Int_t VolId2Mate (Int_t id) const
 
virtual void SetSensitiveDetector (const TString &volName, TVirtualMCSensitiveDetector *sd)
 
virtual TVirtualMCSensitiveDetector * GetSensitiveDetector (const TString &volName) const
 
virtual void SetExclusiveSDScoring (Bool_t exclusiveSDScoring)
 
virtual void BuildPhysics ()
 
virtual void Gstpar (Int_t itmed, const char *param, Double_t parval)
 
virtual Bool_t SetCut (const char *cutName, Double_t cutValue)
 
virtual Bool_t SetProcess (const char *flagName, Int_t flagValue)
 
virtual Bool_t DefineParticle (Int_t pdg, const char *name, TMCParticleType mcType, Double_t mass, Double_t charge, Double_t lifetime)
 
virtual Bool_t DefineParticle (Int_t pdg, const char *name, TMCParticleType mcType, Double_t mass, Double_t charge, Double_t lifetime, const TString &pType, Double_t width, Int_t iSpin, Int_t iParity, Int_t iConjugation, Int_t iIsospin, Int_t iIsospinZ, Int_t gParity, Int_t lepton, Int_t baryon, Bool_t stable, Bool_t shortlived=kFALSE, const TString &subType="", Int_t antiEncoding=0, Double_t magMoment=0.0, Double_t excitation=0.0)
 
virtual Bool_t DefineIon (const char *name, Int_t Z, Int_t A, Int_t Q, Double_t excEnergy, Double_t mass)
 
virtual Double_t Xsec (char *reac, Double_t energy, Int_t part, Int_t mate)
 
virtual Int_t IdFromPDG (Int_t pdgID) const
 
virtual Int_t PDGFromId (Int_t mcID) const
 
virtual TString ParticleName (Int_t pdg) const
 
virtual Double_t ParticleMass (Int_t pdg) const
 
virtual Double_t ParticleCharge (Int_t pdg) const
 
virtual Double_t ParticleLifeTime (Int_t pdg) const
 
virtual TMCParticleType ParticleMCType (Int_t pdg) const
 
virtual void StopTrack ()
 
virtual void InterruptTrack ()
 
virtual void StopEvent ()
 
virtual void StopRun ()
 
virtual void SetMaxStep (Double_t)
 
virtual void SetMaxNStep (Int_t)
 
virtual void SetUserDecay (Int_t)
 
virtual void ForceDecayTime (Float_t)
 
virtual Bool_t SetDecayMode (Int_t pdg, Float_t bratio[6], Int_t mode[6][3])
 
virtual Int_t CurrentVolID (Int_t &copyNo) const
 
virtual Int_t CurrentVolOffID (Int_t off, Int_t &copyNo) const
 
virtual const char * CurrentVolName () const
 
virtual const char * CurrentVolOffName (Int_t off) const
 
virtual const char * CurrentVolPath ()
 
virtual Bool_t CurrentBoundaryNormal (Double_t &x, Double_t &y, Double_t &z) const
 
virtual Int_t CurrentMaterial (Float_t &a, Float_t &z, Float_t &dens, Float_t &radl, Float_t &absl) const
 
virtual Int_t CurrentMedium () const
 
virtual void Gmtod (Float_t *xm, Float_t *xd, Int_t iflag)
 
virtual void Gmtod (Double_t *xm, Double_t *xd, Int_t iflag)
 
virtual void Gdtom (Float_t *xd, Float_t *xm, Int_t iflag)
 
virtual void Gdtom (Double_t *xd, Double_t *xm, Int_t iflag)
 
virtual Double_t MaxStep () const
 
virtual Int_t GetMaxNStep () const
 
virtual Int_t GetMedium () const
 
virtual void TrackPosition (TLorentzVector &position) const
 
virtual void TrackPosition (Double_t &x, Double_t &y, Double_t &z) const
 
virtual void TrackPosition (Float_t &x, Float_t &y, Float_t &z) const
 
virtual void TrackMomentum (TLorentzVector &momentum) const
 
virtual void TrackMomentum (Double_t &px, Double_t &py, Double_t &pz, Double_t &etot) const
 
virtual void TrackMomentum (Float_t &px, Float_t &py, Float_t &pz, Float_t &etot) const
 
virtual Double_t TrackStep () const
 
virtual Double_t TrackLength () const
 
virtual Double_t TrackTime () const
 
virtual Double_t Edep () const
 
virtual Double_t NIELEdep () const
 
virtual Int_t StepNumber () const
 
virtual Double_t TrackWeight () const
 
virtual void TrackPolarization (Double_t &polX, Double_t &polY, Double_t &polZ) const
 
virtual void TrackPolarization (TVector3 &pol) const
 
virtual Int_t TrackPid () const
 
virtual Double_t TrackCharge () const
 
virtual Double_t TrackMass () const
 
virtual Double_t Etot () const
 
virtual Bool_t IsTrackInside () const
 
virtual Bool_t IsTrackEntering () const
 
virtual Bool_t IsTrackExiting () const
 
virtual Bool_t IsTrackOut () const
 
virtual Bool_t IsTrackDisappeared () const
 
virtual Bool_t IsTrackStop () const
 
virtual Bool_t IsTrackAlive () const
 
virtual Bool_t IsNewTrack () const
 
virtual Int_t NSecondaries () const
 
virtual void GetSecondary (Int_t isec, Int_t &particleId, TLorentzVector &position, TLorentzVector &momentum)
 
virtual TMCProcess ProdProcess (Int_t isec) const
 
virtual Int_t StepProcesses (TArrayI &proc) const
 
virtual void DrawOneSpec (const char *name)
 
virtual void Gsatt (const char *name, const char *att, Int_t val)
 
virtual void Gdraw (const char *, Double_t theta, Double_t phi, Double_t psi, Double_t u0, Double_t v0, Double_t ul, Double_t vl)
 
virtual void Gdopt (const char *name, const char *value)
 
virtual void SetClipBox (const char *name, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Double_t zmin, Double_t zmax)
 
virtual void DefaultRange ()
 
virtual void Gdhead (Int_t isel, const char *name, Double_t chrsiz)
 
virtual void Gdman (Double_t u, Double_t v, const char *type)
 
virtual void InitLego ()
 
virtual void Init ()
 
virtual void InitMT (Int_t threadRank)
 
virtual void ProcessEvent ()
 
virtual void ProcessEvent (Int_t eventId)
 
virtual void ProcessEvent (Int_t eventId, Bool_t isInterruptible)
 
virtual Bool_t ProcessRun (Int_t nofEvents)
 
Bool_t FinishRun ()
 
virtual void SetCollectTracks (Bool_t collectTracks)
 
virtual Bool_t IsCollectTracks () const
 
virtual Bool_t IsMT () const
 
void SetRandomSeed ()
 
void StartGeantUI ()
 
void StartRootUI ()
 
void ProcessGeantMacro (const char *macroName)
 
void ProcessGeantCommand (const char *commandPath)
 
TGeant4CloneForWorker () const
 
virtual Int_t CurrentEvent () const
 
virtual Bool_t SecondariesAreOrdered () const
 

Static Public Member Functions

static TGeant4MasterInstance ()
 
static TVirtualMCApplication * MasterApplicationInstance ()
 

Private Member Functions

 TGeant4 ()
 Not implemented.
 
 TGeant4 (const TGeant4 &right)
 Not implemented.
 
TGeant4operator= (const TGeant4 &right)
 Not implemented.
 

Private Attributes

TG4StateManagerfStateManager
 application state manager
 
TG4GeometryManagerfGeometryManager
 geometry manager
 
TG4SDManagerfSDManager
 sensitive detectors manager
 
TG4PhysicsManagerfPhysicsManager
 physics manager
 
TG4StepManagerfStepManager
 step manager
 
TG4VisManagerfVisManager
 visualization manager
 
G4VisExecutive * fVisExecutive
 Geant4 visualization manager.
 
TG4RunManagerfRunManager
 run manager
 
TG4RunConfigurationfRunConfiguration
 run configuration
 
Int_t fMediumCounter
 global medium counter
 
Int_t fMaterialCounter
 global material counter
 
Int_t fMatrixCounter
 global matrix counter
 
TString fUserGeometry
 user geometry
 
Bool_t fIsMT
 multi-threading mode
 

Static Private Attributes

static TGeant4fgMasterInstance = 0
 master instance
 
static TVirtualMCApplication * fgMasterApplicationInstance = 0
 master application instance
 

Detailed Description

Implementation of the TVirtualMC interface for Geant4.

Author
I. Hrivnacova; IPN, Orsay

Definition at line 46 of file TGeant4.h.

Constructor & Destructor Documentation

◆ TGeant4() [1/3]

TGeant4::TGeant4 ( const char * name,
const char * title,
TG4RunConfiguration * configuration,
int argc = 0,
char ** argv = 0 )

Standard constructor

Definition at line 143 of file TGeant4.cxx.

◆ ~TGeant4()

TGeant4::~TGeant4 ( )
virtual

Destructor

Definition at line 239 of file TGeant4.cxx.

◆ TGeant4() [2/3]

TGeant4::TGeant4 ( )
private

Not implemented.

Referenced by CloneForWorker().

◆ TGeant4() [3/3]

TGeant4::TGeant4 ( const TGeant4 & right)
private

Not implemented.

Member Function Documentation

◆ IsRootGeometrySupported()

Bool_t TGeant4::IsRootGeometrySupported ( ) const
virtual

Returns info about supporting geometry defined via Root

Definition at line 271 of file TGeant4.cxx.

◆ FinishGeometry()

void TGeant4::FinishGeometry ( )
virtual

Sets the top VTE in temporary G3 volume table. Close geometry output file (if fWriteGeometry is set true).

Definition at line 279 of file TGeant4.cxx.

◆ Gfmate() [1/2]

void TGeant4::Gfmate ( Int_t imat,
char * name,
Float_t & a,
Float_t & z,
Float_t & dens,
Float_t & radl,
Float_t & absl,
Float_t * ubuf,
Int_t & nbuf )
virtual

Return parameters for material specified by material number imat

Definition at line 291 of file TGeant4.cxx.

◆ Gfmate() [2/2]

void TGeant4::Gfmate ( Int_t imat,
char * name,
Double_t & a,
Double_t & z,
Double_t & dens,
Double_t & radl,
Double_t & absl,
Double_t * ubuf,
Int_t & nbuf )
virtual

Return parameters for material specified by material number imat

Definition at line 301 of file TGeant4.cxx.

◆ Gckmat()

void TGeant4::Gckmat ( Int_t itmed,
char * natmed )
virtual

Function not implemented. Return warning.

Definition at line 311 of file TGeant4.cxx.

◆ Material() [1/2]

void TGeant4::Material ( Int_t & kmat,
const char * name,
Double_t a,
Double_t z,
Double_t dens,
Double_t radl,
Double_t absl,
Float_t * buf,
Int_t nwbuf )
virtual

Create material.
!! Parameters radl, absl, buf, nwbuf are ignored.

Definition at line 320 of file TGeant4.cxx.

◆ Material() [2/2]

void TGeant4::Material ( Int_t & kmat,
const char * name,
Double_t a,
Double_t z,
Double_t dens,
Double_t radl,
Double_t absl,
Double_t * buf,
Int_t nwbuf )
virtual

Create material.
!! Parameters radl, absl, buf, nwbuf are ignored.

Definition at line 335 of file TGeant4.cxx.

◆ Mixture() [1/2]

void TGeant4::Mixture ( Int_t & kmat,
const char * name,
Float_t * a,
Float_t * z,
Double_t dens,
Int_t nlmat,
Float_t * wmat )
virtual

Create material composed of more elements.
!! Parameters radl, absl, buf, nwbuf are ignored.

Definition at line 350 of file TGeant4.cxx.

◆ Mixture() [2/2]

void TGeant4::Mixture ( Int_t & kmat,
const char * name,
Double_t * a,
Double_t * z,
Double_t dens,
Int_t nlmat,
Double_t * wmat )
virtual

Create material composed of more elements.
!! Parameters radl, absl, buf, nwbuf are ignored.

Definition at line 383 of file TGeant4.cxx.

◆ Medium() [1/2]

void TGeant4::Medium ( Int_t & kmed,
const char * name,
Int_t nmat,
Int_t isvol,
Int_t ifield,
Double_t fieldm,
Double_t tmaxfd,
Double_t stemax,
Double_t deemax,
Double_t epsil,
Double_t stmin,
Float_t * ubuf,
Int_t nbuf )
virtual

Create a temporary "medium" that is used for assigning corresponding parameters to G4 objects:

Definition at line 398 of file TGeant4.cxx.

◆ Medium() [2/2]

void TGeant4::Medium ( Int_t & kmed,
const char * name,
Int_t nmat,
Int_t isvol,
Int_t ifield,
Double_t fieldm,
Double_t tmaxfd,
Double_t stemax,
Double_t deemax,
Double_t epsil,
Double_t stmin,
Double_t * ubuf,
Int_t nbuf )
virtual

Create a temporary "medium" that is used for assigning corresponding parameters to G4 objects:

Definition at line 414 of file TGeant4.cxx.

◆ Matrix()

void TGeant4::Matrix ( Int_t & krot,
Double_t thetaX,
Double_t phiX,
Double_t thetaY,
Double_t phiY,
Double_t thetaZ,
Double_t phiZ )
virtual

Create rotation matrix.

Definition at line 430 of file TGeant4.cxx.

◆ SetCerenkov() [1/2]

void TGeant4::SetCerenkov ( Int_t itmed,
Int_t npckov,
Float_t * ppckov,
Float_t * absco,
Float_t * effic,
Float_t * rindex,
Bool_t aspline = false,
Bool_t rspline = false )
virtual

Set the tables for UV photon tracking in medium itmed

Definition at line 575 of file TGeant4.cxx.

◆ SetCerenkov() [2/2]

void TGeant4::SetCerenkov ( Int_t itmed,
Int_t npckov,
Double_t * ppckov,
Double_t * absco,
Double_t * effic,
Double_t * rindex,
Bool_t aspline = false,
Bool_t rspline = false )
virtual

Set the tables for UV photon tracking in medium itmed

Definition at line 588 of file TGeant4.cxx.

◆ DefineOpSurface()

void TGeant4::DefineOpSurface ( const char * name,
EMCOpSurfaceModel model,
EMCOpSurfaceType surfaceType,
EMCOpSurfaceFinish surfaceFinish,
Double_t sigmaAlpha )
virtual

Define the optical surface

Definition at line 601 of file TGeant4.cxx.

◆ SetBorderSurface()

void TGeant4::SetBorderSurface ( const char * name,
const char * vol1Name,
int vol1CopyNo,
const char * vol2Name,
int vol2CopyNo,
const char * opSurfaceName )
virtual

Define the optical border surface

Definition at line 614 of file TGeant4.cxx.

◆ SetSkinSurface()

void TGeant4::SetSkinSurface ( const char * name,
const char * volName,
const char * opSurfaceName )
virtual

Define the optical skin surface

Definition at line 627 of file TGeant4.cxx.

◆ SetMaterialProperty() [1/3]

void TGeant4::SetMaterialProperty ( Int_t itmed,
const char * propertyName,
Int_t np,
Double_t * pp,
Double_t * values,
Bool_t createNewKey = false,
Bool_t spline = false )
virtual

Set the material property specified by propertyName to the tracking medium

Definition at line 639 of file TGeant4.cxx.

◆ SetMaterialProperty() [2/3]

void TGeant4::SetMaterialProperty ( Int_t itmed,
const char * propertyName,
Double_t value )
virtual

Set the material property specified by propertyName to the tracking medium

Definition at line 652 of file TGeant4.cxx.

◆ SetMaterialProperty() [3/3]

void TGeant4::SetMaterialProperty ( const char * surfaceName,
const char * propertyName,
Int_t np,
Double_t * pp,
Double_t * values,
Bool_t createNewKey = false,
Bool_t spline = false )
virtual

Set the material property specified by propertyName to the optical surface

Definition at line 665 of file TGeant4.cxx.

◆ GetTransformation()

Bool_t TGeant4::GetTransformation ( const TString & volumePath,
TGeoHMatrix & matrix )
virtual

Fill the transformation matrix between the volume specified by the path volumePath and the top volume; return false if the path is not found.

Definition at line 679 of file TGeant4.cxx.

◆ GetShape()

Bool_t TGeant4::GetShape ( const TString & volumePath,
TString & shapeType,
TArrayD & par )
virtual

Fill the name of the shape and its parameters for the volume specified by the volume name; return false if the path is not found.

Definition at line 694 of file TGeant4.cxx.

◆ GetMaterial() [1/2]

Bool_t TGeant4::GetMaterial ( Int_t imat,
TString & name,
Double_t & a,
Double_t & z,
Double_t & density,
Double_t & radl,
Double_t & inter,
TArrayD & par )
virtual

Fill the material parameters for the material specified by material ID; return false if the material is not found.

Definition at line 707 of file TGeant4.cxx.

◆ GetMaterial() [2/2]

Bool_t TGeant4::GetMaterial ( const TString & volumeName,
TString & name,
Int_t & imat,
Double_t & a,
Double_t & z,
Double_t & density,
Double_t & radl,
Double_t & inter,
TArrayD & par )
virtual

Fill the material parameters for the volume specified by the volume name; return false if the material is not found.

Definition at line 718 of file TGeant4.cxx.

◆ GetMedium() [1/2]

Bool_t TGeant4::GetMedium ( const TString & volumeName,
TString & name,
Int_t & imed,
Int_t & nmat,
Int_t & isvol,
Int_t & ifield,
Double_t & fieldm,
Double_t & tmaxfd,
Double_t & stemax,
Double_t & deemax,
Double_t & epsil,
Double_t & stmin,
TArrayD & par )
virtual

Fill the medium parameters for the volume specified by the volume name; return false if the material is not found.

Definition at line 732 of file TGeant4.cxx.

◆ Gsvolu() [1/2]

Int_t TGeant4::Gsvolu ( const char * name,
const char * shape,
Int_t nmed,
Double_t * upar,
Int_t np )
virtual

Create volume

Definition at line 444 of file TGeant4.cxx.

◆ Gsvolu() [2/2]

Int_t TGeant4::Gsvolu ( const char * name,
const char * shape,
Int_t nmed,
Float_t * upar,
Int_t np )
virtual

Create volume

Definition at line 455 of file TGeant4.cxx.

◆ Gsdvn()

void TGeant4::Gsdvn ( const char * name,
const char * mother,
Int_t ndiv,
Int_t iaxis )
virtual

Create divided volume

Definition at line 466 of file TGeant4.cxx.

◆ Gsdvn2()

void TGeant4::Gsdvn2 ( const char * name,
const char * mother,
Int_t ndiv,
Int_t iaxis,
Double_t c0i,
Int_t numed )
virtual

Create divided volume

Definition at line 477 of file TGeant4.cxx.

◆ Gsdvt()

void TGeant4::Gsdvt ( const char * name,
const char * mother,
Double_t step,
Int_t iaxis,
Int_t numed,
Int_t ndvmx )
virtual

Create divided volume

Definition at line 489 of file TGeant4.cxx.

◆ Gsdvt2()

void TGeant4::Gsdvt2 ( const char * name,
const char * mother,
Double_t step,
Int_t iaxis,
Double_t c0,
Int_t numed,
Int_t ndvmx )
virtual

Create divided volume

Definition at line 501 of file TGeant4.cxx.

◆ Gsord()

void TGeant4::Gsord ( const char * name,
Int_t iax )
virtual

No corresponding action in G4.

Definition at line 513 of file TGeant4.cxx.

◆ Gspos()

void TGeant4::Gspos ( const char * name,
Int_t nr,
const char * mother,
Double_t x,
Double_t y,
Double_t z,
Int_t irot,
const char * konly = "ONLY" )
virtual

Place a volume into an existing one

Definition at line 523 of file TGeant4.cxx.

◆ Gsposp() [1/2]

void TGeant4::Gsposp ( const char * name,
Int_t nr,
const char * mother,
Double_t x,
Double_t y,
Double_t z,
Int_t irot,
const char * konly,
Double_t * upar,
Int_t np )
virtual

Place a copy of generic volume name with user number nr inside mother, with its parameters upar(1..np)

Definition at line 535 of file TGeant4.cxx.

◆ Gsposp() [2/2]

void TGeant4::Gsposp ( const char * name,
Int_t nr,
const char * mother,
Double_t x,
Double_t y,
Double_t z,
Int_t irot,
const char * konly,
Float_t * upar,
Int_t np )
virtual

Place a copy of generic volume name with user number nr inside mother, with its parameters upar(1..np)

Definition at line 549 of file TGeant4.cxx.

◆ Gsbool()

void TGeant4::Gsbool ( const char * onlyVolName,
const char * manyVolName )
virtual

Help for resolving MANY. Specify the ONLY volume that overlaps with the specified MANY and has to be substracted.

Definition at line 563 of file TGeant4.cxx.

◆ WriteEuclid()

void TGeant4::WriteEuclid ( const char * fileName,
const char * topVol,
Int_t number,
Int_t nlevel )
virtual

Write out the geometry of the detector in EUCLID file format Not implemented

Definition at line 747 of file TGeant4.cxx.

◆ SetRootGeometry()

void TGeant4::SetRootGeometry ( )
virtual

Nothing has to be done here

Definition at line 757 of file TGeant4.cxx.

◆ SetUserParameters()

void TGeant4::SetUserParameters ( Bool_t isUserParameters)
virtual

Activate the parameters defined in tracking media (DEEMAX, STMIN, STEMAX), which are, be default, ignored. In Geant4 case, only STEMAX is taken into account.

Definition at line 763 of file TGeant4.cxx.

◆ VolId()

Int_t TGeant4::VolId ( const Text_t * volName) const
virtual

Return the volume ID = sensitive detector identifier.

Definition at line 776 of file TGeant4.cxx.

◆ VolName()

const char * TGeant4::VolName ( Int_t id) const
virtual

Return the name of the volume specified by volume ID ( = sensitive detector name)

Definition at line 786 of file TGeant4.cxx.

◆ MediumId()

Int_t TGeant4::MediumId ( const Text_t * medName) const
virtual

Return the medium ID for medium with given name

Definition at line 798 of file TGeant4.cxx.

◆ NofVolumes()

Int_t TGeant4::NofVolumes ( ) const
virtual

Return the total number of VMC volumes ( = number of sensitive detectors).

Definition at line 812 of file TGeant4.cxx.

◆ NofVolDaughters()

Int_t TGeant4::NofVolDaughters ( const char * volName) const
virtual

Return the number of daughters of the volume specified by name

Definition at line 823 of file TGeant4.cxx.

◆ VolDaughterName()

const char * TGeant4::VolDaughterName ( const char * volName,
Int_t i ) const
virtual

Return the name of the i-th daughter of the volume specified by name.

Definition at line 833 of file TGeant4.cxx.

◆ VolDaughterCopyNo()

Int_t TGeant4::VolDaughterCopyNo ( const char * volName,
Int_t i ) const
virtual

Return the copyNo of the i-th daughter of the volume specified by name.

Definition at line 843 of file TGeant4.cxx.

◆ VolId2Mate()

Int_t TGeant4::VolId2Mate ( Int_t id) const
virtual

Return the material number for a given volume id

Definition at line 854 of file TGeant4.cxx.

◆ SetSensitiveDetector()

void TGeant4::SetSensitiveDetector ( const TString & volName,
TVirtualMCSensitiveDetector * sd )
virtual

Definition at line 868 of file TGeant4.cxx.

◆ GetSensitiveDetector()

TVirtualMCSensitiveDetector * TGeant4::GetSensitiveDetector ( const TString & volName) const
virtual

Definition at line 877 of file TGeant4.cxx.

◆ SetExclusiveSDScoring()

void TGeant4::SetExclusiveSDScoring ( Bool_t exclusiveSDScoring)
virtual

Definition at line 887 of file TGeant4.cxx.

◆ BuildPhysics()

void TGeant4::BuildPhysics ( )
virtual

Finish initialization of Geant4 after the G4 run manager initialization is finished.

Definition at line 1142 of file TGeant4.cxx.

◆ Gstpar()

void TGeant4::Gstpar ( Int_t itmed,
const char * param,
Double_t parval )
virtual

Pass the tracking medium parameter to TG4Limits.

Definition at line 900 of file TGeant4.cxx.

◆ SetCut()

Bool_t TGeant4::SetCut ( const char * cutName,
Double_t cutValue )
virtual

Set cut specified by cutName.

Definition at line 911 of file TGeant4.cxx.

◆ SetProcess()

Bool_t TGeant4::SetProcess ( const char * flagName,
Int_t flagValue )
virtual

Set process control specified by flagName.

Definition at line 921 of file TGeant4.cxx.

◆ DefineParticle() [1/2]

Bool_t TGeant4::DefineParticle ( Int_t pdg,
const char * name,
TMCParticleType mcType,
Double_t mass,
Double_t charge,
Double_t lifetime )
virtual

Old function definition, now replaced with more arguments

Definition at line 931 of file TGeant4.cxx.

◆ DefineParticle() [2/2]

Bool_t TGeant4::DefineParticle ( Int_t pdg,
const char * name,
TMCParticleType mcType,
Double_t mass,
Double_t charge,
Double_t lifetime,
const TString & pType,
Double_t width,
Int_t iSpin,
Int_t iParity,
Int_t iConjugation,
Int_t iIsospin,
Int_t iIsospinZ,
Int_t gParity,
Int_t lepton,
Int_t baryon,
Bool_t stable,
Bool_t shortlived = kFALSE,
const TString & subType = "",
Int_t antiEncoding = 0,
Double_t magMoment = 0.0,
Double_t excitation = 0.0 )
virtual

Add the user defined particle with specified characteristics.

Definition at line 945 of file TGeant4.cxx.

◆ DefineIon()

Bool_t TGeant4::DefineIon ( const char * name,
Int_t Z,
Int_t A,
Int_t Q,
Double_t excEnergy,
Double_t mass )
virtual

Keep user defined ion properties in order to be able to use them later as a primary particle.

Definition at line 964 of file TGeant4.cxx.

◆ Xsec()

Double_t TGeant4::Xsec ( char * reac,
Double_t energy,
Int_t part,
Int_t mate )
virtual

Not yet implemented -> give exception.

Definition at line 999 of file TGeant4.cxx.

◆ IdFromPDG()

Int_t TGeant4::IdFromPDG ( Int_t pdgID) const
virtual

G4 does not use the integer particle identifiers Id <-> PDG is identity.

Definition at line 1007 of file TGeant4.cxx.

◆ PDGFromId()

Int_t TGeant4::PDGFromId ( Int_t mcID) const
virtual

G4 does not use the integer particle identifiers Id <-> PDG is identity.

Definition at line 1018 of file TGeant4.cxx.

◆ ParticleName()

TString TGeant4::ParticleName ( Int_t pdg) const
virtual

Return name of G4 particle specified by pdg.

Definition at line 1029 of file TGeant4.cxx.

◆ ParticleMass()

Double_t TGeant4::ParticleMass ( Int_t pdg) const
virtual

Return mass of G4 particle specified by pdg.

Definition at line 1039 of file TGeant4.cxx.

◆ ParticleCharge()

Double_t TGeant4::ParticleCharge ( Int_t pdg) const
virtual

Return charge (in e units) of G4 particle specified by pdg.

Definition at line 1049 of file TGeant4.cxx.

◆ ParticleLifeTime()

Double_t TGeant4::ParticleLifeTime ( Int_t pdg) const
virtual

Return life time of G4 particle specified by pdg.

Definition at line 1059 of file TGeant4.cxx.

◆ ParticleMCType()

TMCParticleType TGeant4::ParticleMCType ( Int_t pdg) const
virtual

Return VMC type of G4 particle specified by pdg.

Definition at line 1070 of file TGeant4.cxx.

◆ StopTrack()

virtual void TGeant4::StopTrack ( )
virtual

◆ InterruptTrack()

virtual void TGeant4::InterruptTrack ( )
virtual

◆ StopEvent()

virtual void TGeant4::StopEvent ( )
virtual

◆ StopRun()

virtual void TGeant4::StopRun ( )
virtual

◆ SetMaxStep()

virtual void TGeant4::SetMaxStep ( Double_t )
virtual

◆ SetMaxNStep()

virtual void TGeant4::SetMaxNStep ( Int_t )
virtual

◆ SetUserDecay()

void TGeant4::SetUserDecay ( Int_t pdg)
inlinevirtual

Force the decay of particle with given PDG to be done with user defined decay or external decayer

Definition at line 976 of file TGeant4.cxx.

◆ ForceDecayTime()

virtual void TGeant4::ForceDecayTime ( Float_t )
virtual

◆ SetDecayMode()

Bool_t TGeant4::SetDecayMode ( Int_t pdg,
Float_t bratio[6],
Int_t mode[6][3] )
virtual

Set a user phase space decay for a particle

Definition at line 989 of file TGeant4.cxx.

◆ CurrentVolID()

virtual Int_t TGeant4::CurrentVolID ( Int_t & copyNo) const
virtual

◆ CurrentVolOffID()

virtual Int_t TGeant4::CurrentVolOffID ( Int_t off,
Int_t & copyNo ) const
virtual

◆ CurrentVolName()

virtual const char * TGeant4::CurrentVolName ( ) const
virtual

◆ CurrentVolOffName()

virtual const char * TGeant4::CurrentVolOffName ( Int_t off) const
virtual

◆ CurrentVolPath()

virtual const char * TGeant4::CurrentVolPath ( )
virtual

◆ CurrentBoundaryNormal()

virtual Bool_t TGeant4::CurrentBoundaryNormal ( Double_t & x,
Double_t & y,
Double_t & z ) const
virtual

◆ CurrentMaterial()

virtual Int_t TGeant4::CurrentMaterial ( Float_t & a,
Float_t & z,
Float_t & dens,
Float_t & radl,
Float_t & absl ) const
virtual

◆ CurrentMedium()

virtual Int_t TGeant4::CurrentMedium ( ) const
virtual

◆ Gmtod() [1/2]

virtual void TGeant4::Gmtod ( Float_t * xm,
Float_t * xd,
Int_t iflag )
virtual

◆ Gmtod() [2/2]

virtual void TGeant4::Gmtod ( Double_t * xm,
Double_t * xd,
Int_t iflag )
virtual

◆ Gdtom() [1/2]

virtual void TGeant4::Gdtom ( Float_t * xd,
Float_t * xm,
Int_t iflag )
virtual

◆ Gdtom() [2/2]

virtual void TGeant4::Gdtom ( Double_t * xd,
Double_t * xm,
Int_t iflag )
virtual

◆ MaxStep()

virtual Double_t TGeant4::MaxStep ( ) const
virtual

◆ GetMaxNStep()

virtual Int_t TGeant4::GetMaxNStep ( ) const
virtual

◆ GetMedium() [2/2]

virtual Int_t TGeant4::GetMedium ( ) const
virtual

◆ TrackPosition() [1/3]

virtual void TGeant4::TrackPosition ( TLorentzVector & position) const
virtual

◆ TrackPosition() [2/3]

virtual void TGeant4::TrackPosition ( Double_t & x,
Double_t & y,
Double_t & z ) const
virtual

◆ TrackPosition() [3/3]

virtual void TGeant4::TrackPosition ( Float_t & x,
Float_t & y,
Float_t & z ) const
virtual

◆ TrackMomentum() [1/3]

virtual void TGeant4::TrackMomentum ( TLorentzVector & momentum) const
virtual

◆ TrackMomentum() [2/3]

virtual void TGeant4::TrackMomentum ( Double_t & px,
Double_t & py,
Double_t & pz,
Double_t & etot ) const
virtual

◆ TrackMomentum() [3/3]

virtual void TGeant4::TrackMomentum ( Float_t & px,
Float_t & py,
Float_t & pz,
Float_t & etot ) const
virtual

◆ TrackStep()

virtual Double_t TGeant4::TrackStep ( ) const
virtual

◆ TrackLength()

virtual Double_t TGeant4::TrackLength ( ) const
virtual

◆ TrackTime()

virtual Double_t TGeant4::TrackTime ( ) const
virtual

◆ Edep()

virtual Double_t TGeant4::Edep ( ) const
virtual

◆ NIELEdep()

virtual Double_t TGeant4::NIELEdep ( ) const
virtual

◆ StepNumber()

virtual Int_t TGeant4::StepNumber ( ) const
virtual

◆ TrackWeight()

virtual Double_t TGeant4::TrackWeight ( ) const
virtual

◆ TrackPolarization() [1/2]

virtual void TGeant4::TrackPolarization ( Double_t & polX,
Double_t & polY,
Double_t & polZ ) const
virtual

◆ TrackPolarization() [2/2]

virtual void TGeant4::TrackPolarization ( TVector3 & pol) const
virtual

◆ TrackPid()

virtual Int_t TGeant4::TrackPid ( ) const
virtual

◆ TrackCharge()

virtual Double_t TGeant4::TrackCharge ( ) const
virtual

◆ TrackMass()

virtual Double_t TGeant4::TrackMass ( ) const
virtual

◆ Etot()

virtual Double_t TGeant4::Etot ( ) const
virtual

◆ IsTrackInside()

virtual Bool_t TGeant4::IsTrackInside ( ) const
virtual

◆ IsTrackEntering()

virtual Bool_t TGeant4::IsTrackEntering ( ) const
virtual

◆ IsTrackExiting()

virtual Bool_t TGeant4::IsTrackExiting ( ) const
virtual

◆ IsTrackOut()

virtual Bool_t TGeant4::IsTrackOut ( ) const
virtual

◆ IsTrackDisappeared()

virtual Bool_t TGeant4::IsTrackDisappeared ( ) const
virtual

◆ IsTrackStop()

virtual Bool_t TGeant4::IsTrackStop ( ) const
virtual

◆ IsTrackAlive()

virtual Bool_t TGeant4::IsTrackAlive ( ) const
virtual

◆ IsNewTrack()

virtual Bool_t TGeant4::IsNewTrack ( ) const
virtual

◆ NSecondaries()

virtual Int_t TGeant4::NSecondaries ( ) const
virtual

◆ GetSecondary()

virtual void TGeant4::GetSecondary ( Int_t isec,
Int_t & particleId,
TLorentzVector & position,
TLorentzVector & momentum )
virtual

◆ ProdProcess()

virtual TMCProcess TGeant4::ProdProcess ( Int_t isec) const
virtual

◆ StepProcesses()

virtual Int_t TGeant4::StepProcesses ( TArrayI & proc) const
virtual

◆ DrawOneSpec()

void TGeant4::DrawOneSpec ( const char * name)
virtual

Function not implemented

Definition at line 1090 of file TGeant4.cxx.

◆ Gsatt()

void TGeant4::Gsatt ( const char * name,
const char * att,
Int_t val )
virtual

Set visualization attributes to the volume specified by name

Definition at line 1098 of file TGeant4.cxx.

◆ Gdraw()

void TGeant4::Gdraw ( const char * name,
Double_t theta,
Double_t phi,
Double_t psi,
Double_t u0,
Double_t v0,
Double_t ul,
Double_t vl )
virtual

Draw the volume specified by name and all its daughters

Definition at line 1106 of file TGeant4.cxx.

◆ Gdopt()

void TGeant4::Gdopt ( const char * name,
const char * value )
virtual

Function not implemented. Return warning.

Definition at line 1279 of file TGeant4.cxx.

◆ SetClipBox()

void TGeant4::SetClipBox ( const char * name,
Double_t xmin,
Double_t xmax,
Double_t ymin,
Double_t ymax,
Double_t zmin,
Double_t zmax )
virtual

Function not implemented. Return warning.

Definition at line 1288 of file TGeant4.cxx.

◆ DefaultRange()

void TGeant4::DefaultRange ( )
virtual

Function not implemented. Return warning.

Definition at line 1299 of file TGeant4.cxx.

◆ Gdhead()

void TGeant4::Gdhead ( Int_t isel,
const char * name,
Double_t chrsiz )
virtual

Function not implemented. Return warning.

Definition at line 1308 of file TGeant4.cxx.

◆ Gdman()

void TGeant4::Gdman ( Double_t u,
Double_t v,
const char * type )
virtual

Function not implemented. Return warning.

Definition at line 1317 of file TGeant4.cxx.

◆ InitLego()

void TGeant4::InitLego ( )
virtual

Function not implemented. Return warning.

Definition at line 1325 of file TGeant4.cxx.

◆ Init()

void TGeant4::Init ( )
virtual

Initialize G4 run manager.

Definition at line 1119 of file TGeant4.cxx.

Referenced by InitMT().

◆ InitMT()

void TGeant4::InitMT ( Int_t threadRank)
virtual

Initialize G4 run manager.

Definition at line 1132 of file TGeant4.cxx.

◆ ProcessEvent() [1/3]

void TGeant4::ProcessEvent ( )
virtual

Processing event by user is not availablein Geant4 VMC. Return exception

Definition at line 1151 of file TGeant4.cxx.

◆ ProcessEvent() [2/3]

void TGeant4::ProcessEvent ( Int_t eventId)
virtual

Process one event passing eventId and flag whether that is interruptible meaning that GEANT4_VMC relies on TVirtualMCApplication::BeginEvent() and ::FinishEvent() will be called from outside.

Definition at line 1160 of file TGeant4.cxx.

◆ ProcessEvent() [3/3]

void TGeant4::ProcessEvent ( Int_t eventId,
Bool_t isInterruptible )
virtual

Process one event passing eventId and flag whether that is interruptible meaning that GEANT4_VMC relies on TVirtualMCApplication::BeginEvent() and ::FinishEvent() will be called from outside.

Definition at line 1170 of file TGeant4.cxx.

◆ ProcessRun()

Bool_t TGeant4::ProcessRun ( Int_t nofEvents)
virtual

Process Geant4 run.

Definition at line 1180 of file TGeant4.cxx.

◆ FinishRun()

Bool_t TGeant4::FinishRun ( )

Process Geant4 run.

Definition at line 1188 of file TGeant4.cxx.

◆ SetCollectTracks()

void TGeant4::SetCollectTracks ( Bool_t collectTracks)
virtual

(In)Activate collecting TGeo tracks

Definition at line 1196 of file TGeant4.cxx.

◆ IsCollectTracks()

Bool_t TGeant4::IsCollectTracks ( ) const
virtual

Return the info if collecting tracks is activated

Definition at line 1204 of file TGeant4.cxx.

◆ IsMT()

virtual Bool_t TGeant4::IsMT ( ) const
virtual

◆ SetRandomSeed()

void TGeant4::SetRandomSeed ( )

Definition at line 1333 of file TGeant4.cxx.

◆ StartGeantUI()

void TGeant4::StartGeantUI ( )

Start interactive/batch Geant4.

Definition at line 1212 of file TGeant4.cxx.

◆ StartRootUI()

void TGeant4::StartRootUI ( )

Starts interactive Root.

Definition at line 1220 of file TGeant4.cxx.

◆ ProcessGeantMacro()

void TGeant4::ProcessGeantMacro ( const char * macroName)

Process Geant4 macro.

Definition at line 1228 of file TGeant4.cxx.

◆ ProcessGeantCommand()

void TGeant4::ProcessGeantCommand ( const char * commandPath)

Process Geant4 command.

Definition at line 1236 of file TGeant4.cxx.

◆ MasterInstance()

static TGeant4 * TGeant4::MasterInstance ( )
static

◆ MasterApplicationInstance()

static TVirtualMCApplication * TGeant4::MasterApplicationInstance ( )
static

◆ CloneForWorker()

TGeant4 * TGeant4::CloneForWorker ( ) const

Clone this instance

Definition at line 1261 of file TGeant4.cxx.

Referenced by TG4ActionInitialization::Build().

◆ CurrentEvent()

Int_t TGeant4::CurrentEvent ( ) const
virtual

Return the number of the current event.

Definition at line 1244 of file TGeant4.cxx.

◆ SecondariesAreOrdered()

Bool_t TGeant4::SecondariesAreOrdered ( ) const
virtual

Secondaries are ordered if the special stacking (defined in TG4SpecialStackingAction) is activated.

Definition at line 1252 of file TGeant4.cxx.

◆ operator=()

TGeant4 & TGeant4::operator= ( const TGeant4 & right)
private

Not implemented.

Member Data Documentation

◆ fgMasterInstance

TGeant4 * TGeant4::fgMasterInstance = 0
staticprivate

master instance

Definition at line 372 of file TGeant4.h.

Referenced by TGeant4(), and ~TGeant4().

◆ fgMasterApplicationInstance

TVirtualMCApplication * TGeant4::fgMasterApplicationInstance = 0
staticprivate

master application instance

Definition at line 375 of file TGeant4.h.

Referenced by TGeant4(), and ~TGeant4().

◆ fStateManager

TG4StateManager* TGeant4::fStateManager
private

application state manager

Definition at line 378 of file TGeant4.h.

Referenced by TGeant4(), and ~TGeant4().

◆ fGeometryManager

◆ fSDManager

◆ fPhysicsManager

◆ fStepManager

TG4StepManager* TGeant4::fStepManager
private

step manager

Definition at line 382 of file TGeant4.h.

Referenced by IsCollectTracks(), SetCollectTracks(), TGeant4(), and ~TGeant4().

◆ fVisManager

TG4VisManager* TGeant4::fVisManager
private

visualization manager

Definition at line 383 of file TGeant4.h.

Referenced by DrawOneSpec(), Gdraw(), Gsatt(), TGeant4(), and ~TGeant4().

◆ fVisExecutive

G4VisExecutive* TGeant4::fVisExecutive
private

Geant4 visualization manager.

Definition at line 384 of file TGeant4.h.

Referenced by Init(), TGeant4(), and ~TGeant4().

◆ fRunManager

◆ fRunConfiguration

TG4RunConfiguration* TGeant4::fRunConfiguration
private

run configuration

Definition at line 386 of file TGeant4.h.

Referenced by CloneForWorker().

◆ fMediumCounter

Int_t TGeant4::fMediumCounter
private

global medium counter

Definition at line 387 of file TGeant4.h.

Referenced by Medium(), and Medium().

◆ fMaterialCounter

Int_t TGeant4::fMaterialCounter
private

global material counter

Definition at line 388 of file TGeant4.h.

Referenced by Material(), Material(), Mixture(), and Mixture().

◆ fMatrixCounter

Int_t TGeant4::fMatrixCounter
private

global matrix counter

Definition at line 389 of file TGeant4.h.

Referenced by Matrix().

◆ fUserGeometry

TString TGeant4::fUserGeometry
private

user geometry

Definition at line 390 of file TGeant4.h.

Referenced by MediumId(), Mixture(), and TGeant4().

◆ fIsMT

Bool_t TGeant4::fIsMT
private

multi-threading mode

Definition at line 391 of file TGeant4.h.

Referenced by TGeant4().


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