class TVirtualMC: public TNamed

   Virtual MC provides a virtual interface to Monte Carlo.
   It enables the user to build a virtual Monte Carlo application
   independent of any actual underlying Monte Carlo implementation itself.

   A user will have to implement a class derived from the abstract
   Monte Carlo application class, and provide functions like
   ConstructGeometry(), BeginEvent(), FinishEvent(), ... .
   The concrete Monte Carlo (Geant3, Geant4) is selected at run time -
   when processing a ROOT macro where the concrete Monte Carlo is instantiated.

Function Members (Methods)

 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

public:
virtual~TVirtualMC()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
virtual voidBuildPhysics()
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
virtual Int_tCurrentEvent() const
virtual Int_tCurrentMaterial(Float_t& a, Float_t& z, Float_t& dens, Float_t& radl, Float_t& absl) const
virtual Int_tCurrentMedium() const
virtual Int_tCurrentVolID(Int_t& copyNo) const
virtual const char*CurrentVolName() const
virtual Int_tCurrentVolOffID(Int_t off, Int_t& copyNo) const
virtual const char*CurrentVolOffName(Int_t off) const
virtual const char*CurrentVolPath()
virtual voidDefaultRange()
virtual Bool_tDefineIon(const char* name, Int_t Z, Int_t A, Int_t Q, Double_t excEnergy, Double_t mass = 0.)
virtual voidDefineOpSurface(const char* name, EMCOpSurfaceModel model, EMCOpSurfaceType surfaceType, EMCOpSurfaceFinish surfaceFinish, Double_t sigmaAlpha)
virtual Bool_tDefineParticle(Int_t pdg, const char* name, TMCParticleType mcType, Double_t mass, Double_t charge, Double_t lifetime)
virtual Bool_tDefineParticle(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 voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidDrawOneSpec(const char* name)
virtual voidTObject::Dump() constMENU
virtual Double_tEdep() const
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual Double_tEtot() const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual voidForceDecayTime(Float_t)
virtual voidGckmat(Int_t imed, char* name)
virtual voidGdhead(Int_t, const char*, Double_t = 0)
virtual voidGdman(Double_t, Double_t, const char*)
virtual voidGdopt(const char*, const char*)
virtual voidGdraw(const char*, Double_t theta = 30, Double_t phi = 30, Double_t psi = 0, Double_t u0 = 10, Double_t v0 = 10, Double_t ul = 0.01, Double_t vl = 0.01)
virtual voidGdtom(Float_t* xd, Float_t* xm, Int_t iflag)
virtual voidGdtom(Double_t* xd, Double_t* xm, Int_t iflag)
virtual TVirtualMCDecayer*GetDecayer() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual Bool_tGetMaterial(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 Int_tGetMaxNStep() const
static TVirtualMC*GetMC()
virtual Bool_tGetMedium(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 const char*TNamed::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual TRandom*GetRandom() const
virtual voidGetSecondary(Int_t isec, Int_t& particleId, TLorentzVector& position, TLorentzVector& momentum)
virtual Bool_tGetShape(const TString& volumePath, TString& shapeType, TArrayD& par)
virtual TVirtualMCStack*GetStack() const
virtual const char*TNamed::GetTitle() const
virtual Bool_tGetTransformation(const TString& volumePath, TGeoHMatrix& matrix)
virtual UInt_tTObject::GetUniqueID() const
virtual voidGfmate(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 voidGfmate(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 voidGmtod(Float_t* xm, Float_t* xd, Int_t iflag)
virtual voidGmtod(Double_t* xm, Double_t* xd, Int_t iflag)
virtual voidGsatt(const char* name, const char* att, Int_t val)
virtual voidGsbool(const char* onlyVolName, const char* manyVolName)
virtual voidGsdvn(const char* name, const char* mother, Int_t ndiv, Int_t iaxis)
virtual voidGsdvn2(const char* name, const char* mother, Int_t ndiv, Int_t iaxis, Double_t c0i, Int_t numed)
virtual voidGsdvt(const char* name, const char* mother, Double_t step, Int_t iaxis, Int_t numed, Int_t ndvmx)
virtual voidGsdvt2(const char* name, const char* mother, Double_t step, Int_t iaxis, Double_t c0, Int_t numed, Int_t ndvmx)
virtual voidGsord(const char* name, Int_t iax)
virtual voidGspos(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 voidGsposp(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 voidGsposp(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 voidGstpar(Int_t itmed, const char* param, Double_t parval)
virtual Int_tGsvolu(const char* name, const char* shape, Int_t nmed, Float_t* upar, Int_t np)
virtual Int_tGsvolu(const char* name, const char* shape, Int_t nmed, Double_t* upar, Int_t np)
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual Int_tIdFromPDG(Int_t pdg) const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidInit()
virtual voidInitLego()
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
virtual Bool_tIsNewTrack() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tIsRootGeometrySupported() const
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tIsTrackAlive() const
virtual Bool_tIsTrackDisappeared() const
virtual Bool_tIsTrackEntering() const
virtual Bool_tIsTrackExiting() const
virtual Bool_tIsTrackInside() const
virtual Bool_tIsTrackOut() const
virtual Bool_tIsTrackStop() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
virtual voidMaterial(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 voidMaterial(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 voidMatrix(Int_t& krot, Double_t thetaX, Double_t phiX, Double_t thetaY, Double_t phiY, Double_t thetaZ, Double_t phiZ)
virtual Double_tMaxStep() const
voidTObject::MayNotUse(const char* method) const
virtual voidMedium(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 voidMedium(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 Int_tMediumId(const Text_t* mediumName) const
virtual voidMixture(Int_t& kmat, const char* name, Float_t* a, Float_t* z, Double_t dens, Int_t nlmat, Float_t* wmat)
virtual voidMixture(Int_t& kmat, const char* name, Double_t* a, Double_t* z, Double_t dens, Int_t nlmat, Double_t* wmat)
virtual Int_tNofVolDaughters(const char* volName) const
virtual Int_tNofVolumes() const
virtual Bool_tTObject::Notify()
virtual Int_tNSecondaries() const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual Double_tParticleCharge(Int_t pdg) const
virtual Double_tParticleLifeTime(Int_t pdg) const
virtual Double_tParticleMass(Int_t pdg) const
virtual TMCParticleTypeParticleMCType(Int_t pdg) const
virtual TStringParticleName(Int_t pdg) const
virtual Int_tPDGFromId(Int_t id) const
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
virtual voidProcessEvent()
virtual Bool_tProcessRun(Int_t nevent)
virtual TMCProcessProdProcess(Int_t isec) const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
virtual Bool_tSecondariesAreOrdered() const
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidSetBorderSurface(const char* name, const char* vol1Name, int vol1CopyNo, const char* vol2Name, int vol2CopyNo, const char* opSurfaceName)
virtual voidSetCerenkov(Int_t itmed, Int_t npckov, Float_t* ppckov, Float_t* absco, Float_t* effic, Float_t* rindex)
virtual voidSetCerenkov(Int_t itmed, Int_t npckov, Double_t* ppckov, Double_t* absco, Double_t* effic, Double_t* rindex)
virtual voidSetClipBox(const char*, Double_t = -9999, Double_t = 0, Double_t = -9999, Double_t = 0, Double_t = -9999, Double_t = 0)
virtual Bool_tSetCut(const char* cutName, Double_t cutValue)
virtual Bool_tSetDecayMode(Int_t pdg, Float_t* bratio, Int_t**)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetExternalDecayer(TVirtualMCDecayer* decayer)
virtual voidSetMaterialProperty(Int_t itmed, const char* propertyName, Double_t value)
virtual voidSetMaterialProperty(Int_t itmed, const char* propertyName, Int_t np, Double_t* pp, Double_t* values)
virtual voidSetMaterialProperty(const char* surfaceName, const char* propertyName, Int_t np, Double_t* pp, Double_t* values)
virtual voidSetMaxNStep(Int_t)
virtual voidSetMaxStep(Double_t)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual Bool_tSetProcess(const char* flagName, Int_t flagValue)
virtual voidSetRandom(TRandom* random)
virtual voidSetRootGeometry()
virtual voidSetSkinSurface(const char* name, const char* volName, const char* opSurfaceName)
virtual voidSetStack(TVirtualMCStack* stack)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidSetUserDecay(Int_t pdg)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
virtual Int_tStepProcesses(TArrayI& proc) const
virtual voidStopEvent()
virtual voidStopRun()
virtual voidStopTrack()
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual Double_tTrackCharge() const
virtual Double_tTrackLength() const
virtual Double_tTrackMass() const
virtual voidTrackMomentum(TLorentzVector& momentum) const
virtual voidTrackMomentum(Double_t& px, Double_t& py, Double_t& pz, Double_t& etot) const
virtual Int_tTrackPid() const
virtual voidTrackPosition(TLorentzVector& position) const
virtual voidTrackPosition(Double_t& x, Double_t& y, Double_t& z) const
virtual Double_tTrackStep() const
virtual Double_tTrackTime() const
virtual voidTObject::UseCurrentStyle()
virtual Int_tVolDaughterCopyNo(const char* volName, Int_t i) const
virtual const char*VolDaughterName(const char* volName, Int_t i) const
virtual Int_tVolId(const Text_t* volName) const
virtual Int_tVolId2Mate(Int_t id) const
virtual const char*VolName(Int_t id) const
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
virtual voidWriteEuclid(const char* filnam, const char* topvol, Int_t number, Int_t nlevel)
virtual Double_tXsec(char*, Double_t, Int_t, Int_t)
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
private:
TVirtualMC&operator=(const TVirtualMC&)

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
TVirtualMCApplication*fApplication! User MC application
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title
private:
TVirtualMCDecayer*fDecayer! External decayer
TRandom*fRandom! Random number generator
TVirtualMCStack*fStack! Particles stack
static TVirtualMC*fgMCMonte Carlo singleton instance

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

~TVirtualMC()
 Destructor

TVirtualMC * GetMC()
static: return virtual MC object
void SetStack(TVirtualMCStack* stack)
 Set particles stack.

void SetExternalDecayer(TVirtualMCDecayer* decayer)
 Set external decayer.

void SetRandom(TRandom* random)
 Set random number generator.

Int_t MediumId(const Text_t* mediumName) const
Bool_t DefineParticle(Int_t pdg, const char* name, TMCParticleType mcType, Double_t mass, Double_t charge, Double_t lifetime)
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)
Bool_t SetDecayMode(Int_t pdg, Float_t* bratio, Int_t** )
Bool_t IsRootGeometrySupported()

 methods for building/management of geometry


 Info about supporting geometry defined via Root
{ return kFALSE; }
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)
 functions from GCONS


 Return parameters for material specified by material number imat
void Gckmat(Int_t imed, char* name)
 Check the parameters of a tracking medium
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)
 Define a material
 kmat   number assigned to the material
 name   material name
 a      atomic mass in au
 z      atomic number
 dens   density in g/cm3
 absl   absorption length in cm;
               if >=0 it is ignored and the program
               calculates it, if <0. -absl is taken
 radl   radiation length in cm
               if >=0 it is ignored and the program
               calculates it, if <0. -radl is taken
 buf    pointer to an array of user words
 nwbuf  number of user words
void Mixture(Int_t& kmat, const char *name, Float_t *a, Float_t *z, Double_t dens, Int_t nlmat, Float_t *wmat)
 Define mixture or compound
 with a number kmat composed by the basic nlmat materials defined
 by arrays a, z and wmat

 If nlmat > 0 then wmat contains the proportion by
 weights of each basic material in the mixture.

 If nlmat < 0 then wmat contains the number of atoms
 of a given kind into the molecule of the compound.
 In this case, wmat in output is changed to relative
 weights.
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)
 Define a medium.
 kmed      tracking medium number assigned
 name      tracking medium name
 nmat      material number
 isvol     sensitive volume flag
 ifield    magnetic field:
                  - ifield = 0 if no magnetic field;
                  - ifield = -1 if user decision in guswim;
                  - ifield = 1 if tracking performed with g3rkuta;
                  - ifield = 2 if tracking performed with g3helix;
                  - ifield = 3 if tracking performed with g3helx3.
 fieldm    max. field value (kilogauss)
 tmaxfd    max. angle due to field (deg/step)
 stemax    max. step allowed
 deemax    max. fraction of energy lost in a step
 epsil     tracking precision (cm)
 stmin     min. step due to continuous processes (cm)
 ubuf      pointer to an array of user words
 nbuf      number of user words
void Matrix(Int_t& krot, Double_t thetaX, Double_t phiX, Double_t thetaY, Double_t phiY, Double_t thetaZ, Double_t phiZ)
 Define a rotation matrix
 krot     rotation matrix number assigned
 thetaX   polar angle for axis X
 phiX     azimuthal angle for axis X
 thetaY   polar angle for axis Y
 phiY     azimuthal angle for axis Y
 thetaZ   polar angle for axis Z
 phiZ     azimuthal angle for axis Z
Int_t Gsvolu(const char *name, const char *shape, Int_t nmed, Float_t *upar, Int_t np)
 functions from GGEOM


 Create a new volume
 name   Volume name
 shape  Volume type
 nmed   Tracking medium number
 np     Number of shape parameters
 upar   Vector containing shape parameters
void Gsdvn(const char* name, const char* mother, Int_t ndiv, Int_t iaxis)
 Create a new volume by dividing an existing one.
 It divides a previously defined volume
 name   Volume name
 mother Mother volume name
 ndiv   Number of divisions
 iaxis  Axis value:
               X,Y,Z of CAXIS will be translated to 1,2,3 for IAXIS.
void Gsdvt(const char* name, const char* mother, Double_t step, Int_t iaxis, Int_t numed, Int_t ndvmx)
 Create a new volume by dividing an existing one
 Divide mother into divisions called name along
 axis iaxis in steps of step. If not exactly divisible
 will make as many as possible and will center them
 with respect to the mother. Divisions will have medium
 number numed. If numed is 0, numed of mother is taken.
 ndvmx is the expected maximum number of divisions
 (If 0, no protection tests are performed in Geant3)
void Gsord(const char* name, Int_t iax)
 Flag volume name whose contents will have to be ordered
 along axis iax, by setting the search flag to -iax
 (Geant3 only)
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")
 Position a volume into an existing one.
 It positions a previously defined volume in the mother.
   name   Volume name
   nr     Copy number of the volume
   mother Mother volume name
   x      X coord. of the volume in mother ref. sys.
   y      Y coord. of the volume in mother ref. sys.
   z      Z coord. of the volume in mother ref. sys.
   irot   Rotation matrix number w.r.t. mother ref. sys.
   konly  ONLY/MANY flag
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)
 The same as previous but in double precision
void SetCerenkov(Int_t itmed, Int_t npckov, Float_t *ppckov, Float_t *absco, Float_t *effic, Float_t *rindex)
 Define the tables for UV photon tracking in medium itmed.
 Please note that it is the user's responsibility to
 provide all the coefficients:
  itmed       Tracking medium number
  npckov      Number of bins of each table
  ppckov      Value of photon momentum (in GeV)
  absco       Absorption coefficients
                     dielectric: absorption length in cm
                     metals    : absorption fraction (0<=x<=1)
  effic       Detection efficiency for UV photons
  rindex      Refraction index (if=0 metal)
void DefineOpSurface(const char* name, EMCOpSurfaceModel model, EMCOpSurfaceType surfaceType, EMCOpSurfaceFinish surfaceFinish, Double_t sigmaAlpha)
 functions for definition of surfaces
 and material properties for optical physics


 Define the optical surface
 name           surface name
 model          selection of model (see #EMCOpSurfaceModel values)
 surfaceType    surface type (see #EMCOpSurfaceType values)
 surfaceFinish  surface quality (see #EMCOpSurfaceType values)
 sigmaAlpha     an unified model surface parameter
 (Geant4 only)
void SetSkinSurface(const char* name, const char* volName, const char* opSurfaceName)
 Define the optical skin surface
 name        skin surface name
 volName     volume name
 opSurfaceName  name of optical surface which this border belongs to
 (Geant4 only)
void SetMaterialProperty(Int_t itmed, const char* propertyName, Double_t value)
 Define material property via a value
 itmed         tracking medium id
 propertyName  property name
 value         property value
 (Geant4 only)
Bool_t GetTransformation(const TString& volumePath, TGeoHMatrix& matrix)
 functions for access to geometry


 Return the transformation matrix between the volume specified by
 the path volumePath and the top or master volume.
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)
 Return the material parameters for the volume specified by
 the volumeName.
void DrawOneSpec(const char* name)
 functions for drawing
 to be removed with complete move to TGeo


 Deprecated - Geant3
void Gsatt(const char* name, const char* att, Int_t val)
 Deprecated - Geant3
void Gdraw(const char* , Double_t theta = 30, Double_t phi = 30, Double_t psi = 0, Double_t u0 = 10, Double_t v0 = 10, Double_t ul = 0.01, Double_t vl = 0.01)
 Write out the geometry of the detector in EUCLID file format
 filnam  file name - will be with the extension .euc                 *
 topvol  volume name of the starting node
 number  copy number of topvol (relevant for gsposp)
 nlevel  number of  levels in the tree structure
                to be written out, starting from topvol
 (Geant3 only)
void SetRootGeometry()
 Set geometry from Root (built via TGeo)
Int_t VolId(const Text_t* volName) const
 get methods


 Return the unique numeric identifier for volume name volName
const char* VolName(Int_t id) const
 Return the volume name for a given volume identifier id
Int_t NofVolumes()
 Return total number of volumes in the geometry
Int_t VolId2Mate(Int_t id) const
 Return material number for a given volume id
Int_t NofVolDaughters(const char* volName) const
 Return number of daughters of the volume specified by volName
const char* VolDaughterName(const char* volName, Int_t i) const
 Return the name of i-th daughter of the volume specified by volName
Int_t VolDaughterCopyNo(const char* volName, Int_t i) const
 Return the copyNo of i-th daughter of the volume specified by volName
Bool_t SetCut(const char* cutName, Double_t cutValue)

 methods for physics management



 set methods


 Set transport cuts for particles
Bool_t SetProcess(const char* flagName, Int_t flagValue)
 Set process control
Bool_t DefineIon(const char* name, Int_t Z, Int_t A, Int_t Q, Double_t excEnergy, Double_t mass = 0.)
 Set a user defined ion.
   name          ion name
   Z             atomic number
   A             atomic mass
   Q             charge [eplus}
   excitation    excitation energy [GeV]
   mass          mass  [GeV] (if not specified by user, approximative
                 mass is calculated)
Double_t Xsec(char* , Double_t , Int_t , Int_t )
 Calculate X-sections
 (Geant3 only)
Int_t IdFromPDG(Int_t pdg) const
 particle table usage


 Return MC specific code from a PDG and pseudo ENDF code (pdg)
Int_t PDGFromId(Int_t id) const
 Return PDG code and pseudo ENDF code from MC specific code (id)
TString ParticleName(Int_t pdg) const
 get methods


 Return name of the particle specified by pdg.
Double_t ParticleMass(Int_t pdg) const
 Return mass of the particle specified by pdg.
Double_t ParticleCharge(Int_t pdg) const
 Return charge (in e units) of the particle specified by pdg.
Double_t ParticleLifeTime(Int_t pdg) const
 Return life time of the particle specified by pdg.
TMCParticleType ParticleMCType(Int_t pdg) const
 Return VMC type of the particle specified by pdg.
void StopTrack()

 methods for step management



 action methods


 Stop the transport of the current particle and skip to the next
void StopEvent()
 Stop simulation of the current event and skip to the next
void StopRun()
 Stop simulation of the current event and set the abort run flag to true
void SetMaxStep(Double_t )
 set methods


 Set the maximum step allowed till the particle is in the current medium
void SetMaxNStep(Int_t )
 Set the maximum number of steps till the particle is in the current medium
void SetUserDecay(Int_t pdg)
 Force the decays of particles to be done with Pythia
 and not with the Geant routines.
void ForceDecayTime(Float_t )
 Force the decay time of the current particle
Int_t CurrentVolID(Int_t& copyNo) const
 tracking volume(s)


 Return the current volume ID and copy number
Int_t CurrentVolOffID(Int_t off, Int_t& copyNo) const
 Return the current volume off upward in the geometrical tree
 ID and copy number
const char* CurrentVolName()
 Return the current volume name
const char* CurrentVolOffName(Int_t off) const
 Return the current volume off upward in the geometrical tree
 name and copy number'
 if name=0 no name is returned
const char* CurrentVolPath()
 Return the path in geometry tree for the current volume
Int_t CurrentMaterial(Float_t& a, Float_t& z, Float_t& dens, Float_t& radl, Float_t& absl) const
 Return the parameters of the current material during transport
Int_t CurrentEvent()
 Return the number of the current event
void Gmtod(Float_t* xm, Float_t* xd, Int_t iflag)
 Computes coordinates xd in daughter reference system
 from known coordinates xm in mother reference system.
 xm    coordinates in mother reference system (input)
 xd    coordinates in daughter reference system (output)
 iflag
 - IFLAG = 1  convert coordinates
 - IFLAG = 2  convert direction cosines
void Gmtod(Double_t* xm, Double_t* xd, Int_t iflag)
 The same as previous but in double precision
void Gdtom(Float_t* xd, Float_t* xm, Int_t iflag)
 Computes coordinates xm in mother reference system
 from known coordinates xd in daughter reference system.
 xd    coordinates in daughter reference system (input)
 xm    coordinates in mother reference system (output)
 iflag
 - IFLAG = 1  convert coordinates
 - IFLAG = 2  convert direction cosines
void Gdtom(Double_t* xd, Double_t* xm, Int_t iflag)
 The same as previous but in double precision
Double_t MaxStep()
 Return the maximum step length in the current medium
Int_t GetMaxNStep()
 Return the maximum number of steps allowed in the current medium
void TrackPosition(TLorentzVector& position) const
 get methods
 tracking particle
 dynamic properties


 Return the current position in the master reference frame of the
 track being transported
void TrackPosition(Double_t& x, Double_t& y, Double_t& z) const
 Return the current position in the master reference frame of the
 track being transported
void TrackMomentum(TLorentzVector& momentum) const
 Return the direction and the momentum (GeV/c) of the track
 currently being transported
void TrackMomentum(Double_t& px, Double_t& py, Double_t& pz, Double_t& etot) const
 Return the direction and the momentum (GeV/c) of the track
 currently being transported
Double_t TrackStep()
 Return the length in centimeters of the current step (in cm)
Double_t TrackLength()
 Return the length of the current track from its origin (in cm)
Double_t TrackTime()
 Return the current time of flight of the track being transported
Double_t Edep()
 Return the energy lost in the current step
Int_t TrackPid()
 get methods
 tracking particle
 static properties


 Return the PDG of the particle transported
Double_t TrackCharge()
 Return the charge of the track currently transported
Double_t TrackMass()
 Return the mass of the track currently transported
Double_t Etot()
 Return the total energy of the current track
Bool_t IsNewTrack()
 get methods - track status


 Return true when the track performs the first step
Bool_t IsTrackInside()
 Return true if the track is not at the boundary of the current volume
Bool_t IsTrackEntering()
 Return true if this is the first step of the track in the current volume
Bool_t IsTrackExiting()
 Return true if this is the last step of the track in the current volume
Bool_t IsTrackOut()
 Return true if the track is out of the setup
Bool_t IsTrackDisappeared()
 Return true if the current particle has disappeared
 either because it decayed or because it underwent
 an inelastic collision
Bool_t IsTrackStop()
 Return true if the track energy has fallen below the threshold
Bool_t IsTrackAlive()
 Return true if the current particle is alive and will continue to be
 transported
Int_t NSecondaries()
 get methods - secondaries


 Return the number of secondary particles generated in the current step
void GetSecondary(Int_t isec, Int_t& particleId, TLorentzVector& position, TLorentzVector& momentum)
 Return the parameters of the secondary track number isec produced
 in the current step
Int_t StepProcesses(TArrayI& proc) const
 Return the array of the VMC code of the processes active in the current
 step
Bool_t SecondariesAreOrdered()
 Return the information about the transport order needed by the stack
void Gdopt(const char* , const char* )

 Geant3 specific methods
 !!! to be removed with move to TGeo


 Set/modify the drawing options.
 Deprecated - G3 only
void SetClipBox(const char* , Double_t = -9999, Double_t = 0, Double_t = -9999, Double_t = 0, Double_t = -9999, Double_t = 0)
 This function allows subtractions (via boolean operation) of BOX shape
 from any part of the detector, therefore showing its inner contents
 Deprecated - G3 only
void Gdhead(Int_t , const char* , Double_t = 0)
 Deprecated - G3 only
void Gdman(Double_t , Double_t , const char* )
 Deprecated - G3 only
void Init()

 Control methods


 Initialize MC
void BuildPhysics()
 Initialize MC physics
void ProcessEvent()
 Process one event
Bool_t ProcessRun(Int_t nevent)
 Process one  run and return true if run has finished successfully,
 return false in other cases (run aborted by user)
void InitLego()
 Set switches for lego transport
TVirtualMCStack* GetStack()

 Get methods


 Return the particle stack
{ return fStack; }
TVirtualMCDecayer* GetDecayer()
 Return the external decayer
{ return fDecayer; }
TRandom* GetRandom()
 Return the random number generator
{ return fRandom; }
TVirtualMC & operator=(const TVirtualMC& )

Last change: root/vmc:$Name: $:$Id: TVirtualMC.h 21565 2007-12-28 12:28:46Z brun $
Last generated: 2008-06-25 08:54
Copyright (C) 2006, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.