ROOT 6.18/05 Reference Guide |
The manager class for any TGeo geometry.
Provides user interface for geometry creation, navigation, state querying, visualization, IO, geometry checking and other utilities.
The ROOT geometry package is a tool designed for building, browsing, tracking and visualizing a detector geometry. The code is independent from other external MC for simulation, therefore it does not contain any constraints related to physics. However, the package defines a number of hooks for tracking, such as media, materials, magnetic field or track state flags, in order to allow interfacing to tracking MC's. The final goal is to be able to use the same geometry for several purposes, such as tracking, reconstruction or visualization, taking advantage of the ROOT features related to bookkeeping, I/O, histogramming, browsing and GUI's.
The geometrical modeler is the most important component of the package and it provides answers to the basic questions like "Where am I ?" or "How far from the next boundary ?", but also to more complex ones like "How far from the closest surface ?" or "Which is the next crossing along a helix ?".
The architecture of the modeler is a combination between a GEANT-like containment scheme and a normal CSG binary tree at the level of shapes. An important common feature of all detector geometry descriptions is the mother-daughter concept. This is the most natural approach when tracking is concerned and imposes a set of constraints to the way geometry is defined. Constructive solid geometry composition is used only in order to create more complex shapes from an existing set of primitives through boolean operations. This feature is not implemented yet but in future full definition of boolean expressions will be supported.
Practically every geometry defined in GEANT style can be mapped by the modeler. The basic components used for building the logical hierarchy of the geometry are called "volumes" and "nodes". Volumes (sometimes called "solids") are fully defined geometrical objects having a given shape and medium and possibly containing a list of nodes. Nodes represent just positioned instances of volumes inside a container volume and they are not directly defined by user. They are automatically created as a result of adding one volume inside other or dividing a volume. The geometrical transformation hold by nodes is always defined with respect to their mother (relative positioning). Reflection matrices are allowed. All volumes have to be fully aware of their containees when the geometry is closed. They will build additional structures (voxels) in order to fasten-up the search algorithms. Finally, nodes can be regarded as bidirectional links between containers and containees objects.
The structure defined in this way is a graph structure since volumes are replicable (same volume can become daughter node of several other volumes), every volume becoming a branch in this graph. Any volume in the logical graph can become the actual top volume at run time (see TGeoManager::SetTopVolume()). All functionalities of the modeler will behave in this case as if only the corresponding branch starting from this volume is the registered geometry.
A given volume can be positioned several times in the geometry. A volume can be divided according default or user-defined patterns, creating automatically the list of division nodes inside. The elementary volumes created during the dividing process follow the same scheme as usual volumes, therefore it is possible to position further geometrical structures inside or to divide them further more (see TGeoVolume::Divide()).
The primitive shapes supported by the package are basically the GEANT3 shapes (see class TGeoShape), arbitrary wedges with eight vertices on two parallel planes. All basic primitives inherits from class TGeoBBox since the bounding box of a solid is essential for the tracking algorithms. They also implement the virtual methods defined in the virtual class TGeoShape (point and segment classification). User-defined primitives can be directly plugged into the modeler provided that they override these methods. Composite shapes will be soon supported by the modeler. In order to build a TGeoCompositeShape, one will have to define first the primitive components. The object that handle boolean operations among components is called TGeoBoolCombinator and it has to be constructed providing a string boolean expression between the components names.
TGeoManager class is embedding all the API needed for building and tracking a geometry. It defines a global pointer (gGeoManager) in order to be fully accessible from external code. The mechanism of handling multiple geometries at the same time will be soon implemented.
TGeoManager is the owner of all geometry objects defined in a session, therefore users must not try to control their deletion. It contains lists of media, materials, transformations, shapes and volumes. Logical nodes (positioned volumes) are created and destroyed by the TGeoVolume class. Physical nodes and their global transformations are subjected to a caching mechanism due to the sometimes very large memory requirements of logical graph expansion. The caching mechanism is triggered by the total number of physical instances of volumes and the cache manager is a client of TGeoManager. The manager class also controls the painter client. This is linked with ROOT graphical libraries loaded on demand in order to control visualization actions.
A given geometry can be built in various ways, but there are mandatory steps that have to be followed in order to be validated by the modeler. There are general rules : volumes needs media and shapes in order to be created, both container and containee volumes must be created before linking them together, and the relative transformation matrix must be provided. All branches must have an upper link point otherwise they will not be considered as part of the geometry. Visibility or tracking properties of volumes can be provided both at build time or after geometry is closed, but global visualization settings (see TGeoPainter class) should not be provided at build time, otherwise the drawing package will be loaded. There is also a list of specific rules : positioned daughters should not extrude their mother or intersect with sisters unless this is specified (see TGeoVolume::AddNodeOverlap()), the top volume (containing all geometry tree) must be specified before closing the geometry and must not be positioned - it represents the global reference frame. After building the full geometry tree, the geometry must be closed (see TGeoManager::CloseGeometry()). Voxelization can be redone per volume after this process.
Below is the general scheme of the manager class.
Provided that a geometry was successfully built and closed (for instance the previous example $ROOTSYS/tutorials/geom/rootgeom.C ), the manager class will register itself to ROOT and the logical/physical structures will become immediately browsable. The ROOT browser will display starting from the geometry folder : the list of transformations and media, the top volume and the top logical node. These last two can be fully expanded, any intermediate volume/node in the browser being subject of direct access context menu operations (right mouse button click). All user utilities of classes TGeoManager, TGeoVolume and TGeoNode can be called via the context menu.
Any logical volume can be drawn via TGeoVolume::Draw() member function. This can be directly accessed from the context menu of the volume object directly from the browser. There are several drawing options that can be set with TGeoManager::SetVisOption(Int_t opt) method :
only the content of the volume is drawn, N levels down (default N=3). This is the default behavior. The number of levels to be drawn can be changed via TGeoManager::SetVisLevel(Int_t level) method.
the final leaves (e.g. daughters with no containment) of the branch starting from volume are drawn down to the current number of levels. WARNING : This mode is memory consuming depending of the size of geometry, so drawing from top level within this mode should be handled with care for expensive geometries. In future there will be a limitation on the maximum number of nodes to be visualized.
only the clicked volume is visualized. This is automatically set by TGeoVolume::DrawOnly() method
TGeoVolume::DrawPath(const char *path) method
The current view can be exploded in cartesian, cylindrical or spherical coordinates : TGeoManager::SetExplodedView(Int_t opt). Options may be :
Volumes themselves support different visualization settings :
Several checking methods are accessible from the volume context menu. They generally apply only to the visible parts of the drawn geometry in order to ease geometry checking, and their implementation is in the TGeoChecker class from the painting package.
Can be called from TGeoManager::CheckPoint(Double_t x, Double_t y, Double_t z). This method is drawing the daughters of the volume containing the point one level down, printing the path to the deepest physical node holding this point. It also computes the closest distance to any boundary. The point will be drawn in red.
Can be called from TGeoVolume::RandomPoints() (context menu function) and it will draw this volume with current visualization settings. Random points are generated in the bounding box of the top drawn volume. The points are classified and drawn with the color of their deepest container. Only points in visible nodes will be drawn.
Can be called from TGeoVolume::RandomRays() (context menu of volumes) and will shoot rays from a given point in the local reference frame with random directions. The intersections with displayed nodes will appear as segments having the color of the touched node. Drawn geometry will be then made invisible in order to enhance rays.
Definition at line 42 of file TGeoManager.h.
Public Types | |
enum | EDefaultUnits { kG4Units = 0 , kRootUnits = 1 } |
Public Types inherited from TObject | |
enum | { kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 , kBitMask = 0x00ffffff } |
enum | { kSingleKey = BIT(0) , kOverwrite = BIT(1) , kWriteDelete = BIT(2) } |
enum | EDeprecatedStatusBits { kObjInCanvas = BIT(3) } |
enum | EStatusBits { kCanDelete = BIT(0) , kMustCleanup = BIT(3) , kIsReferenced = BIT(4) , kHasUUID = BIT(5) , kCannotPick = BIT(6) , kNoContextMenu = BIT(8) , kInvalidObject = BIT(13) } |
Public Member Functions | |
TGeoManager () | |
Default constructor. More... | |
TGeoManager (const char *name, const char *title) | |
Constructor. More... | |
virtual | ~TGeoManager () |
Destructor. More... | |
void | AddBorderSurface (TGeoBorderSurface *surf) |
Add border surface;. More... | |
void | AddGDMLMatrix (TGDMLMatrix *mat) |
Add GDML matrix;. More... | |
Int_t | AddMaterial (const TGeoMaterial *material) |
Add a material to the list. Returns index of the material in list. More... | |
TGeoNavigator * | AddNavigator () |
Add a navigator in the list of navigators. More... | |
void | AddOpticalSurface (TGeoOpticalSurface *optsurf) |
Add optical surface;. More... | |
Int_t | AddOverlap (const TNamed *ovlp) |
Add an illegal overlap/extrusion to the list. More... | |
Bool_t | AddProperty (const char *property, Double_t value) |
Add a user-defined property. Returns true if added, false if existing. More... | |
Int_t | AddRegion (TGeoRegion *region) |
Add a new region of volumes. More... | |
Int_t | AddShape (const TGeoShape *shape) |
Add a shape to the list. Returns index of the shape in list. More... | |
void | AddSkinSurface (TGeoSkinSurface *surf) |
Add skin surface;. More... | |
Int_t | AddTrack (Int_t id, Int_t pdgcode, TObject *particle=0) |
Add a track to the list of tracks. More... | |
Int_t | AddTrack (TVirtualGeoTrack *track) |
Add a track to the list of tracks. More... | |
Int_t | AddTransformation (const TGeoMatrix *matrix) |
Add a matrix to the list. Returns index of the matrix in list. More... | |
Int_t | AddVolume (TGeoVolume *volume) |
Add a volume to the list. Returns index of the volume in list. More... | |
void | AnimateTracks (Double_t tmin=0, Double_t tmax=5E-8, Int_t nframes=200, Option_t *option="/*") |
Draw animation of tracks. More... | |
void | BombTranslation (const Double_t *tr, Double_t *bombtr) |
Get the new 'bombed' translation vector according current exploded view mode. More... | |
void | Browse (TBrowser *b) |
Describe how to browse this object. More... | |
void | BuildDefaultMaterials () |
Now just a shortcut for GetElementTable. More... | |
virtual Bool_t | cd (const char *path="") |
Browse the tree of nodes starting from fTopNode according to pathname. More... | |
void | CdDown (Int_t index) |
Make a daughter of current node current. More... | |
void | CdNext () |
Do a cd to the node found next by FindNextBoundary. More... | |
void | CdNode (Int_t nodeid) |
Change current path to point to the node having this id. More... | |
void | CdTop () |
Make top level node the current node. More... | |
void | CdUp () |
Go one level up in geometry. More... | |
void | CheckBoundaryErrors (Int_t ntracks=1000000, Double_t radius=-1.) |
Check pushes and pulls needed to cross the next boundary with respect to the position given by FindNextBoundary. More... | |
void | CheckBoundaryReference (Int_t icheck=-1) |
Check the boundary errors reference file created by CheckBoundaryErrors method. More... | |
void | CheckGeometry (Option_t *option="") |
Perform last checks on the geometry. More... | |
void | CheckGeometryFull (Int_t ntracks=1000000, Double_t vx=0., Double_t vy=0., Double_t vz=0., Option_t *option="ob") |
Geometry checking. More... | |
void | CheckOverlaps (Double_t ovlp=0.1, Option_t *option="") |
Check all geometry for illegal overlaps within a limit OVLP. More... | |
Bool_t | CheckPath (const char *path) const |
Check if a geometry path is valid without changing the state of the current navigator. More... | |
void | CheckPoint (Double_t x=0, Double_t y=0, Double_t z=0, Option_t *option="") |
Classify a given point. See TGeoChecker::CheckPoint(). More... | |
void | CheckShape (TGeoShape *shape, Int_t testNo, Int_t nsamples, Option_t *option) |
Test for shape navigation methods. More... | |
void | CleanGarbage () |
Clean temporary volumes and shapes from garbage collection. More... | |
void | ClearAttributes () |
Reset all attributes to default ones. More... | |
void | ClearNavigators () |
Clear all navigators. More... | |
void | ClearOverlaps () |
Clear the list of overlaps. More... | |
void | ClearPhysicalNodes (Bool_t mustdelete=kFALSE) |
Clear the current list of physical nodes, so that we can start over with a new list. More... | |
void | ClearShape (const TGeoShape *shape) |
Remove a shape from the list of shapes. More... | |
void | ClearThreadData () const |
void | ClearTracks () |
void | CloseGeometry (Option_t *option="d") |
Closing geometry implies checking the geometry validity, fixing shapes with negative parameters (run-time shapes)building the cache manager, voxelizing all volumes, counting the total number of physical nodes and registering the manager class to the browser. More... | |
void | ConvertReflections () |
Convert all reflections in geometry to normal rotations + reflected shapes. More... | |
void | CountLevels () |
Count maximum number of nodes per volume, maximum depth and maximum number of xtru vertices. More... | |
Int_t | CountNodes (const TGeoVolume *vol=0, Int_t nlevels=10000, Int_t option=0) |
Count the total number of nodes starting from a volume, nlevels down. More... | |
TGeoParallelWorld * | CreateParallelWorld (const char *name) |
Create a parallel world for prioritised navigation. More... | |
void | CreateThreadData () const |
Create thread private data for all geometry objects. More... | |
TGeoNode * | CrossBoundaryAndLocate (Bool_t downwards, TGeoNode *skipnode) |
Cross next boundary and locate within current node The current point must be on the boundary of fCurrentNode. More... | |
void | DefaultAngles () |
Set default angles for a given view. More... | |
void | DefaultColors () |
Set default volume colors according to A of material. More... | |
void | DisableInactiveVolumes () |
TGeoVolume * | Division (const char *name, const char *mother, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step, Int_t numed=0, Option_t *option="") |
Create a new volume by dividing an existing one (GEANT3 like) More... | |
void | DoBackupState () |
Backup the current state without affecting the cache stack. More... | |
void | DoRestoreState () |
Restore a backed-up state without affecting the cache stack. More... | |
void | DrawCurrentPoint (Int_t color=2) |
Draw current point in the same view. More... | |
void | DrawPath (const char *path, Option_t *option="") |
Draw current path. More... | |
void | DrawTracks (Option_t *option="") |
Draw tracks over the geometry, according to option. More... | |
virtual void | Edit (Option_t *option="") |
Append a pad for this geometry. More... | |
void | EnableInactiveVolumes () |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute mouse actions on this manager. More... | |
virtual Int_t | Export (const char *filename, const char *name="", Option_t *option="vg") |
Export this geometry to a file. More... | |
TGeoMaterial * | FindDuplicateMaterial (const TGeoMaterial *mat) const |
Find if a given material duplicates an existing one. More... | |
TGeoNode * | FindNextBoundary (Double_t stepmax=TGeoShape::Big(), const char *path="", Bool_t frombdr=kFALSE) |
Find distance to next boundary and store it in fStep. More... | |
TGeoNode * | FindNextBoundaryAndStep (Double_t stepmax=TGeoShape::Big(), Bool_t compsafe=kFALSE) |
Compute distance to next boundary within STEPMAX. More... | |
TGeoNode * | FindNextDaughterBoundary (Double_t *point, Double_t *dir, Int_t &idaughter, Bool_t compmatrix=kFALSE) |
Computes as fStep the distance to next daughter of the current volume. More... | |
TGeoNode * | FindNode (Bool_t safe_start=kTRUE) |
Returns deepest node containing current point. More... | |
TGeoNode * | FindNode (Double_t x, Double_t y, Double_t z) |
Returns deepest node containing current point. More... | |
Double_t * | FindNormal (Bool_t forward=kTRUE) |
Computes normal vector to the next surface that will be or was already crossed when propagating on a straight line from a given point/direction. More... | |
Double_t * | FindNormalFast () |
Computes fast normal to next crossed boundary, assuming that the current point is close enough to the boundary. More... | |
TVirtualGeoTrack * | FindTrackWithId (Int_t id) const |
Search the track hierarchy to find the track with the given id. More... | |
TGeoVolume * | FindVolumeFast (const char *name, Bool_t multi=kFALSE) |
Fast search for a named volume. All trailing blanks stripped. More... | |
TGeoPNEntry * | GetAlignableEntry (const char *name) const |
Retrieves an existing alignable object. More... | |
TGeoPNEntry * | GetAlignableEntry (Int_t index) const |
Retrieves an existing alignable object at a given index. More... | |
TGeoPNEntry * | GetAlignableEntryByUID (Int_t uid) const |
Retrieves an existing alignable object having a preset UID. More... | |
UChar_t * | GetBits () |
void | GetBombFactors (Double_t &bombx, Double_t &bomby, Double_t &bombz, Double_t &bombr) const |
Retrieve cartesian and radial bomb factors. More... | |
Int_t | GetBombMode () const |
TGeoBorderSurface * | GetBorderSurface (const char *name) const |
Get border surface with a given name;. More... | |
void | GetBranchNames (Int_t *names) const |
Fill volume names of current branch into an array. More... | |
void | GetBranchNumbers (Int_t *copyNumbers, Int_t *volumeNumbers) const |
Fill node copy numbers of current branch into an array. More... | |
void | GetBranchOnlys (Int_t *isonly) const |
Fill node copy numbers of current branch into an array. More... | |
virtual Int_t | GetByteCount (Option_t *option=0) |
Get total size of geometry in bytes. More... | |
TGeoNodeCache * | GetCache () const |
const Double_t * | GetCldir () const |
const Double_t * | GetCldirChecked () const |
TGeoShape * | GetClippingShape () const |
const Double_t * | GetCurrentDirection () const |
TGeoHMatrix * | GetCurrentMatrix () const |
TGeoNavigator * | GetCurrentNavigator () const |
Returns current navigator for the calling thread. More... | |
TGeoNode * | GetCurrentNode () const |
Int_t | GetCurrentNodeId () const |
Get the unique ID of the current node. More... | |
const Double_t * | GetCurrentPoint () const |
TVirtualGeoTrack * | GetCurrentTrack () |
TGeoVolume * | GetCurrentVolume () const |
TGeoElementTable * | GetElementTable () |
Returns material table. Creates it if not existing. More... | |
TGDMLMatrix * | GetGDMLMatrix (const char *name) const |
Get GDML matrix with a given name;. More... | |
TVirtualGeoPainter * | GetGeomPainter () |
Make a default painter if none present. Returns pointer to it. More... | |
TGeoHMatrix * | GetGLMatrix () const |
TGeoHMatrix * | GetHMatrix () |
Return stored current matrix (global matrix of the next touched node). More... | |
const Double_t * | GetLastPoint () const |
Double_t | GetLastSafety () const |
TVirtualGeoTrack * | GetLastTrack () |
Int_t | GetLevel () const |
TObjArray * | GetListOfBorderSurfaces () const |
TObjArray * | GetListOfGDMLMatrices () const |
TObjArray * | GetListOfGShapes () const |
TObjArray * | GetListOfGVolumes () const |
TList * | GetListOfMaterials () const |
TObjArray * | GetListOfMatrices () const |
TList * | GetListOfMedia () const |
TGeoNavigatorArray * | GetListOfNavigators () const |
Get list of navigators for the calling thread. More... | |
TObjArray * | GetListOfNodes () |
TObjArray * | GetListOfOpticalSurfaces () const |
TObjArray * | GetListOfOverlaps () |
TObjArray * | GetListOfPhysicalNodes () |
TObjArray * | GetListOfRegions () const |
TObjArray * | GetListOfShapes () const |
TObjArray * | GetListOfSkinSurfaces () const |
TObjArray * | GetListOfTracks () const |
TObjArray * | GetListOfUVolumes () const |
TObjArray * | GetListOfVolumes () const |
TGeoVolume * | GetMasterVolume () const |
TGeoMaterial * | GetMaterial (const char *matname) const |
Search for a named material. All trailing blanks stripped. More... | |
TGeoMaterial * | GetMaterial (Int_t id) const |
Return material at position id. More... | |
Int_t | GetMaterialIndex (const char *matname) const |
Return index of named material. More... | |
Int_t | GetMaxLevel () const |
Int_t | GetMaxThreads () const |
Int_t | GetMaxVisNodes () const |
TGeoMedium * | GetMedium (const char *medium) const |
Search for a named tracking medium. All trailing blanks stripped. More... | |
TGeoMedium * | GetMedium (Int_t numed) const |
Search for a tracking medium with a given ID. More... | |
TGeoNode * | GetMother (Int_t up=1) const |
TGeoHMatrix * | GetMotherMatrix (Int_t up=1) const |
Int_t | GetNAlignable (Bool_t with_uid=kFALSE) const |
Retrieves number of PN entries with or without UID. More... | |
TGeoNode * | GetNextNode () const |
Int_t | GetNmany () const |
Int_t | GetNNodes () |
TGeoNode * | GetNode (Int_t level) const |
Int_t | GetNodeId () const |
const Double_t * | GetNormal () const |
Int_t | GetNproperties () const |
int | GetNregions () const |
Int_t | GetNsegments () const |
Get number of segments approximating circles. More... | |
Int_t | GetNtracks () const |
TGeoOpticalSurface * | GetOpticalSurface (const char *name) const |
Get optical surface with a given name;. More... | |
TVirtualGeoPainter * | GetPainter () const |
TGeoVolume * | GetPaintVolume () const |
TGeoParallelWorld * | GetParallelWorld () const |
TVirtualGeoTrack * | GetParentTrackOfId (Int_t id) const |
Get parent track with a given ID. More... | |
const char * | GetParticleName () const |
const char * | GetPath () const |
Get path to the current node in the form /node0/node1/... More... | |
const char * | GetPdgName (Int_t pdg) const |
Get name for given pdg code;. More... | |
TGeoPhysicalNode * | GetPhysicalNode (Int_t i) const |
Double_t | GetProperty (const char *name, Bool_t *error=nullptr) const |
Get a user-defined property. More... | |
Double_t | GetProperty (size_t i, TString &name, Bool_t *error=nullptr) const |
Get a user-defined property from a given index. More... | |
TGeoRegion * | GetRegion (int i) |
Int_t | GetRTmode () const |
Double_t | GetSafeDistance () const |
Int_t | GetSafeLevel () const |
Go upwards the tree until a non-overlapping node. More... | |
TGeoSkinSurface * | GetSkinSurface (const char *name) const |
Get skin surface with a given name;. More... | |
Int_t | GetStackLevel () const |
Double_t | GetStep () const |
Double_t | GetTmax () const |
Bool_t | GetTminTmax (Double_t &tmin, Double_t &tmax) const |
Get time cut for drawing tracks. More... | |
TGeoNode * | GetTopNode () const |
TGeoVolume * | GetTopVolume () const |
TVirtualGeoTrack * | GetTrack (Int_t index) |
Int_t | GetTrackIndex (Int_t id) const |
Get index for track id, -1 if not found. More... | |
TVirtualGeoTrack * | GetTrackOfId (Int_t id) const |
Get track with a given ID. More... | |
Int_t | GetUID (const char *volname) const |
Retrieve unique id for a volume name. Return -1 if name not found. More... | |
TGeoVolume * | GetUserPaintVolume () const |
Int_t | GetVirtualLevel () |
Find level of virtuality of current overlapping node (number of levels up having the same tracking media. More... | |
Double_t | GetVisDensity () const |
Int_t | GetVisLevel () const |
Returns current depth to which geometry is drawn. More... | |
Int_t | GetVisOption () const |
Returns current depth to which geometry is drawn. More... | |
TGeoVolume * | GetVolume (const char *name) const |
Search for a named volume. All trailing blanks stripped. More... | |
TGeoVolume * | GetVolume (Int_t uid) const |
Bool_t | GotoSafeLevel () |
Go upwards the tree until a non-overlapping node. More... | |
TGeoNode * | InitTrack (const Double_t *point, const Double_t *dir) |
Initialize current point and current direction vector (normalized) in MARS. More... | |
TGeoNode * | InitTrack (Double_t x, Double_t y, Double_t z, Double_t nx, Double_t ny, Double_t nz) |
Initialize current point and current direction vector (normalized) in MARS. More... | |
void | InspectState () const |
Inspects path and all flags for the current state. More... | |
Bool_t | IsActivityEnabled () const |
Bool_t | IsAnimatingTracks () const |
Bool_t | IsCheckingOverlaps () const |
Bool_t | IsCleaning () const |
Bool_t | IsClosed () const |
Bool_t | IsCurrentOverlapping () const |
Bool_t | IsDrawingExtra () const |
Bool_t | IsEntering () const |
Bool_t | IsExiting () const |
Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More... | |
Bool_t | IsInPhiRange () const |
True if current node is in phi range. More... | |
Bool_t | IsMatrixReflection () const |
Bool_t | IsMatrixTransform () const |
Bool_t | IsMultiThread () const |
Bool_t | IsNodeSelectable () const |
Bool_t | IsNullStep () const |
Bool_t | IsOnBoundary () const |
Bool_t | IsOutside () const |
Bool_t | IsParallelWorldNav () const |
Bool_t | IsSameLocation () const |
Bool_t | IsSameLocation (Double_t x, Double_t y, Double_t z, Bool_t change=kFALSE) |
Checks if point (x,y,z) is still in the current node. More... | |
Bool_t | IsSamePoint (Double_t x, Double_t y, Double_t z) const |
Check if a new point with given coordinates is the same as the last located one. More... | |
Bool_t | IsStartSafe () const |
Bool_t | IsStepEntering () const |
Bool_t | IsStepExiting () const |
Bool_t | IsStreamingVoxels () const |
Bool_t | IsVisLeaves () const |
void | LocalToMaster (const Double_t *local, Double_t *master) const |
void | LocalToMasterBomb (const Double_t *local, Double_t *master) const |
void | LocalToMasterVect (const Double_t *local, Double_t *master) const |
TGeoPhysicalNode * | MakeAlignablePN (const char *name) |
Make a physical node from the path pointed by an alignable object with a given name. More... | |
TGeoPhysicalNode * | MakeAlignablePN (TGeoPNEntry *entry) |
Make a physical node from the path pointed by a given alignable object. More... | |
TGeoVolume * | MakeArb8 (const char *name, TGeoMedium *medium, Double_t dz, Double_t *vertices=0) |
Make an TGeoArb8 volume. More... | |
TGeoVolume * | MakeBox (const char *name, TGeoMedium *medium, Double_t dx, Double_t dy, Double_t dz) |
Make in one step a volume pointing to a box shape with given medium. More... | |
TGeoVolume * | MakeCone (const char *name, TGeoMedium *medium, Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2) |
Make in one step a volume pointing to a cone shape with given medium. More... | |
TGeoVolume * | MakeCons (const char *name, TGeoMedium *medium, Double_t dz, Double_t rmin1, Double_t rmax1, Double_t rmin2, Double_t rmax2, Double_t phi1, Double_t phi2) |
Make in one step a volume pointing to a cone segment shape with given medium. More... | |
TGeoVolume * | MakeCtub (const char *name, TGeoMedium *medium, Double_t rmin, Double_t rmax, Double_t dz, Double_t phi1, Double_t phi2, Double_t lx, Double_t ly, Double_t lz, Double_t tx, Double_t ty, Double_t tz) |
Make in one step a volume pointing to a tube segment shape with given medium. More... | |
TGeoVolume * | MakeEltu (const char *name, TGeoMedium *medium, Double_t a, Double_t b, Double_t dz) |
Make in one step a volume pointing to a tube shape with given medium. More... | |
TGeoVolume * | MakeGtra (const char *name, TGeoMedium *medium, Double_t dz, Double_t theta, Double_t phi, Double_t twist, Double_t h1, Double_t bl1, Double_t tl1, Double_t alpha1, Double_t h2, Double_t bl2, Double_t tl2, Double_t alpha2) |
Make in one step a volume pointing to a twisted trapezoid shape with given medium. More... | |
TGeoVolume * | MakeHype (const char *name, TGeoMedium *medium, Double_t rin, Double_t stin, Double_t rout, Double_t stout, Double_t dz) |
Make in one step a volume pointing to a tube shape with given medium. More... | |
TGeoVolume * | MakePara (const char *name, TGeoMedium *medium, Double_t dx, Double_t dy, Double_t dz, Double_t alpha, Double_t theta, Double_t phi) |
Make in one step a volume pointing to a parallelepiped shape with given medium. More... | |
TGeoVolume * | MakeParaboloid (const char *name, TGeoMedium *medium, Double_t rlo, Double_t rhi, Double_t dz) |
Make in one step a volume pointing to a tube shape with given medium. More... | |
TGeoVolume * | MakePcon (const char *name, TGeoMedium *medium, Double_t phi, Double_t dphi, Int_t nz) |
Make in one step a volume pointing to a polycone shape with given medium. More... | |
TGeoVolume * | MakePgon (const char *name, TGeoMedium *medium, Double_t phi, Double_t dphi, Int_t nedges, Int_t nz) |
Make in one step a volume pointing to a polygone shape with given medium. More... | |
TGeoPhysicalNode * | MakePhysicalNode (const char *path=0) |
Makes a physical node corresponding to a path. More... | |
TGeoVolume * | MakeSphere (const char *name, TGeoMedium *medium, Double_t rmin, Double_t rmax, Double_t themin=0, Double_t themax=180, Double_t phimin=0, Double_t phimax=360) |
Make in one step a volume pointing to a sphere shape with given medium. More... | |
TGeoVolume * | MakeTorus (const char *name, TGeoMedium *medium, Double_t r, Double_t rmin, Double_t rmax, Double_t phi1=0, Double_t dphi=360) |
Make in one step a volume pointing to a torus shape with given medium. More... | |
TVirtualGeoTrack * | MakeTrack (Int_t id, Int_t pdgcode, TObject *particle) |
Makes a primary track but do not attach it to the list of tracks. More... | |
TGeoVolume * | MakeTrap (const char *name, TGeoMedium *medium, Double_t dz, Double_t theta, Double_t phi, Double_t h1, Double_t bl1, Double_t tl1, Double_t alpha1, Double_t h2, Double_t bl2, Double_t tl2, Double_t alpha2) |
Make in one step a volume pointing to a trapezoid shape with given medium. More... | |
TGeoVolume * | MakeTrd1 (const char *name, TGeoMedium *medium, Double_t dx1, Double_t dx2, Double_t dy, Double_t dz) |
Make in one step a volume pointing to a TGeoTrd1 shape with given medium. More... | |
TGeoVolume * | MakeTrd2 (const char *name, TGeoMedium *medium, Double_t dx1, Double_t dx2, Double_t dy1, Double_t dy2, Double_t dz) |
Make in one step a volume pointing to a TGeoTrd2 shape with given medium. More... | |
TGeoVolume * | MakeTube (const char *name, TGeoMedium *medium, Double_t rmin, Double_t rmax, Double_t dz) |
Make in one step a volume pointing to a tube shape with given medium. More... | |
TGeoVolume * | MakeTubs (const char *name, TGeoMedium *medium, Double_t rmin, Double_t rmax, Double_t dz, Double_t phi1, Double_t phi2) |
Make in one step a volume pointing to a tube segment shape with given medium. More... | |
TGeoVolumeAssembly * | MakeVolumeAssembly (const char *name) |
Make an assembly of volumes. More... | |
TGeoVolumeMulti * | MakeVolumeMulti (const char *name, TGeoMedium *medium) |
Make a TGeoVolumeMulti handling a list of volumes. More... | |
TGeoVolume * | MakeXtru (const char *name, TGeoMedium *medium, Int_t nz) |
Make a TGeoXtru-shaped volume with nz planes. More... | |
void | MasterToLocal (const Double_t *master, Double_t *local) const |
void | MasterToLocalBomb (const Double_t *master, Double_t *local) const |
void | MasterToLocalVect (const Double_t *master, Double_t *local) const |
void | MasterToTop (const Double_t *master, Double_t *top) const |
Convert coordinates from master volume frame to top. More... | |
TGeoMaterial * | Material (const char *name, Double_t a, Double_t z, Double_t dens, Int_t uid, Double_t radlen=0, Double_t intlen=0) |
Create material with given A, Z and density, having an unique id. More... | |
void | Matrix (Int_t index, Double_t theta1, Double_t phi1, Double_t theta2, Double_t phi2, Double_t theta3, Double_t phi3) |
Create rotation matrix named 'mat<index>'. More... | |
TGeoMedium * | Medium (const char *name, Int_t numed, 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) |
Create tracking medium. More... | |
TGeoMaterial * | Mixture (const char *name, Double_t *a, Double_t *z, Double_t dens, Int_t nelem, Double_t *wmat, Int_t uid) |
Create mixture OR COMPOUND IMAT as composed by THE BASIC nelem materials defined by arrays A,Z and WMAT, having an unique id. More... | |
TGeoMaterial * | Mixture (const char *name, Float_t *a, Float_t *z, Double_t dens, Int_t nelem, Float_t *wmat, Int_t uid) |
Create mixture OR COMPOUND IMAT as composed by THE BASIC nelem materials defined by arrays A,Z and WMAT, having an unique id. More... | |
void | ModifiedPad () const |
Send "Modified" signal to painter. More... | |
void | Node (const char *name, Int_t nr, const char *mother, Double_t x, Double_t y, Double_t z, Int_t irot, Bool_t isOnly, Double_t *upar, Int_t npar=0) |
Create a node called <name_nr> pointing to the volume called <name> as daughter of the volume called <mother> (gspos). More... | |
void | Node (const char *name, Int_t nr, const char *mother, Double_t x, Double_t y, Double_t z, Int_t irot, Bool_t isOnly, Float_t *upar, Int_t npar=0) |
Create a node called <name_nr> pointing to the volume called <name> as daughter of the volume called <mother> (gspos). More... | |
void | OptimizeVoxels (const char *filename="tgeovox.C") |
Optimize voxelization type for all volumes. Save best choice in a macro. More... | |
void | PopDummy (Int_t ipop=9999) |
Bool_t | PopPath () |
Bool_t | PopPath (Int_t index) |
Bool_t | PopPoint () |
Bool_t | PopPoint (Int_t index) |
void | PrintOverlaps () const |
Prints the current list of overlaps. More... | |
Int_t | PushPath (Int_t startlevel=0) |
Int_t | PushPoint (Int_t startlevel=0) |
void | RandomPoints (const TGeoVolume *vol, Int_t npoints=10000, Option_t *option="") |
Draw random points in the bounding box of a volume. More... | |
void | RandomRays (Int_t nrays=1000, Double_t startx=0, Double_t starty=0, Double_t startz=0, const char *target_vol=0, Bool_t check_norm=kFALSE) |
Randomly shoot nrays and plot intersections with surfaces for current top node. More... | |
void | RefreshPhysicalNodes (Bool_t lock=kTRUE) |
Refresh physical nodes to reflect the actual geometry paths after alignment was applied. More... | |
void | RegisterMatrix (const TGeoMatrix *matrix) |
Register a matrix to the list of matrices. More... | |
void | RemoveMaterial (Int_t index) |
Remove material at given index. More... | |
void | RemoveNavigator (const TGeoNavigator *nav) |
Clear a single navigator. More... | |
Int_t | ReplaceVolume (TGeoVolume *vorig, TGeoVolume *vnew) |
Replaces all occurrences of VORIG with VNEW in the geometry tree. More... | |
void | ResetState () |
Reset current state flags. More... | |
void | ResetUserData () |
Sets all pointers TGeoVolume::fField to NULL. More... | |
void | RestoreMasterVolume () |
Restore the master volume of the geometry. More... | |
Double_t | Safety (Bool_t inside=kFALSE) |
Compute safe distance from the current point. More... | |
TGeoNode * | SamplePoints (Int_t npoints, Double_t &dist, Double_t epsil=1E-5, const char *g3path="") |
shoot npoints randomly in a box of 1E-5 around current point. More... | |
void | SaveAttributes (const char *filename="tgeoatt.C") |
Save current attributes in a macro. More... | |
TGeoNode * | SearchNode (Bool_t downwards=kFALSE, const TGeoNode *skipnode=0) |
Returns the deepest node containing fPoint, which must be set a priori. More... | |
void | SelectTrackingMedia () |
Define different tracking media. More... | |
TGeoPNEntry * | SetAlignableEntry (const char *unique_name, const char *path, Int_t uid=-1) |
Creates an alignable object with unique name corresponding to a path and adds it to the list of alignables. More... | |
void | SetAllIndex () |
Assigns uid's for all materials,media and matrices. More... | |
void | SetAnimateTracks (Bool_t flag=kTRUE) |
void | SetBombFactors (Double_t bombx=1.3, Double_t bomby=1.3, Double_t bombz=1.3, Double_t bombr=1.3) |
Set factors that will "bomb" all translations in cartesian and cylindrical coordinates. More... | |
void | SetCheckedNode (TGeoNode *node) |
Assign a given node to be checked for overlaps. Any other overlaps will be ignored. More... | |
void | SetCheckingOverlaps (Bool_t flag=kTRUE) |
void | SetCldirChecked (Double_t *dir) |
void | SetClipping (Bool_t flag=kTRUE) |
void | SetClippingShape (TGeoShape *clip) |
Set a user-defined shape as clipping for ray tracing. More... | |
void | SetCurrentDirection (Double_t *dir) |
void | SetCurrentDirection (Double_t nx, Double_t ny, Double_t nz) |
Bool_t | SetCurrentNavigator (Int_t index) |
Switch to another existing navigator for the calling thread. More... | |
void | SetCurrentPoint (Double_t *point) |
void | SetCurrentPoint (Double_t x, Double_t y, Double_t z) |
void | SetCurrentTrack (Int_t i) |
void | SetCurrentTrack (TVirtualGeoTrack *track) |
void | SetDrawExtraPaths (Bool_t flag=kTRUE) |
void | SetExplodedView (Int_t iopt=0) |
Set type of exploding view (see TGeoPainter::SetExplodedView()) More... | |
void | SetLastPoint (Double_t x, Double_t y, Double_t z) |
void | SetMatrixReflection (Bool_t flag=kTRUE) |
void | SetMatrixTransform (Bool_t on=kTRUE) |
void | SetMaxThreads (Int_t nthreads) |
Set maximum number of threads for navigation. More... | |
void | SetMaxVisNodes (Int_t maxnodes=10000) |
set the maximum number of visible nodes. More... | |
void | SetNmeshPoints (Int_t npoints=1000) |
Set the number of points to be generated on the shape outline when checking for overlaps. More... | |
void | SetNodeSelectable (Bool_t flag=kTRUE) |
void | SetNsegments (Int_t nseg) |
Set number of segments for approximating circles in drawing. More... | |
void | SetOutside (Bool_t flag=kTRUE) |
void | SetPaintVolume (TGeoVolume *vol) |
void | SetParticleName (const char *pname) |
void | SetPdgName (Int_t pdg, const char *name) |
Set a name for a particle having a given pdg. More... | |
void | SetPhiRange (Double_t phimin=0., Double_t phimax=360.) |
Set cut phi range. More... | |
void | SetRTmode (Int_t mode) |
Change raytracing mode. More... | |
void | SetStartSafe (Bool_t flag=kTRUE) |
void | SetStep (Double_t step) |
void | SetTminTmax (Double_t tmin=0, Double_t tmax=999) |
Set time cut interval for drawing tracks. More... | |
void | SetTopVisible (Bool_t vis=kTRUE) |
make top volume visible on screen More... | |
void | SetTopVolume (TGeoVolume *vol) |
Set the top volume and corresponding node as starting point of the geometry. More... | |
void | SetUseParallelWorldNav (Bool_t flag) |
Activate/deactivate usage of parallel world navigation. More... | |
void | SetUserPaintVolume (TGeoVolume *vol) |
void | SetVisDensity (Double_t dens=0.01) |
Set density threshold. More... | |
void | SetVisibility (TObject *obj, Bool_t vis) |
Set visibility for a volume. More... | |
void | SetVisLevel (Int_t level=3) |
set default level down to which visualization is performed More... | |
void | SetVisOption (Int_t option=0) |
set drawing mode : More... | |
void | SetVolumeAttribute (const char *name, const char *att, Int_t val) |
Set volume attributes in G3 style. More... | |
virtual ULong_t | SizeOf (const TGeoNode *node, Option_t *option) |
computes the total size in bytes of the branch starting with node. More... | |
void | SortOverlaps () |
Sort overlaps by decreasing overlap distance. Extrusions comes first. More... | |
TGeoNode * | Step (Bool_t is_geom=kTRUE, Bool_t cross=kTRUE) |
Make a rectilinear step of length fStep from current point (fPoint) on current direction (fDirection). More... | |
void | Test (Int_t npoints=1000000, Option_t *option="") |
Check time of finding "Where am I" for n points. More... | |
void | TestOverlaps (const char *path="") |
Geometry overlap checker based on sampling. More... | |
void | TopToMaster (const Double_t *top, Double_t *master) const |
Convert coordinates from top volume frame to master. More... | |
Int_t | TransformVolumeToAssembly (const char *vname) |
Transform all volumes named VNAME to assemblies. The volumes must be virtual. More... | |
void | UnbombTranslation (const Double_t *tr, Double_t *bombtr) |
Get the new 'unbombed' translation vector according current exploded view mode. More... | |
void | ViewLeaves (Bool_t flag=kTRUE) |
Set visualization option (leaves only OR all volumes) More... | |
TGeoVolume * | Volume (const char *name, const char *shape, Int_t nmed, Double_t *upar, Int_t npar=0) |
Create a volume in GEANT3 style. More... | |
TGeoVolume * | Volume (const char *name, const char *shape, Int_t nmed, Float_t *upar, Int_t npar=0) |
Create a volume in GEANT3 style. More... | |
Double_t | Weight (Double_t precision=0.01, Option_t *option="va") |
Estimate weight of volume VOL with a precision SIGMA(W)/W better than PRECISION. More... | |
Public Member Functions inherited from TNamed | |
TNamed () | |
TNamed (const char *name, const char *title) | |
TNamed (const TNamed &named) | |
TNamed copy ctor. More... | |
TNamed (const TString &name, const TString &title) | |
virtual | ~TNamed () |
TNamed destructor. More... | |
virtual void | Clear (Option_t *option="") |
Set name and title to empty strings (""). More... | |
virtual TObject * | Clone (const char *newname="") const |
Make a clone of an object using the Streamer facility. More... | |
virtual Int_t | Compare (const TObject *obj) const |
Compare two TNamed objects. More... | |
virtual void | Copy (TObject &named) const |
Copy this to obj. More... | |
virtual void | FillBuffer (char *&buffer) |
Encode TNamed into output buffer. More... | |
virtual const char * | GetName () const |
Returns name of object. More... | |
virtual const char * | GetTitle () const |
Returns title of object. More... | |
virtual ULong_t | Hash () const |
Return hash value for this object. More... | |
virtual Bool_t | IsSortable () const |
virtual void | ls (Option_t *option="") const |
List TNamed name and title. More... | |
TNamed & | operator= (const TNamed &rhs) |
TNamed assignment operator. More... | |
virtual void | Print (Option_t *option="") const |
Print TNamed name and title. More... | |
virtual void | SetName (const char *name) |
Set the name of the TNamed. More... | |
virtual void | SetNameTitle (const char *name, const char *title) |
Set all the TNamed parameters (name and title). More... | |
virtual void | SetTitle (const char *title="") |
Set the title of the TNamed. More... | |
virtual Int_t | Sizeof () const |
Return size of the TNamed part of the TObject. More... | |
Public Member Functions inherited from TObject | |
TObject () | |
TObject constructor. More... | |
TObject (const TObject &object) | |
TObject copy ctor. More... | |
virtual | ~TObject () |
TObject destructor. More... | |
void | AbstractMethod (const char *method) const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract. More... | |
virtual void | AppendPad (Option_t *option="") |
Append graphics object to current pad. More... | |
virtual void | Browse (TBrowser *b) |
Browse object. May be overridden for another default action. More... | |
ULong_t | CheckedHash () |
Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. More... | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. More... | |
virtual void | Clear (Option_t *="") |
virtual TObject * | Clone (const char *newname="") const |
Make a clone of an object using the Streamer facility. More... | |
virtual Int_t | Compare (const TObject *obj) const |
Compare abstract method. More... | |
virtual void | Copy (TObject &object) const |
Copy this to obj. More... | |
virtual void | Delete (Option_t *option="") |
Delete this object. More... | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Computes distance from point (px,py) to the object. More... | |
virtual void | Draw (Option_t *option="") |
Default Draw method for all objects. More... | |
virtual void | DrawClass () const |
Draw class inheritance tree of the class to which this object belongs. More... | |
virtual TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad) . More... | |
virtual void | Dump () const |
Dump contents of object on stdout. More... | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. More... | |
virtual void | Execute (const char *method, const char *params, Int_t *error=0) |
Execute method on this object with the given parameter string, e.g. More... | |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=0) |
Execute method on this object with parameters stored in the TObjArray. More... | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to an event at (px,py). More... | |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. More... | |
virtual TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. More... | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. More... | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. More... | |
virtual const char * | GetIconName () const |
Returns mime type name of object. More... | |
virtual const char * | GetName () const |
Returns name of object. More... | |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). More... | |
virtual Option_t * | GetOption () const |
virtual const char * | GetTitle () const |
Returns title of object. More... | |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. More... | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. More... | |
virtual ULong_t | Hash () const |
Return hash value for this object. More... | |
Bool_t | HasInconsistentHash () const |
Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. More... | |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. More... | |
virtual Bool_t | InheritsFrom (const char *classname) const |
Returns kTRUE if object inherits from class "classname". More... | |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
Returns kTRUE if object inherits from TClass cl. More... | |
virtual void | Inspect () const |
Dump contents of this object in a graphics canvas. More... | |
void | InvertBit (UInt_t f) |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). More... | |
virtual Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More... | |
R__ALWAYS_INLINE Bool_t | IsOnHeap () const |
virtual Bool_t | IsSortable () const |
R__ALWAYS_INLINE Bool_t | IsZombie () const |
virtual void | ls (Option_t *option="") const |
The ls function lists the contents of a class on stdout. More... | |
void | MayNotUse (const char *method) const |
Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More... | |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification. More... | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. More... | |
void | operator delete (void *ptr) |
Operator delete. More... | |
void | operator delete[] (void *ptr) |
Operator delete []. More... | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, void *vp) |
TObject & | operator= (const TObject &rhs) |
TObject assignment operator. More... | |
virtual void | Paint (Option_t *option="") |
This method must be overridden if a class wants to paint itself. More... | |
virtual void | Pop () |
Pop on object drawn in a pad to the top of the display list. More... | |
virtual void | Print (Option_t *option="") const |
This method must be overridden when a class wants to print itself. More... | |
virtual Int_t | Read (const char *name) |
Read contents of object with specified name from the current directory. More... | |
virtual void | RecursiveRemove (TObject *obj) |
Recursively remove this object from a list. More... | |
void | ResetBit (UInt_t f) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
Save this object in the file specified by filename. More... | |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
Save a primitive as a C++ statement(s) on output stream "out". More... | |
void | SetBit (UInt_t f) |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. More... | |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. More... | |
virtual void | SetUniqueID (UInt_t uid) |
Set the unique object id. More... | |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. More... | |
R__ALWAYS_INLINE Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
virtual void | UseCurrentStyle () |
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More... | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) |
Write this object to the current directory. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const |
Write this object to the current directory. More... | |
Static Public Member Functions | |
static void | ClearThreadsMap () |
Clear the current map of threads. More... | |
static EDefaultUnits | GetDefaultUnits () |
static UInt_t | GetExportPrecision () |
static Int_t | GetMaxDaughters () |
Return maximum number of daughters of a volume used in the geometry. More... | |
static Int_t | GetMaxLevels () |
Return maximum number of levels used in the geometry. More... | |
static Int_t | GetMaxXtruVert () |
Return maximum number of vertices for an xtru shape used. More... | |
static Int_t | GetNumThreads () |
Returns number of threads that were set to use geometry. More... | |
static Int_t | GetVerboseLevel () |
Set verbosity level (static function). More... | |
static TGeoManager * | Import (const char *filename, const char *name="", Option_t *option="") |
static function Import a geometry from a gdml or ROOT file More... | |
static Bool_t | IsLocked () |
Check lock state. More... | |
static void | LockGeometry () |
Lock current geometry so that no other geometry can be imported. More... | |
static Int_t | Parse (const char *expr, TString &expr1, TString &expr2, TString &expr3) |
Parse a string boolean expression and do a syntax check. More... | |
static void | SetDefaultG4Units () |
static void | SetDefaultRootUnits () |
static void | SetExportPrecision (UInt_t prec) |
static void | SetNavigatorsLock (Bool_t flag) |
Set the lock for navigators. More... | |
static void | SetVerboseLevel (Int_t vl) |
Return current verbosity level (static function). More... | |
static Int_t | ThreadId () |
Translates the current thread id to an ordinal number. More... | |
static void | UnlockGeometry () |
Unlock current geometry. More... | |
Static Public Member Functions inherited from TObject | |
static Long_t | GetDtorOnly () |
Return destructor only flag. More... | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. More... | |
static void | SetDtorOnly (void *obj) |
Set destructor only flag. More... | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. More... | |
Protected Member Functions | |
TGeoManager (const TGeoManager &) | |
Default units in GDML if not explicit in some tags. More... | |
TGeoManager & | operator= (const TGeoManager &) |
assignment operator More... | |
Protected Member Functions inherited from TObject | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
Interface to ErrorHandler (protected). More... | |
void | MakeZombie () |
Static Protected Attributes | |
static EDefaultUnits | fgDefaultUnits = TGeoManager::kG4Units |
Precision to be used in ASCII exports. More... | |
static UInt_t | fgExportPrecision = 17 |
Maximum number of Xtru vertices. More... | |
static Bool_t | fgLock = kFALSE |
mutex for navigator booking in MT mode More... | |
static Int_t | fgMaxDaughters = 1 |
Maximum level in geometry. More... | |
static Int_t | fgMaxLevel = 1 |
Verbosity level for Info messages (no IO). More... | |
static Int_t | fgMaxXtruVert = 1 |
Maximum number of daughters. More... | |
static std::mutex | fgMutex |
static Int_t | fgVerboseLevel = 1 |
Lock preventing a second geometry to be loaded. More... | |
Private Types | |
typedef std::map< std::string, Double_t > | ConstPropMap_t |
typedef std::map< std::thread::id, TGeoNavigatorArray * > | NavigatorsMap_t |
bits used for voxelization More... | |
typedef NavigatorsMap_t::iterator | NavigatorsMapIt_t |
typedef std::map< std::thread::id, Int_t > | ThreadsMap_t |
typedef ThreadsMap_t::const_iterator | ThreadsMapIt_t |
Private Member Functions | |
void | Init () |
Initialize manager class. More... | |
Bool_t | InitArrayPNE () const |
Initialize PNE array for fast access via index and unique-id. More... | |
Bool_t | InsertPNEId (Int_t uid, Int_t ientry) |
Insert a PN entry in the sorted array of indexes. More... | |
Bool_t | IsLoopingVolumes () const |
void | SetLoopVolumes (Bool_t flag=kTRUE) |
void | UpdateElements () |
Update element flags when geometry is loaded from a file. More... | |
void | Voxelize (Option_t *option=0) |
Voxelize all non-divided volumes. More... | |
Static Private Attributes | |
static Bool_t | fgLockNavigators = kFALSE |
Number of registered threads. More... | |
static Int_t | fgNumThreads = 0 |
Thread id's map. More... | |
static ThreadsMap_t * | fgThreadId = 0 |
Map between thread id's and navigator arrays. More... | |
Additional Inherited Members | |
Protected Attributes inherited from TNamed | |
TString | fName |
TString | fTitle |
#include <TGeoManager.h>
|
private |
Definition at line 119 of file TGeoManager.h.
|
private |
bits used for voxelization
Definition at line 114 of file TGeoManager.h.
|
private |
Definition at line 115 of file TGeoManager.h.
|
private |
Definition at line 116 of file TGeoManager.h.
|
private |
Definition at line 117 of file TGeoManager.h.
Enumerator | |
---|---|
kG4Units | |
kRootUnits |
Definition at line 45 of file TGeoManager.h.
|
protected |
Default units in GDML if not explicit in some tags.
copy constructor
Definition at line 500 of file TGeoManager.cxx.
TGeoManager::TGeoManager | ( | ) |
Default constructor.
Definition at line 310 of file TGeoManager.cxx.
TGeoManager::TGeoManager | ( | const char * | name, |
const char * | title | ||
) |
Constructor.
Definition at line 398 of file TGeoManager.cxx.
|
virtual |
Destructor.
Definition at line 672 of file TGeoManager.cxx.
void TGeoManager::AddBorderSurface | ( | TGeoBorderSurface * | surf | ) |
Add border surface;.
Definition at line 2067 of file TGeoManager.cxx.
void TGeoManager::AddGDMLMatrix | ( | TGDMLMatrix * | mat | ) |
Add GDML matrix;.
Definition at line 2010 of file TGeoManager.cxx.
Int_t TGeoManager::AddMaterial | ( | const TGeoMaterial * | material | ) |
Add a material to the list. Returns index of the material in list.
Definition at line 728 of file TGeoManager.cxx.
TGeoNavigator * TGeoManager::AddNavigator | ( | ) |
Add a navigator in the list of navigators.
If it is the first one make it current navigator.
Definition at line 893 of file TGeoManager.cxx.
void TGeoManager::AddOpticalSurface | ( | TGeoOpticalSurface * | optsurf | ) |
Add optical surface;.
Definition at line 2029 of file TGeoManager.cxx.
Add an illegal overlap/extrusion to the list.
Definition at line 736 of file TGeoManager.cxx.
Add a user-defined property. Returns true if added, false if existing.
Definition at line 755 of file TGeoManager.cxx.
Int_t TGeoManager::AddRegion | ( | TGeoRegion * | region | ) |
Add a new region of volumes.
Definition at line 745 of file TGeoManager.cxx.
Add a shape to the list. Returns index of the shape in list.
Definition at line 808 of file TGeoManager.cxx.
void TGeoManager::AddSkinSurface | ( | TGeoSkinSurface * | surf | ) |
Add skin surface;.
Definition at line 2048 of file TGeoManager.cxx.
Add a track to the list of tracks.
Use this for primaries only. For secondaries, add them to the parent track. The method create objects that are registered to the analysis manager but have to be cleaned-up by the user via ClearTracks().
Definition at line 818 of file TGeoManager.cxx.
Int_t TGeoManager::AddTrack | ( | TVirtualGeoTrack * | track | ) |
Add a track to the list of tracks.
Definition at line 828 of file TGeoManager.cxx.
Int_t TGeoManager::AddTransformation | ( | const TGeoMatrix * | matrix | ) |
Add a matrix to the list. Returns index of the matrix in list.
Definition at line 800 of file TGeoManager.cxx.
Int_t TGeoManager::AddVolume | ( | TGeoVolume * | volume | ) |
Add a volume to the list. Returns index of the volume in list.
Definition at line 848 of file TGeoManager.cxx.
void TGeoManager::AnimateTracks | ( | Double_t | tmin = 0 , |
Double_t | tmax = 5E-8 , |
||
Int_t | nframes = 200 , |
||
Option_t * | option = "/*" |
||
) |
Draw animation of tracks.
Definition at line 1849 of file TGeoManager.cxx.
Get the new 'bombed' translation vector according current exploded view mode.
Definition at line 1145 of file TGeoManager.cxx.
Describe how to browse this object.
Reimplemented from TObject.
Definition at line 1101 of file TGeoManager.cxx.
void TGeoManager::BuildDefaultMaterials | ( | ) |
Now just a shortcut for GetElementTable.
Definition at line 3528 of file TGeoManager.cxx.
|
virtual |
Browse the tree of nodes starting from fTopNode according to pathname.
Changes the path accordingly.
Definition at line 1729 of file TGeoManager.cxx.
Make a daughter of current node current.
Can be called only with a valid daughter index (no check). Updates cache accordingly.
Definition at line 1712 of file TGeoManager.cxx.
void TGeoManager::CdNext | ( | ) |
Do a cd to the node found next by FindNextBoundary.
Definition at line 1720 of file TGeoManager.cxx.
Change current path to point to the node having this id.
Node id has to be in range : 0 to fNNodes-1 (no check for performance reasons)
Definition at line 1677 of file TGeoManager.cxx.
void TGeoManager::CdTop | ( | ) |
Make top level node the current node.
Updates the cache accordingly. Determine the overlapping state of current node.
Definition at line 1694 of file TGeoManager.cxx.
void TGeoManager::CdUp | ( | ) |
Go one level up in geometry.
Updates cache accordingly. Determine the overlapping state of current node.
Definition at line 1703 of file TGeoManager.cxx.
Check pushes and pulls needed to cross the next boundary with respect to the position given by FindNextBoundary.
If radius is not mentioned the full bounding box will be sampled.
Definition at line 3660 of file TGeoManager.cxx.
Check the boundary errors reference file created by CheckBoundaryErrors method.
The shape for which the crossing failed is drawn with the starting point in red and the extrapolated point to boundary (+/- failing push/pull) in yellow.
Definition at line 3670 of file TGeoManager.cxx.
Perform last checks on the geometry.
Definition at line 3739 of file TGeoManager.cxx.
void TGeoManager::CheckGeometryFull | ( | Int_t | ntracks = 1000000 , |
Double_t | vx = 0. , |
||
Double_t | vy = 0. , |
||
Double_t | vz = 0. , |
||
Option_t * | option = "ob" |
||
) |
Geometry checking.
STAGE 1: extensive overlap checking by sampling per volume. Stdout need to be checked by user to get report, then TGeoVolume::CheckOverlaps(0.01, "s") can be called for the suspicious volumes.
STAGE 2: normal overlap checking using the shapes mesh - fills the list of overlaps.
STAGE 3: shooting NRAYS rays from VERTEX and counting the total number of crossings per volume (rays propagated from boundary to boundary until geometry exit). Timing computed and results stored in a histo.
STAGE 4: shooting 1 mil. random rays inside EACH volume and calling FindNextBoundary() + Safety() for each call. The timing is normalized by the number of crossings computed at stage 2 and presented as percentage. One can get a picture on which are the most "burned" volumes during transportation from geometry point of view. Another plot of the timing per volume vs. number of daughters is produced.
Definition at line 3719 of file TGeoManager.cxx.
Check all geometry for illegal overlaps within a limit OVLP.
Definition at line 3771 of file TGeoManager.cxx.
Bool_t TGeoManager::CheckPath | ( | const char * | path | ) | const |
Check if a geometry path is valid without changing the state of the current navigator.
Definition at line 1737 of file TGeoManager.cxx.
void TGeoManager::CheckPoint | ( | Double_t | x = 0 , |
Double_t | y = 0 , |
||
Double_t | z = 0 , |
||
Option_t * | option = "" |
||
) |
Classify a given point. See TGeoChecker::CheckPoint().
Definition at line 3678 of file TGeoManager.cxx.
Test for shape navigation methods.
Summary for test numbers:
Definition at line 3691 of file TGeoManager.cxx.
void TGeoManager::CleanGarbage | ( | ) |
Clean temporary volumes and shapes from garbage collection.
Definition at line 1651 of file TGeoManager.cxx.
void TGeoManager::ClearAttributes | ( | ) |
Reset all attributes to default ones.
Default attributes for visualization are those defined before closing the geometry.
Definition at line 1513 of file TGeoManager.cxx.
void TGeoManager::ClearNavigators | ( | ) |
Clear all navigators.
Definition at line 974 of file TGeoManager.cxx.
void TGeoManager::ClearOverlaps | ( | ) |
Clear the list of overlaps.
Definition at line 1630 of file TGeoManager.cxx.
Clear the current list of physical nodes, so that we can start over with a new list.
If MUSTDELETE is true, delete previous nodes.
Definition at line 3462 of file TGeoManager.cxx.
Remove a shape from the list of shapes.
Definition at line 1642 of file TGeoManager.cxx.
void TGeoManager::ClearThreadData | ( | ) | const |
Definition at line 1040 of file TGeoManager.cxx.
|
static |
Clear the current map of threads.
This will be filled again by the calling threads via ThreadId calls.
Definition at line 1067 of file TGeoManager.cxx.
|
inline |
Definition at line 437 of file TGeoManager.h.
Closing geometry implies checking the geometry validity, fixing shapes with negative parameters (run-time shapes)building the cache manager, voxelizing all volumes, counting the total number of physical nodes and registering the manager class to the browser.
Definition at line 1535 of file TGeoManager.cxx.
void TGeoManager::ConvertReflections | ( | ) |
Convert all reflections in geometry to normal rotations + reflected shapes.
Definition at line 1745 of file TGeoManager.cxx.
void TGeoManager::CountLevels | ( | ) |
Count maximum number of nodes per volume, maximum depth and maximum number of xtru vertices.
Definition at line 1778 of file TGeoManager.cxx.
Int_t TGeoManager::CountNodes | ( | const TGeoVolume * | vol = 0 , |
Int_t | nlevels = 10000 , |
||
Int_t | option = 0 |
||
) |
Count the total number of nodes starting from a volume, nlevels down.
Definition at line 1818 of file TGeoManager.cxx.
TGeoParallelWorld * TGeoManager::CreateParallelWorld | ( | const char * | name | ) |
Create a parallel world for prioritised navigation.
This can be populated with physical nodes and can be navigated independently using its API. In case the flag SetUseParallelWorldNav is set, any navigation query in the main geometry is checked against the parallel geometry, which gets priority in case of overlaps with the main geometry volumes.
Definition at line 4151 of file TGeoManager.cxx.
void TGeoManager::CreateThreadData | ( | ) | const |
Create thread private data for all geometry objects.
Definition at line 1053 of file TGeoManager.cxx.
Cross next boundary and locate within current node The current point must be on the boundary of fCurrentNode.
Definition at line 2679 of file TGeoManager.cxx.
void TGeoManager::DefaultAngles | ( | ) |
Set default angles for a given view.
Definition at line 1833 of file TGeoManager.cxx.
void TGeoManager::DefaultColors | ( | ) |
Set default volume colors according to A of material.
Definition at line 2253 of file TGeoManager.cxx.
|
inline |
Definition at line 389 of file TGeoManager.h.
TGeoVolume * TGeoManager::Division | ( | const char * | name, |
const char * | mother, | ||
Int_t | iaxis, | ||
Int_t | ndiv, | ||
Double_t | start, | ||
Double_t | step, | ||
Int_t | numed = 0 , |
||
Option_t * | option = "" |
||
) |
Create a new volume by dividing an existing one (GEANT3 like)
Divides MOTHER into NDIV divisions called NAME along axis IAXIS starting at coordinate value START and having size STEP. The created volumes will have tracking media ID=NUMED (if NUMED=0 -> same media as MOTHER) The behavior of the division operation can be triggered using OPTION :
OPTION (case insensitive) :
Definition at line 1311 of file TGeoManager.cxx.
void TGeoManager::DoBackupState | ( | ) |
Backup the current state without affecting the cache stack.
Definition at line 1163 of file TGeoManager.cxx.
void TGeoManager::DoRestoreState | ( | ) |
Restore a backed-up state without affecting the cache stack.
Definition at line 1171 of file TGeoManager.cxx.
Draw current point in the same view.
Definition at line 1841 of file TGeoManager.cxx.
Draw current path.
Definition at line 1928 of file TGeoManager.cxx.
Draw tracks over the geometry, according to option.
By default, only primaries are drawn. See TGeoTrack::Draw() for additional options.
Definition at line 1911 of file TGeoManager.cxx.
Append a pad for this geometry.
Definition at line 1120 of file TGeoManager.cxx.
|
inline |
Definition at line 390 of file TGeoManager.h.
Execute mouse actions on this manager.
Reimplemented from TObject.
Definition at line 3848 of file TGeoManager.cxx.
|
virtual |
Export this geometry to a file.
Definition at line 3872 of file TGeoManager.cxx.
TGeoMaterial * TGeoManager::FindDuplicateMaterial | ( | const TGeoMaterial * | mat | ) | const |
Find if a given material duplicates an existing one.
Definition at line 2926 of file TGeoManager.cxx.
TGeoNode * TGeoManager::FindNextBoundary | ( | Double_t | stepmax = TGeoShape::Big() , |
const char * | path = "" , |
||
Bool_t | frombdr = kFALSE |
||
) |
Find distance to next boundary and store it in fStep.
Returns node to which this boundary belongs. If PATH is specified, compute only distance to the node to which PATH points. If STEPMAX is specified, compute distance only in case fSafety is smaller than this value. STEPMAX represent the step to be made imposed by other reasons than geometry (usually physics processes). Therefore in this case this method provides the answer to the question : "Is STEPMAX a safe step ?" returning a NULL node and filling fStep with a big number. In case frombdr=kTRUE, the isotropic safety is set to zero.
Note : safety distance for the current point is computed ONLY in case STEPMAX is specified, otherwise users have to call explicitly TGeoManager::Safety() if they want this computed for the current point.
Definition at line 2709 of file TGeoManager.cxx.
TGeoNode * TGeoManager::FindNextBoundaryAndStep | ( | Double_t | stepmax = TGeoShape::Big() , |
Bool_t | compsafe = kFALSE |
||
) |
Compute distance to next boundary within STEPMAX.
If no boundary is found, propagate current point along current direction with fStep=STEPMAX. Otherwise propagate with fStep=SNEXT (distance to boundary) and locate/return the next node.
Definition at line 2690 of file TGeoManager.cxx.
TGeoNode * TGeoManager::FindNextDaughterBoundary | ( | Double_t * | point, |
Double_t * | dir, | ||
Int_t & | idaughter, | ||
Bool_t | compmatrix = kFALSE |
||
) |
Computes as fStep the distance to next daughter of the current volume.
The point and direction must be converted in the coordinate system of the current volume. The proposed step limit is fStep.
Definition at line 2720 of file TGeoManager.cxx.
Returns deepest node containing current point.
Definition at line 2736 of file TGeoManager.cxx.
Returns deepest node containing current point.
Definition at line 2744 of file TGeoManager.cxx.
Computes normal vector to the next surface that will be or was already crossed when propagating on a straight line from a given point/direction.
Returns the normal vector cosines in the MASTER coordinate system. The dot product of the normal and the current direction is positive defined.
Definition at line 2764 of file TGeoManager.cxx.
Double_t * TGeoManager::FindNormalFast | ( | ) |
Computes fast normal to next crossed boundary, assuming that the current point is close enough to the boundary.
Works only after calling FindNextBoundary.
Definition at line 2753 of file TGeoManager.cxx.
TVirtualGeoTrack * TGeoManager::FindTrackWithId | ( | Int_t | id | ) | const |
Search the track hierarchy to find the track with the given id.
if 'primsFirst' is true, then: first tries TGeoManager::GetTrackOfId, then does a recursive search if that fails. this would be faster if the track is somehow known to be a primary
Definition at line 2179 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::FindVolumeFast | ( | const char * | name, |
Bool_t | multi = kFALSE |
||
) |
Fast search for a named volume. All trailing blanks stripped.
Definition at line 2892 of file TGeoManager.cxx.
TGeoPNEntry * TGeoManager::GetAlignableEntry | ( | const char * | name | ) | const |
Retrieves an existing alignable object.
Definition at line 3299 of file TGeoManager.cxx.
TGeoPNEntry * TGeoManager::GetAlignableEntry | ( | Int_t | index | ) | const |
Retrieves an existing alignable object at a given index.
Definition at line 3308 of file TGeoManager.cxx.
TGeoPNEntry * TGeoManager::GetAlignableEntryByUID | ( | Int_t | uid | ) | const |
Retrieves an existing alignable object having a preset UID.
Definition at line 3317 of file TGeoManager.cxx.
|
inline |
Definition at line 451 of file TGeoManager.h.
void TGeoManager::GetBombFactors | ( | Double_t & | bombx, |
Double_t & | bomby, | ||
Double_t & | bombz, | ||
Double_t & | bombr | ||
) | const |
Retrieve cartesian and radial bomb factors.
Definition at line 2095 of file TGeoManager.cxx.
|
inline |
Definition at line 213 of file TGeoManager.h.
TGeoBorderSurface * TGeoManager::GetBorderSurface | ( | const char * | name | ) | const |
Get border surface with a given name;.
Definition at line 2060 of file TGeoManager.cxx.
Fill volume names of current branch into an array.
Definition at line 1962 of file TGeoManager.cxx.
Fill node copy numbers of current branch into an array.
Definition at line 2079 of file TGeoManager.cxx.
Fill node copy numbers of current branch into an array.
Definition at line 2087 of file TGeoManager.cxx.
Get total size of geometry in bytes.
Definition at line 2839 of file TGeoManager.cxx.
|
inline |
Definition at line 577 of file TGeoManager.h.
|
inline |
Definition at line 524 of file TGeoManager.h.
|
inline |
Definition at line 523 of file TGeoManager.h.
|
inline |
Definition at line 209 of file TGeoManager.h.
|
inline |
Definition at line 521 of file TGeoManager.h.
|
inline |
Definition at line 515 of file TGeoManager.h.
TGeoNavigator * TGeoManager::GetCurrentNavigator | ( | ) | const |
Returns current navigator for the calling thread.
Definition at line 913 of file TGeoManager.cxx.
|
inline |
Definition at line 518 of file TGeoManager.h.
Int_t TGeoManager::GetCurrentNodeId | ( | ) | const |
Get the unique ID of the current node.
Definition at line 1685 of file TGeoManager.cxx.
|
inline |
Definition at line 520 of file TGeoManager.h.
|
inline |
Definition at line 394 of file TGeoManager.h.
|
inline |
Definition at line 522 of file TGeoManager.h.
|
static |
Definition at line 4180 of file TGeoManager.cxx.
TGeoElementTable * TGeoManager::GetElementTable | ( | ) |
Returns material table. Creates it if not existing.
Definition at line 3537 of file TGeoManager.cxx.
|
inlinestatic |
Definition at line 478 of file TGeoManager.h.
TGDMLMatrix * TGeoManager::GetGDMLMatrix | ( | const char * | name | ) | const |
Get GDML matrix with a given name;.
Definition at line 2003 of file TGeoManager.cxx.
TVirtualGeoPainter * TGeoManager::GetGeomPainter | ( | ) |
Make a default painter if none present. Returns pointer to it.
Definition at line 2861 of file TGeoManager.cxx.
|
inline |
Definition at line 516 of file TGeoManager.h.
TGeoHMatrix * TGeoManager::GetHMatrix | ( | ) |
Return stored current matrix (global matrix of the next touched node).
Definition at line 2139 of file TGeoManager.cxx.
|
inline |
Definition at line 396 of file TGeoManager.h.
|
inline |
Definition at line 406 of file TGeoManager.h.
|
inline |
Definition at line 395 of file TGeoManager.h.
|
inline |
Definition at line 526 of file TGeoManager.h.
|
inline |
Definition at line 501 of file TGeoManager.h.
|
inline |
Definition at line 498 of file TGeoManager.h.
|
inline |
Definition at line 495 of file TGeoManager.h.
|
inline |
Definition at line 493 of file TGeoManager.h.
|
inline |
Definition at line 490 of file TGeoManager.h.
|
inline |
Definition at line 489 of file TGeoManager.h.
|
inline |
Definition at line 491 of file TGeoManager.h.
TGeoNavigatorArray * TGeoManager::GetListOfNavigators | ( | ) | const |
Get list of navigators for the calling thread.
Definition at line 931 of file TGeoManager.cxx.
|
inline |
Definition at line 486 of file TGeoManager.h.
|
inline |
Definition at line 499 of file TGeoManager.h.
|
inline |
Definition at line 488 of file TGeoManager.h.
|
inline |
Definition at line 487 of file TGeoManager.h.
|
inline |
Definition at line 502 of file TGeoManager.h.
|
inline |
Definition at line 494 of file TGeoManager.h.
|
inline |
Definition at line 500 of file TGeoManager.h.
|
inline |
Definition at line 497 of file TGeoManager.h.
|
inline |
Definition at line 496 of file TGeoManager.h.
|
inline |
Definition at line 492 of file TGeoManager.h.
|
inline |
Definition at line 530 of file TGeoManager.h.
TGeoMaterial * TGeoManager::GetMaterial | ( | const char * | matname | ) | const |
Search for a named material. All trailing blanks stripped.
Definition at line 2942 of file TGeoManager.cxx.
TGeoMaterial * TGeoManager::GetMaterial | ( | Int_t | id | ) | const |
Return material at position id.
Definition at line 2977 of file TGeoManager.cxx.
Int_t TGeoManager::GetMaterialIndex | ( | const char * | matname | ) | const |
Return index of named material.
Definition at line 2987 of file TGeoManager.cxx.
|
static |
Return maximum number of daughters of a volume used in the geometry.
Definition at line 2107 of file TGeoManager.cxx.
|
inline |
Definition at line 527 of file TGeoManager.h.
|
static |
Return maximum number of levels used in the geometry.
Definition at line 2115 of file TGeoManager.cxx.
|
inline |
Definition at line 457 of file TGeoManager.h.
|
inline |
Definition at line 215 of file TGeoManager.h.
|
static |
Return maximum number of vertices for an xtru shape used.
Definition at line 2123 of file TGeoManager.cxx.
TGeoMedium * TGeoManager::GetMedium | ( | const char * | medium | ) | const |
Search for a named tracking medium. All trailing blanks stripped.
Definition at line 2953 of file TGeoManager.cxx.
TGeoMedium * TGeoManager::GetMedium | ( | Int_t | numed | ) | const |
Search for a tracking medium with a given ID.
Definition at line 2964 of file TGeoManager.cxx.
Definition at line 512 of file TGeoManager.h.
|
inline |
Definition at line 513 of file TGeoManager.h.
Retrieves number of PN entries with or without UID.
Definition at line 3328 of file TGeoManager.cxx.
|
inline |
Definition at line 511 of file TGeoManager.h.
|
inline |
Definition at line 198 of file TGeoManager.h.
|
inline |
Definition at line 576 of file TGeoManager.h.
Definition at line 509 of file TGeoManager.h.
|
inline |
Definition at line 510 of file TGeoManager.h.
|
inline |
Definition at line 525 of file TGeoManager.h.
|
inline |
Definition at line 181 of file TGeoManager.h.
|
inline |
Definition at line 573 of file TGeoManager.h.
Int_t TGeoManager::GetNsegments | ( | ) | const |
Get number of segments approximating circles.
Definition at line 3520 of file TGeoManager.cxx.
|
inline |
Definition at line 393 of file TGeoManager.h.
|
static |
Returns number of threads that were set to use geometry.
Definition at line 2131 of file TGeoManager.cxx.
TGeoOpticalSurface * TGeoManager::GetOpticalSurface | ( | const char * | name | ) | const |
Get optical surface with a given name;.
Definition at line 2022 of file TGeoManager.cxx.
|
inline |
Definition at line 212 of file TGeoManager.h.
|
inline |
Definition at line 218 of file TGeoManager.h.
|
inline |
Definition at line 594 of file TGeoManager.h.
TVirtualGeoTrack * TGeoManager::GetParentTrackOfId | ( | Int_t | id | ) | const |
Get parent track with a given ID.
Definition at line 2211 of file TGeoManager.cxx.
|
inline |
Definition at line 262 of file TGeoManager.h.
const char * TGeoManager::GetPath | ( | ) | const |
Get path to the current node in the form /node0/node1/...
Definition at line 2831 of file TGeoManager.cxx.
const char * TGeoManager::GetPdgName | ( | Int_t | pdg | ) | const |
Get name for given pdg code;.
Definition at line 1970 of file TGeoManager.cxx.
|
inline |
Definition at line 533 of file TGeoManager.h.
Get a user-defined property.
Definition at line 768 of file TGeoManager.cxx.
Get a user-defined property from a given index.
Definition at line 782 of file TGeoManager.cxx.
|
inline |
Definition at line 574 of file TGeoManager.h.
|
inline |
Definition at line 459 of file TGeoManager.h.
|
inline |
Definition at line 405 of file TGeoManager.h.
Int_t TGeoManager::GetSafeLevel | ( | ) | const |
Go upwards the tree until a non-overlapping node.
Definition at line 2245 of file TGeoManager.cxx.
TGeoSkinSurface * TGeoManager::GetSkinSurface | ( | const char * | name | ) | const |
Get skin surface with a given name;.
Definition at line 2041 of file TGeoManager.cxx.
|
inline |
Definition at line 529 of file TGeoManager.h.
|
inline |
Definition at line 407 of file TGeoManager.h.
|
inline |
Definition at line 217 of file TGeoManager.h.
Get time cut for drawing tracks.
Definition at line 4108 of file TGeoManager.cxx.
|
inline |
Definition at line 532 of file TGeoManager.h.
|
inline |
Definition at line 531 of file TGeoManager.h.
|
inline |
Definition at line 397 of file TGeoManager.h.
Get index for track id, -1 if not found.
Definition at line 2223 of file TGeoManager.cxx.
TVirtualGeoTrack * TGeoManager::GetTrackOfId | ( | Int_t | id | ) | const |
Get track with a given ID.
Definition at line 2197 of file TGeoManager.cxx.
Int_t TGeoManager::GetUID | ( | const char * | volname | ) | const |
Retrieve unique id for a volume name. Return -1 if name not found.
Definition at line 2914 of file TGeoManager.cxx.
|
inline |
Definition at line 219 of file TGeoManager.h.
|
static |
Set verbosity level (static function).
Definition at line 3958 of file TGeoManager.cxx.
Int_t TGeoManager::GetVirtualLevel | ( | ) |
Find level of virtuality of current overlapping node (number of levels up having the same tracking media.
Definition at line 2165 of file TGeoManager.cxx.
|
inline |
Definition at line 220 of file TGeoManager.h.
Int_t TGeoManager::GetVisLevel | ( | ) | const |
Returns current depth to which geometry is drawn.
Definition at line 2148 of file TGeoManager.cxx.
Int_t TGeoManager::GetVisOption | ( | ) | const |
Returns current depth to which geometry is drawn.
Definition at line 2156 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::GetVolume | ( | const char * | name | ) | const |
Search for a named volume. All trailing blanks stripped.
Definition at line 2881 of file TGeoManager.cxx.
|
inline |
Definition at line 572 of file TGeoManager.h.
Bool_t TGeoManager::GotoSafeLevel | ( | ) |
Go upwards the tree until a non-overlapping node.
Definition at line 2237 of file TGeoManager.cxx.
|
static |
static function Import a geometry from a gdml or ROOT file
Note that this function deletes the current gGeoManager (if one) before importing the new object.
Definition at line 3988 of file TGeoManager.cxx.
|
private |
Initialize manager class.
Definition at line 412 of file TGeoManager.cxx.
|
private |
Initialize PNE array for fast access via index and unique-id.
Definition at line 4091 of file TGeoManager.cxx.
Initialize current point and current direction vector (normalized) in MARS.
Return corresponding node.
Definition at line 2806 of file TGeoManager.cxx.
TGeoNode * TGeoManager::InitTrack | ( | Double_t | x, |
Double_t | y, | ||
Double_t | z, | ||
Double_t | nx, | ||
Double_t | ny, | ||
Double_t | nz | ||
) |
Initialize current point and current direction vector (normalized) in MARS.
Return corresponding node.
Definition at line 2815 of file TGeoManager.cxx.
Insert a PN entry in the sorted array of indexes.
Definition at line 3338 of file TGeoManager.cxx.
void TGeoManager::InspectState | ( | ) | const |
Inspects path and all flags for the current state.
Definition at line 2823 of file TGeoManager.cxx.
|
inline |
Definition at line 430 of file TGeoManager.h.
|
inline |
Definition at line 409 of file TGeoManager.h.
|
inline |
Definition at line 410 of file TGeoManager.h.
|
inline |
Definition at line 483 of file TGeoManager.h.
|
inline |
Definition at line 304 of file TGeoManager.h.
|
inline |
Definition at line 422 of file TGeoManager.h.
|
inline |
Definition at line 224 of file TGeoManager.h.
|
inline |
Definition at line 423 of file TGeoManager.h.
|
inline |
Definition at line 424 of file TGeoManager.h.
|
inlinevirtual |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
Reimplemented from TObject.
Definition at line 201 of file TGeoManager.h.
Bool_t TGeoManager::IsInPhiRange | ( | ) | const |
True if current node is in phi range.
Definition at line 2788 of file TGeoManager.cxx.
|
static |
Check lock state.
Definition at line 3948 of file TGeoManager.cxx.
|
inlineprivate |
Definition at line 154 of file TGeoManager.h.
|
inline |
Definition at line 412 of file TGeoManager.h.
|
inline |
Definition at line 411 of file TGeoManager.h.
|
inline |
Definition at line 461 of file TGeoManager.h.
|
inline |
Definition at line 225 of file TGeoManager.h.
|
inline |
Definition at line 429 of file TGeoManager.h.
|
inline |
Definition at line 428 of file TGeoManager.h.
|
inline |
Definition at line 427 of file TGeoManager.h.
|
inline |
Definition at line 596 of file TGeoManager.h.
|
inline |
Definition at line 414 of file TGeoManager.h.
Checks if point (x,y,z) is still in the current node.
Definition at line 2772 of file TGeoManager.cxx.
Check if a new point with given coordinates is the same as the last located one.
Definition at line 2780 of file TGeoManager.cxx.
|
inline |
Definition at line 416 of file TGeoManager.h.
|
inline |
Definition at line 425 of file TGeoManager.h.
|
inline |
Definition at line 426 of file TGeoManager.h.
|
inline |
Definition at line 482 of file TGeoManager.h.
|
inline |
Definition at line 226 of file TGeoManager.h.
Definition at line 542 of file TGeoManager.h.
Definition at line 544 of file TGeoManager.h.
Definition at line 543 of file TGeoManager.h.
|
static |
Lock current geometry so that no other geometry can be imported.
Definition at line 3932 of file TGeoManager.cxx.
TGeoPhysicalNode * TGeoManager::MakeAlignablePN | ( | const char * | name | ) |
Make a physical node from the path pointed by an alignable object with a given name.
Definition at line 3395 of file TGeoManager.cxx.
TGeoPhysicalNode * TGeoManager::MakeAlignablePN | ( | TGeoPNEntry * | entry | ) |
Make a physical node from the path pointed by a given alignable object.
Definition at line 3408 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakeArb8 | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | dz, | ||
Double_t * | vertices = 0 |
||
) |
Make an TGeoArb8 volume.
Definition at line 3080 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakeBox | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | dx, | ||
Double_t | dy, | ||
Double_t | dz | ||
) |
Make in one step a volume pointing to a box shape with given medium.
Definition at line 3089 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakeCone | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | dz, | ||
Double_t | rmin1, | ||
Double_t | rmax1, | ||
Double_t | rmin2, | ||
Double_t | rmax2 | ||
) |
Make in one step a volume pointing to a cone shape with given medium.
Definition at line 3184 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakeCons | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | dz, | ||
Double_t | rmin1, | ||
Double_t | rmax1, | ||
Double_t | rmin2, | ||
Double_t | rmax2, | ||
Double_t | phi1, | ||
Double_t | phi2 | ||
) |
Make in one step a volume pointing to a cone segment shape with given medium.
Definition at line 3194 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakeCtub | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | rmin, | ||
Double_t | rmax, | ||
Double_t | dz, | ||
Double_t | phi1, | ||
Double_t | phi2, | ||
Double_t | lx, | ||
Double_t | ly, | ||
Double_t | lz, | ||
Double_t | tx, | ||
Double_t | ty, | ||
Double_t | tz | ||
) |
Make in one step a volume pointing to a tube segment shape with given medium.
Definition at line 3174 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakeEltu | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | a, | ||
Double_t | b, | ||
Double_t | dz | ||
) |
Make in one step a volume pointing to a tube shape with given medium.
Definition at line 3147 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakeGtra | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | dz, | ||
Double_t | theta, | ||
Double_t | phi, | ||
Double_t | twist, | ||
Double_t | h1, | ||
Double_t | bl1, | ||
Double_t | tl1, | ||
Double_t | alpha1, | ||
Double_t | h2, | ||
Double_t | bl2, | ||
Double_t | tl2, | ||
Double_t | alpha2 | ||
) |
Make in one step a volume pointing to a twisted trapezoid shape with given medium.
Definition at line 3253 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakeHype | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | rin, | ||
Double_t | stin, | ||
Double_t | rout, | ||
Double_t | stout, | ||
Double_t | dz | ||
) |
Make in one step a volume pointing to a tube shape with given medium.
Definition at line 3156 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakePara | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | dx, | ||
Double_t | dy, | ||
Double_t | dz, | ||
Double_t | alpha, | ||
Double_t | theta, | ||
Double_t | phi | ||
) |
Make in one step a volume pointing to a parallelepiped shape with given medium.
Definition at line 3098 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakeParaboloid | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | rlo, | ||
Double_t | rhi, | ||
Double_t | dz | ||
) |
Make in one step a volume pointing to a tube shape with given medium.
Definition at line 3165 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakePcon | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | phi, | ||
Double_t | dphi, | ||
Int_t | nz | ||
) |
Make in one step a volume pointing to a polycone shape with given medium.
Definition at line 3205 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakePgon | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | phi, | ||
Double_t | dphi, | ||
Int_t | nedges, | ||
Int_t | nz | ||
) |
Make in one step a volume pointing to a polygone shape with given medium.
Definition at line 3214 of file TGeoManager.cxx.
TGeoPhysicalNode * TGeoManager::MakePhysicalNode | ( | const char * | path = 0 | ) |
Makes a physical node corresponding to a path.
If PATH is not specified, makes physical node matching current modeller state.
Definition at line 3429 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakeSphere | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | rmin, | ||
Double_t | rmax, | ||
Double_t | themin = 0 , |
||
Double_t | themax = 180 , |
||
Double_t | phimin = 0 , |
||
Double_t | phimax = 360 |
||
) |
Make in one step a volume pointing to a sphere shape with given medium.
Definition at line 3108 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakeTorus | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | r, | ||
Double_t | rmin, | ||
Double_t | rmax, | ||
Double_t | phi1 = 0 , |
||
Double_t | dphi = 360 |
||
) |
Make in one step a volume pointing to a torus shape with given medium.
Definition at line 3118 of file TGeoManager.cxx.
TVirtualGeoTrack * TGeoManager::MakeTrack | ( | Int_t | id, |
Int_t | pdgcode, | ||
TObject * | particle | ||
) |
Makes a primary track but do not attach it to the list of tracks.
The track can be attached as daughter to another one with TVirtualGeoTrack::AddTrack
Definition at line 839 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakeTrap | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | dz, | ||
Double_t | theta, | ||
Double_t | phi, | ||
Double_t | h1, | ||
Double_t | bl1, | ||
Double_t | tl1, | ||
Double_t | alpha1, | ||
Double_t | h2, | ||
Double_t | bl2, | ||
Double_t | tl2, | ||
Double_t | alpha2 | ||
) |
Make in one step a volume pointing to a trapezoid shape with given medium.
Definition at line 3242 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakeTrd1 | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | dx1, | ||
Double_t | dx2, | ||
Double_t | dy, | ||
Double_t | dz | ||
) |
Make in one step a volume pointing to a TGeoTrd1 shape with given medium.
Definition at line 3223 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakeTrd2 | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | dx1, | ||
Double_t | dx2, | ||
Double_t | dy1, | ||
Double_t | dy2, | ||
Double_t | dz | ||
) |
Make in one step a volume pointing to a TGeoTrd2 shape with given medium.
Definition at line 3232 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakeTube | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | rmin, | ||
Double_t | rmax, | ||
Double_t | dz | ||
) |
Make in one step a volume pointing to a tube shape with given medium.
Definition at line 3127 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakeTubs | ( | const char * | name, |
TGeoMedium * | medium, | ||
Double_t | rmin, | ||
Double_t | rmax, | ||
Double_t | dz, | ||
Double_t | phiStart, | ||
Double_t | phiEnd | ||
) |
Make in one step a volume pointing to a tube segment shape with given medium.
The segment will be from phiStart to phiEnd, the angles are expressed in degree
Definition at line 3137 of file TGeoManager.cxx.
TGeoVolumeAssembly * TGeoManager::MakeVolumeAssembly | ( | const char * | name | ) |
Make an assembly of volumes.
Definition at line 3471 of file TGeoManager.cxx.
TGeoVolumeMulti * TGeoManager::MakeVolumeMulti | ( | const char * | name, |
TGeoMedium * | medium | ||
) |
Make a TGeoVolumeMulti handling a list of volumes.
Definition at line 3479 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::MakeXtru | ( | const char * | name, |
TGeoMedium * | medium, | ||
Int_t | nz | ||
) |
Make a TGeoXtru-shaped volume with nz planes.
Definition at line 3264 of file TGeoManager.cxx.
Definition at line 545 of file TGeoManager.h.
Definition at line 547 of file TGeoManager.h.
Definition at line 546 of file TGeoManager.h.
Convert coordinates from master volume frame to top.
Definition at line 4131 of file TGeoManager.cxx.
TGeoMaterial * TGeoManager::Material | ( | const char * | name, |
Double_t | a, | ||
Double_t | z, | ||
Double_t | dens, | ||
Int_t | uid, | ||
Double_t | radlen = 0 , |
||
Double_t | intlen = 0 |
||
) |
Create material with given A, Z and density, having an unique id.
Definition at line 1339 of file TGeoManager.cxx.
void TGeoManager::Matrix | ( | Int_t | index, |
Double_t | theta1, | ||
Double_t | phi1, | ||
Double_t | theta2, | ||
Double_t | phi2, | ||
Double_t | theta3, | ||
Double_t | phi3 | ||
) |
Create rotation matrix named 'mat<index>'.
Definition at line 1329 of file TGeoManager.cxx.
TGeoMedium * TGeoManager::Medium | ( | const char * | name, |
Int_t | numed, | ||
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 | ||
) |
Create tracking medium.
Definition at line 1385 of file TGeoManager.cxx.
TGeoMaterial * TGeoManager::Mixture | ( | const char * | name, |
Double_t * | a, | ||
Double_t * | z, | ||
Double_t | dens, | ||
Int_t | nelem, | ||
Double_t * | wmat, | ||
Int_t | uid | ||
) |
Create mixture OR COMPOUND IMAT as composed by THE BASIC nelem materials defined by arrays A,Z and WMAT, having an unique id.
Definition at line 1359 of file TGeoManager.cxx.
TGeoMaterial * TGeoManager::Mixture | ( | const char * | name, |
Float_t * | a, | ||
Float_t * | z, | ||
Double_t | dens, | ||
Int_t | nelem, | ||
Float_t * | wmat, | ||
Int_t | uid | ||
) |
Create mixture OR COMPOUND IMAT as composed by THE BASIC nelem materials defined by arrays A,Z and WMAT, having an unique id.
Definition at line 1349 of file TGeoManager.cxx.
void TGeoManager::ModifiedPad | ( | ) | const |
Send "Modified" signal to painter.
Definition at line 3071 of file TGeoManager.cxx.
void TGeoManager::Node | ( | const char * | name, |
Int_t | nr, | ||
const char * | mother, | ||
Double_t | x, | ||
Double_t | y, | ||
Double_t | z, | ||
Int_t | irot, | ||
Bool_t | isOnly, | ||
Double_t * | upar, | ||
Int_t | npar = 0 |
||
) |
Create a node called <name_nr> pointing to the volume called <name> as daughter of the volume called <mother> (gspos).
The relative matrix is made of : a translation (x,y,z) and a rotation matrix named <matIROT>. In case npar>0, create the volume to be positioned in mother, according its actual parameters (gsposp).
Definition at line 1430 of file TGeoManager.cxx.
void TGeoManager::Node | ( | const char * | name, |
Int_t | nr, | ||
const char * | mother, | ||
Double_t | x, | ||
Double_t | y, | ||
Double_t | z, | ||
Int_t | irot, | ||
Bool_t | isOnly, | ||
Float_t * | upar, | ||
Int_t | npar = 0 |
||
) |
Create a node called <name_nr> pointing to the volume called <name> as daughter of the volume called <mother> (gspos).
The relative matrix is made of : a translation (x,y,z) and a rotation matrix named <matIROT>. In case npar>0, create the volume to be positioned in mother, according its actual parameters (gsposp).
Definition at line 1408 of file TGeoManager.cxx.
|
protected |
assignment operator
Definition at line 584 of file TGeoManager.cxx.
void TGeoManager::OptimizeVoxels | ( | const char * | filename = "tgeovox.C" | ) |
Optimize voxelization type for all volumes. Save best choice in a macro.
Definition at line 2447 of file TGeoManager.cxx.
|
static |
Parse a string boolean expression and do a syntax check.
Find top level boolean operator and returns its type. Fill the two substrings to which this operator applies. The returned integer is :
Definition at line 2501 of file TGeoManager.cxx.
Definition at line 590 of file TGeoManager.h.
|
inline |
Definition at line 585 of file TGeoManager.h.
Definition at line 586 of file TGeoManager.h.
|
inline |
Definition at line 588 of file TGeoManager.h.
Definition at line 589 of file TGeoManager.h.
void TGeoManager::PrintOverlaps | ( | ) | const |
Prints the current list of overlaps.
Definition at line 3783 of file TGeoManager.cxx.
Definition at line 584 of file TGeoManager.h.
Definition at line 587 of file TGeoManager.h.
void TGeoManager::RandomPoints | ( | const TGeoVolume * | vol, |
Int_t | npoints = 10000 , |
||
Option_t * | option = "" |
||
) |
Draw random points in the bounding box of a volume.
Definition at line 1938 of file TGeoManager.cxx.
void TGeoManager::RandomRays | ( | Int_t | nrays = 1000 , |
Double_t | startx = 0 , |
||
Double_t | starty = 0 , |
||
Double_t | startz = 0 , |
||
const char * | target_vol = 0 , |
||
Bool_t | check_norm = kFALSE |
||
) |
Randomly shoot nrays and plot intersections with surfaces for current top node.
Definition at line 3006 of file TGeoManager.cxx.
Refresh physical nodes to reflect the actual geometry paths after alignment was applied.
Optionally locks physical nodes (default).
Definition at line 3449 of file TGeoManager.cxx.
void TGeoManager::RegisterMatrix | ( | const TGeoMatrix * | matrix | ) |
Register a matrix to the list of matrices.
It will be cleaned-up at the destruction TGeoManager.
Definition at line 1180 of file TGeoManager.cxx.
Remove material at given index.
Definition at line 3014 of file TGeoManager.cxx.
void TGeoManager::RemoveNavigator | ( | const TGeoNavigator * | nav | ) |
Clear a single navigator.
Definition at line 990 of file TGeoManager.cxx.
Int_t TGeoManager::ReplaceVolume | ( | TGeoVolume * | vorig, |
TGeoVolume * | vnew | ||
) |
Replaces all occurrences of VORIG with VNEW in the geometry tree.
The volume VORIG is not replaced from the list of volumes, but all node referencing it will reference VNEW instead. Returns number of occurrences changed.
Definition at line 1190 of file TGeoManager.cxx.
void TGeoManager::ResetState | ( | ) |
Reset current state flags.
Definition at line 2728 of file TGeoManager.cxx.
void TGeoManager::ResetUserData | ( | ) |
Sets all pointers TGeoVolume::fField to NULL.
User data becomes decoupled from geometry. Deletion has to be managed by users.
Definition at line 3024 of file TGeoManager.cxx.
void TGeoManager::RestoreMasterVolume | ( | ) |
Restore the master volume of the geometry.
Definition at line 3043 of file TGeoManager.cxx.
Compute safe distance from the current point.
This represent the distance from POINT to the closest boundary.
Definition at line 2291 of file TGeoManager.cxx.
TGeoNode * TGeoManager::SamplePoints | ( | Int_t | npoints, |
Double_t & | dist, | ||
Double_t | epsil = 1E-5 , |
||
const char * | g3path = "" |
||
) |
shoot npoints randomly in a box of 1E-5 around current point.
return minimum distance to points outside
Definition at line 3559 of file TGeoManager.cxx.
void TGeoManager::SaveAttributes | ( | const char * | filename = "tgeoatt.C" | ) |
Save current attributes in a macro.
Definition at line 2614 of file TGeoManager.cxx.
Returns the deepest node containing fPoint, which must be set a priori.
Definition at line 2670 of file TGeoManager.cxx.
void TGeoManager::SelectTrackingMedia | ( | ) |
Define different tracking media.
Definition at line 3616 of file TGeoManager.cxx.
TGeoPNEntry * TGeoManager::SetAlignableEntry | ( | const char * | unique_name, |
const char * | path, | ||
Int_t | uid = -1 |
||
) |
Creates an alignable object with unique name corresponding to a path and adds it to the list of alignables.
An optional unique ID can be provided, in which case PN entries can be searched fast by uid.
Definition at line 3274 of file TGeoManager.cxx.
void TGeoManager::SetAllIndex | ( | ) |
Assigns uid's for all materials,media and matrices.
Definition at line 1469 of file TGeoManager.cxx.
Definition at line 579 of file TGeoManager.h.
void TGeoManager::SetBombFactors | ( | Double_t | bombx = 1.3 , |
Double_t | bomby = 1.3 , |
||
Double_t | bombz = 1.3 , |
||
Double_t | bombr = 1.3 |
||
) |
Set factors that will "bomb" all translations in cartesian and cylindrical coordinates.
Definition at line 2335 of file TGeoManager.cxx.
Assign a given node to be checked for overlaps. Any other overlaps will be ignored.
Definition at line 2377 of file TGeoManager.cxx.
Definition at line 417 of file TGeoManager.h.
Definition at line 539 of file TGeoManager.h.
Definition at line 229 of file TGeoManager.h.
Set a user-defined shape as clipping for ray tracing.
Definition at line 2343 of file TGeoManager.cxx.
Definition at line 537 of file TGeoManager.h.
Definition at line 538 of file TGeoManager.h.
Switch to another existing navigator for the calling thread.
Definition at line 943 of file TGeoManager.cxx.
Definition at line 534 of file TGeoManager.h.
Definition at line 535 of file TGeoManager.h.
Definition at line 391 of file TGeoManager.h.
|
inline |
Definition at line 392 of file TGeoManager.h.
|
inlinestatic |
Definition at line 479 of file TGeoManager.h.
|
inlinestatic |
Definition at line 480 of file TGeoManager.h.
Definition at line 240 of file TGeoManager.h.
Set type of exploding view (see TGeoPainter::SetExplodedView())
Definition at line 3487 of file TGeoManager.cxx.
Definition at line 477 of file TGeoManager.h.
Definition at line 536 of file TGeoManager.h.
Definition at line 158 of file TGeoManager.h.
Definition at line 420 of file TGeoManager.h.
Definition at line 419 of file TGeoManager.h.
Set maximum number of threads for navigation.
Definition at line 1011 of file TGeoManager.cxx.
set the maximum number of visible nodes.
Definition at line 2356 of file TGeoManager.cxx.
Set the lock for navigators.
Definition at line 966 of file TGeoManager.cxx.
Set the number of points to be generated on the shape outline when checking for overlaps.
Definition at line 2385 of file TGeoManager.cxx.
Definition at line 241 of file TGeoManager.h.
Set number of segments for approximating circles in drawing.
Definition at line 3510 of file TGeoManager.cxx.
Definition at line 431 of file TGeoManager.h.
|
inline |
Definition at line 236 of file TGeoManager.h.
|
inline |
Definition at line 261 of file TGeoManager.h.
Set a name for a particle having a given pdg.
Definition at line 1983 of file TGeoManager.cxx.
Set cut phi range.
Definition at line 3496 of file TGeoManager.cxx.
Change raytracing mode.
Definition at line 3034 of file TGeoManager.cxx.
Definition at line 418 of file TGeoManager.h.
Definition at line 421 of file TGeoManager.h.
Set time cut interval for drawing tracks.
If called with no arguments, time cut will be disabled.
Definition at line 4119 of file TGeoManager.cxx.
make top volume visible on screen
Definition at line 2369 of file TGeoManager.cxx.
void TGeoManager::SetTopVolume | ( | TGeoVolume * | vol | ) |
Set the top volume and corresponding node as starting point of the geometry.
Definition at line 3568 of file TGeoManager.cxx.
Activate/deactivate usage of parallel world navigation.
Can only be done if there is a parallel world. Activating navigation will automatically close the parallel geometry.
Definition at line 4162 of file TGeoManager.cxx.
|
inline |
Definition at line 237 of file TGeoManager.h.
Return current verbosity level (static function).
Definition at line 3966 of file TGeoManager.cxx.
Set density threshold.
Volumes with densities lower than this become transparent.
Definition at line 2415 of file TGeoManager.cxx.
Set visibility for a volume.
Definition at line 1128 of file TGeoManager.cxx.
set default level down to which visualization is performed
Definition at line 2424 of file TGeoManager.cxx.
set drawing mode :
Definition at line 2397 of file TGeoManager.cxx.
Set volume attributes in G3 style.
Definition at line 2299 of file TGeoManager.cxx.
computes the total size in bytes of the branch starting with node.
The option can specify if all the branch has to be parsed or only the node
Definition at line 3824 of file TGeoManager.cxx.
void TGeoManager::SortOverlaps | ( | ) |
Sort overlaps by decreasing overlap distance. Extrusions comes first.
Definition at line 2439 of file TGeoManager.cxx.
Make a rectilinear step of length fStep from current point (fPoint) on current direction (fDirection).
If the step is imposed by geometry, is_geom flag must be true (default). The cross flag specifies if the boundary should be crossed in case of a geometry step (default true). Returns new node after step. Set also on boundary condition.
Definition at line 3550 of file TGeoManager.cxx.
Check time of finding "Where am I" for n points.
Definition at line 1946 of file TGeoManager.cxx.
void TGeoManager::TestOverlaps | ( | const char * | path = "" | ) |
Geometry overlap checker based on sampling.
Definition at line 1954 of file TGeoManager.cxx.
|
static |
Translates the current thread id to an ordinal number.
This can be used to manage data which is specific for a given thread.
Definition at line 1080 of file TGeoManager.cxx.
Convert coordinates from top volume frame to master.
Definition at line 4139 of file TGeoManager.cxx.
Int_t TGeoManager::TransformVolumeToAssembly | ( | const char * | vname | ) |
Transform all volumes named VNAME to assemblies. The volumes must be virtual.
Definition at line 1259 of file TGeoManager.cxx.
Get the new 'unbombed' translation vector according current exploded view mode.
Definition at line 1154 of file TGeoManager.cxx.
|
static |
Unlock current geometry.
Definition at line 3940 of file TGeoManager.cxx.
|
private |
Update element flags when geometry is loaded from a file.
Definition at line 4049 of file TGeoManager.cxx.
Set visualization option (leaves only OR all volumes)
Definition at line 2405 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::Volume | ( | const char * | name, |
const char * | shape, | ||
Int_t | nmed, | ||
Double_t * | upar, | ||
Int_t | npar = 0 |
||
) |
Create a volume in GEANT3 style.
Definition at line 1460 of file TGeoManager.cxx.
TGeoVolume * TGeoManager::Volume | ( | const char * | name, |
const char * | shape, | ||
Int_t | nmed, | ||
Float_t * | upar, | ||
Int_t | npar = 0 |
||
) |
Create a volume in GEANT3 style.
Definition at line 1446 of file TGeoManager.cxx.
Voxelize all non-divided volumes.
Definition at line 3052 of file TGeoManager.cxx.
Estimate weight of volume VOL with a precision SIGMA(W)/W better than PRECISION.
Option can be "v" - verbose (default)
Definition at line 3796 of file TGeoManager.cxx.
|
private |
flag for GL reflections
Definition at line 91 of file TGeoManager.h.
|
mutableprivate |
Definition at line 142 of file TGeoManager.h.
|
private |
Definition at line 112 of file TGeoManager.h.
|
private |
Definition at line 106 of file TGeoManager.h.
|
private |
Definition at line 132 of file TGeoManager.h.
|
private |
Definition at line 81 of file TGeoManager.h.
|
private |
Lock existing navigators.
Definition at line 125 of file TGeoManager.h.
|
private |
Definition at line 78 of file TGeoManager.h.
|
private |
current navigator
Definition at line 126 of file TGeoManager.h.
|
private |
Definition at line 88 of file TGeoManager.h.
|
private |
clipping shape for raytracing
Definition at line 133 of file TGeoManager.h.
|
private |
Definition at line 72 of file TGeoManager.h.
|
staticprotected |
Precision to be used in ASCII exports.
Definition at line 58 of file TGeoManager.h.
|
private |
Definition at line 103 of file TGeoManager.h.
|
staticprotected |
Maximum number of Xtru vertices.
Definition at line 57 of file TGeoManager.h.
|
private |
Definition at line 130 of file TGeoManager.h.
mutex for navigator booking in MT mode
Definition at line 52 of file TGeoManager.h.
Number of registered threads.
Definition at line 124 of file TGeoManager.h.
|
staticprotected |
Maximum level in geometry.
Definition at line 55 of file TGeoManager.h.
|
staticprotected |
Verbosity level for Info messages (no IO).
Definition at line 54 of file TGeoManager.h.
|
staticprotected |
Maximum number of daughters.
Definition at line 56 of file TGeoManager.h.
|
staticprotected |
Definition at line 51 of file TGeoManager.h.
|
staticprivate |
Thread id's map.
Definition at line 123 of file TGeoManager.h.
|
private |
Definition at line 99 of file TGeoManager.h.
|
staticprivate |
Map between thread id's and navigator arrays.
Definition at line 122 of file TGeoManager.h.
|
staticprotected |
Lock preventing a second geometry to be loaded.
Definition at line 53 of file TGeoManager.h.
|
private |
list of runtime shapes
Definition at line 100 of file TGeoManager.h.
|
private |
hash list of volumes providing fast search
Definition at line 140 of file TGeoManager.h.
|
private |
hash list of group volumes providing fast search
Definition at line 141 of file TGeoManager.h.
|
private |
Definition at line 139 of file TGeoManager.h.
|
private |
flag set when reading geometry
Definition at line 85 of file TGeoManager.h.
|
private |
Definition at line 84 of file TGeoManager.h.
|
private |
switch ON/OFF volume activity (default OFF - all volumes active))
Definition at line 92 of file TGeoManager.h.
|
private |
Definition at line 145 of file TGeoManager.h.
|
private |
flag that geometry is closed
Definition at line 82 of file TGeoManager.h.
|
private |
top physical node
Definition at line 129 of file TGeoManager.h.
|
private |
Definition at line 107 of file TGeoManager.h.
|
private |
current painter
Definition at line 95 of file TGeoManager.h.
|
private |
flag for using GL matrix
Definition at line 90 of file TGeoManager.h.
|
private |
flag that the list of physical nodes has to be drawn
Definition at line 89 of file TGeoManager.h.
|
private |
Definition at line 147 of file TGeoManager.h.
|
private |
Definition at line 77 of file TGeoManager.h.
|
private |
Definition at line 108 of file TGeoManager.h.
|
private |
Max number of threads.
Definition at line 148 of file TGeoManager.h.
|
private |
Definition at line 121 of file TGeoManager.h.
|
private |
array of node id's
Definition at line 136 of file TGeoManager.h.
|
private |
upper time limit for tracks drawing
Definition at line 68 of file TGeoManager.h.
|
private |
table of elements
Definition at line 135 of file TGeoManager.h.
|
private |
Definition at line 109 of file TGeoManager.h.
|
private |
current track
Definition at line 79 of file TGeoManager.h.
|
private |
Definition at line 144 of file TGeoManager.h.
|
private |
Definition at line 75 of file TGeoManager.h.
|
private |
Definition at line 76 of file TGeoManager.h.
|
private |
Definition at line 104 of file TGeoManager.h.
|
private |
Definition at line 110 of file TGeoManager.h.
|
private |
flag that nodes are the selected objects in pad rather than volumes
Definition at line 93 of file TGeoManager.h.
|
private |
Definition at line 137 of file TGeoManager.h.
|
private |
Definition at line 151 of file TGeoManager.h.
|
private |
path to current node
Definition at line 70 of file TGeoManager.h.
|
private |
Definition at line 69 of file TGeoManager.h.
|
private |
Definition at line 80 of file TGeoManager.h.
|
private |
Definition at line 102 of file TGeoManager.h.
|
private |
flag to notify that the manager is being destructed
Definition at line 86 of file TGeoManager.h.
|
private |
lowest range for phi cut
Definition at line 65 of file TGeoManager.h.
|
private |
Definition at line 64 of file TGeoManager.h.
|
private |
Definition at line 98 of file TGeoManager.h.
|
private |
Definition at line 152 of file TGeoManager.h.
|
private |
Flag for multi-threading.
Definition at line 149 of file TGeoManager.h.
|
private |
Definition at line 111 of file TGeoManager.h.
|
private |
Definition at line 96 of file TGeoManager.h.
|
private |
array of physical node entries
Definition at line 143 of file TGeoManager.h.
|
private |
Definition at line 105 of file TGeoManager.h.
|
private |
flag volume lists loop
Definition at line 83 of file TGeoManager.h.
|
private |
Definition at line 87 of file TGeoManager.h.
|
private |
lower time limit for tracks drawing
Definition at line 67 of file TGeoManager.h.
|
private |
highest range for phi cut
Definition at line 66 of file TGeoManager.h.
|
private |
top level volume in geometry
Definition at line 128 of file TGeoManager.h.
|
private |
current volume
Definition at line 127 of file TGeoManager.h.
|
private |
list of runtime volumes
Definition at line 101 of file TGeoManager.h.
|
private |
Definition at line 131 of file TGeoManager.h.
|
private |
Raytrace mode: 0=normal, 1=pass through, 2=transparent.
Definition at line 150 of file TGeoManager.h.
|
private |
volume currently painted
Definition at line 138 of file TGeoManager.h.
|
private |
Definition at line 146 of file TGeoManager.h.
|
private |
particles to be drawn
Definition at line 71 of file TGeoManager.h.
|
private |
Definition at line 74 of file TGeoManager.h.
|
private |
Definition at line 73 of file TGeoManager.h.
|
private |
Definition at line 97 of file TGeoManager.h.