VMC Version 2.0
|
Interface to Monte Carlo geometry construction. More...
#include <TVirtualMCGeometry.h>
Public Member Functions | |
TVirtualMCGeometry (const char *name, const char *title) | |
Standard constructor. | |
TVirtualMCGeometry () | |
Default constructor. | |
virtual | ~TVirtualMCGeometry () |
Destructor. | |
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)=0 |
Define a material. | |
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)=0 |
The same as previous but in double precision. | |
virtual void | Mixture (Int_t &kmat, const char *name, Float_t *a, Float_t *z, Double_t dens, Int_t nlmat, Float_t *wmat)=0 |
Define mixture or compound with a number kmat composed by the basic nlmat materials defined by arrays a, z and 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)=0 |
The same as previous but in double precision. | |
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)=0 |
Define a medium. | |
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)=0 |
The same as previous but in double precision. | |
virtual void | Matrix (Int_t &krot, Double_t thetaX, Double_t phiX, Double_t thetaY, Double_t phiY, Double_t thetaZ, Double_t phiZ)=0 |
Define a rotation matrix. | |
virtual Int_t | Gsvolu (const char *name, const char *shape, Int_t nmed, Float_t *upar, Int_t np)=0 |
Create a new volume. | |
virtual Int_t | Gsvolu (const char *name, const char *shape, Int_t nmed, Double_t *upar, Int_t np)=0 |
The same as previous but in double precision. | |
virtual void | Gsdvn (const char *name, const char *mother, Int_t ndiv, Int_t iaxis)=0 |
Create a new volume by dividing an existing one. | |
virtual void | Gsdvn2 (const char *name, const char *mother, Int_t ndiv, Int_t iaxis, Double_t c0i, Int_t numed)=0 |
Create a new volume by dividing an existing one. | |
virtual void | Gsdvt (const char *name, const char *mother, Double_t step, Int_t iaxis, Int_t numed, Int_t ndvmx)=0 |
Create a new volume by dividing an existing one Divide mother into divisions called name along axis iaxis in steps of step. | |
virtual void | Gsdvt2 (const char *name, const char *mother, Double_t step, Int_t iaxis, Double_t c0, Int_t numed, Int_t ndvmx)=0 |
Create a new volume by dividing an existing one Divides mother into divisions called name along axis iaxis starting at coordinate value c0 with step size step. | |
virtual void | Gsord (const char *name, Int_t iax)=0 |
Flag volume name whose contents will have to be ordered along axis iax, by setting the search flag to -iax (Geant3 only) | |
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")=0 |
Position a volume into an existing one. | |
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)=0 |
Place a copy of generic volume name with user number nr inside mother, with its parameters upar(1..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, Double_t *upar, Int_t np)=0 |
The same as previous but in double precision. | |
virtual void | Gsbool (const char *onlyVolName, const char *manyVolName)=0 |
Helper function for resolving MANY. | |
virtual Bool_t | GetTransformation (const TString &volumePath, TGeoHMatrix &matrix)=0 |
Return the transformation matrix between the volume specified by the path volumePath and the top or master volume. | |
virtual Bool_t | GetShape (const TString &volumePath, TString &shapeType, TArrayD &par)=0 |
Return the name of the shape (shapeType) and its parameters par for the volume specified by the path volumePath . | |
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)=0 |
Return the material parameters for the volume specified by the volumeName. | |
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)=0 |
Return the medium parameters for the volume specified by the volumeName. | |
virtual Int_t | VolId (const char *volName) const =0 |
Return the unique numeric identifier for volume name volName. | |
virtual const char * | VolName (Int_t id) const =0 |
Return the volume name for a given volume identifier id. | |
virtual Int_t | MediumId (const char *mediumName) const =0 |
Return the unique numeric identifier for medium name mediumName. | |
virtual Int_t | NofVolumes () const =0 |
Return total number of volumes in the geometry. | |
virtual Int_t | NofVolDaughters (const char *volName) const =0 |
Return number of daughters of the volume specified by volName. | |
virtual const char * | VolDaughterName (const char *volName, Int_t i) const =0 |
Return the name of i-th daughter of the volume specified by volName. | |
virtual Int_t | VolDaughterCopyNo (const char *volName, Int_t i) const =0 |
Return the copyNo of i-th daughter of the volume specified by volName. | |
virtual Int_t | VolId2Mate (Int_t id) const =0 |
Return material number for a given volume id. | |
Protected Member Functions | |
TVirtualMCGeometry (const TVirtualMCGeometry &) | |
TVirtualMCGeometry & | operator= (const TVirtualMCGeometry &) |
Interface to Monte Carlo geometry construction.
This class has been separated from VirtualMC and it is used internally in TVirtualMC implementations.
Definition at line 35 of file TVirtualMCGeometry.h.
TVirtualMCGeometry::TVirtualMCGeometry | ( | const char * | name, |
const char * | title | ||
) |
Standard constructor.
Definition at line 38 of file TVirtualMCGeometry.cxx.
TVirtualMCGeometry::TVirtualMCGeometry | ( | ) |
Default constructor.
Definition at line 45 of file TVirtualMCGeometry.cxx.
|
virtual |
Destructor.
Definition at line 52 of file TVirtualMCGeometry.cxx.
|
protected |
|
pure virtual |
Define a material.
Implemented in TGeoMCGeometry.
|
pure virtual |
The same as previous but in double precision.
Implemented in TGeoMCGeometry.
|
pure virtual |
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.
Implemented in TGeoMCGeometry.
|
pure virtual |
The same as previous but in double precision.
Implemented in TGeoMCGeometry.
|
pure virtual |
Define a medium.
Implemented in TGeoMCGeometry.
|
pure virtual |
The same as previous but in double precision.
Implemented in TGeoMCGeometry.
|
pure virtual |
Define a rotation matrix.
Implemented in TGeoMCGeometry.
|
pure virtual |
Create a new volume.
Implemented in TGeoMCGeometry.
|
pure virtual |
The same as previous but in double precision.
Implemented in TGeoMCGeometry.
|
pure virtual |
Create a new volume by dividing an existing one.
It divides a previously defined volume
Implemented in TGeoMCGeometry.
|
pure virtual |
Create a new volume by dividing an existing one.
Divide mother into ndiv divisions called name along axis iaxis starting at coordinate value c0i. The new volume created will be medium number numed.
Implemented in TGeoMCGeometry.
|
pure virtual |
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)
Implemented in TGeoMCGeometry.
|
pure virtual |
Create a new volume by dividing an existing one Divides mother into divisions called name along axis iaxis starting at coordinate value c0 with step size step.
The new volume created 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)
Implemented in TGeoMCGeometry.
|
pure virtual |
Flag volume name whose contents will have to be ordered along axis iax, by setting the search flag to -iax (Geant3 only)
Implemented in TGeoMCGeometry.
|
pure virtual |
Position a volume into an existing one.
It positions a previously defined volume in the mother.
Implemented in TGeoMCGeometry.
|
pure virtual |
Place a copy of generic volume name with user number nr inside mother, with its parameters upar(1..np)
Implemented in TGeoMCGeometry.
|
pure virtual |
The same as previous but in double precision.
Implemented in TGeoMCGeometry.
|
pure virtual |
Helper function for resolving MANY.
Specify the ONLY volume that overlaps with the specified MANY and has to be substracted. (Geant4 only)
Implemented in TGeoMCGeometry.
|
pure virtual |
Return the transformation matrix between the volume specified by the path volumePath and the top or master volume.
Implemented in TGeoMCGeometry.
|
pure virtual |
Return the name of the shape (shapeType) and its parameters par for the volume specified by the path volumePath .
Implemented in TGeoMCGeometry.
|
pure virtual |
Return the material parameters for the volume specified by the volumeName.
Implemented in TGeoMCGeometry.
|
pure virtual |
Return the medium parameters for the volume specified by the volumeName.
Implemented in TGeoMCGeometry.
|
pure virtual |
Return the unique numeric identifier for volume name volName.
Implemented in TGeoMCGeometry.
|
pure virtual |
Return the volume name for a given volume identifier id.
Implemented in TGeoMCGeometry.
|
pure virtual |
Return the unique numeric identifier for medium name mediumName.
Implemented in TGeoMCGeometry.
|
pure virtual |
Return total number of volumes in the geometry.
Implemented in TGeoMCGeometry.
|
pure virtual |
Return number of daughters of the volume specified by volName.
Implemented in TGeoMCGeometry.
|
pure virtual |
Return the name of i-th daughter of the volume specified by volName.
Implemented in TGeoMCGeometry.
|
pure virtual |
Return the copyNo of i-th daughter of the volume specified by volName.
Implemented in TGeoMCGeometry.
|
pure virtual |
Return material number for a given volume id.
Implemented in TGeoMCGeometry.
|
protected |