13 #ifndef ROOT_TGeoVolume 14 #define ROOT_TGeoVolume 33 #ifndef ROOT_TObjArray 37 #ifndef ROOT_TGeoMedium 41 #ifndef ROOT_TGeoShape 112 virtual void cd(
Int_t inode)
const;
156 void Release() {fRefCount--;
if (fRefCount==0)
delete this;}
356 void SetCurrentNodeIndex(
Int_t index);
357 void SetNextNodeIndex(
Int_t index);
TGeoManager * fGeoManager
TGeoVolume()
dummy constructor
virtual TGeoVolume * CloneVolume() const
Clone this volume.
void CleanAll()
Clean data of the volume.
void PrintNodes() const
print nodes
Double_t GetStart() const
void SetNodes(TObjArray *nodes)
void ClearShape()
Clear the shape of this volume from the list held by the current manager.
static TGeoMedium * fgDummyMedium
The manager class for any TGeo geometry.
virtual void CreateThreadData(Int_t nthreads)
char * GetPointerName() const
Provide a pointer name containing uid.
void Voxelize(Option_t *option)
build the voxels for this volume
void SetFinder(TGeoPatternFinder *finder)
TGeoExtension * fUserExtension
TGeoVolume * GetVolume(Int_t id) const
void SetCylVoxels(Bool_t flag=kTRUE)
void AddNodeOffset(TGeoVolume *vol, Int_t copy_no, Double_t offset=0, Option_t *option="")
Add a division node to the list of nodes.
virtual Bool_t IsVisible() const
Geometrical transformation package.
Visualization and tracking attributes for volumes and nodes.
TGeoExtension * fFWExtension
Transient user-defined extension to volumes.
Bool_t IsStyleDefault() const
check if the visibility and attributes are the default ones
static TGeoMedium * DummyMedium()
TGeoNode * GetNode(const char *name) const
get the pointer to a daughter node
Bool_t TestBit(UInt_t f) const
virtual void SetVisibility(Bool_t vis=kTRUE)
Set visibility for this object.
TGeoMaterial * GetMaterial() const
TGeoVolume, TGeoVolumeMulti, TGeoVolumeAssembly are the volume classes.
virtual void AddNodeOverlap(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=0, Option_t *option="")
Add a TGeoNode to the list of nodes.
virtual void Draw(Option_t *option="")
draw top volume according to option
virtual void Print(Option_t *option="") const
Print volume info.
Use this attribute class when an object should have 3D capabilities.
void InspectShape() const
Base class describing materials.
virtual void DrawOnly(Option_t *option="")
draw only this volume
void VisibleDaughters(Bool_t vis=kTRUE)
set visibility for daughters
void SetOption(const char *option)
Set the current options (none implemented)
Double_t Capacity() const
Computes the capacity of this [cm^3] as the capacity of its shape.
Int_t fNext
index of current selected node
virtual Bool_t IsAssembly() const
Returns true if the volume is an assembly or a scaled assembly.
void RemoveNode(TGeoNode *node)
Remove an existing daughter.
Bool_t IsAllInvisible() const
Return TRUE if volume and all daughters are invisible.
void ReplayCreation(const TGeoVolume *other)
Recreate the content of the other volume without pointer copying.
TObject * At(Int_t idx) const
Bool_t IsVisibleDaughters() const
void SetAsTopVolume()
Set this volume as the TOP one (the whole geometry starts from here)
TGeoVoxelFinder * GetVoxels() const
Getter for optimization structure.
Bool_t IsVisContainers() const
void RegisterYourself(Option_t *option="")
Register the volume and all materials/media/matrices/shapes to the manager.
Int_t GetRefCount() const
void SetFWExtension(TGeoExtension *ext)
Connect framework defined extension to the volume.
void Raytrace(Bool_t flag=kTRUE)
Draw this volume with current settings and perform raytracing in the pad.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
TObject * GetField() const
virtual Int_t GetByteCount() const
get the total size in bytes for this volume
Bool_t IsRaytracing() const
Check if the painter is currently ray-tracing the content of this volume.
Int_t CountNodes(Int_t nlevels=1000, Int_t option=0)
Count total number of subnodes starting from this volume, nlevels down.
void Browse(TBrowser *b)
How to browse a volume.
Int_t GetNdaughters() const
TObject * fField
pointer to TGeoManager owning this volume
virtual Bool_t Contains(const Double_t *point) const =0
virtual ~TGeoVolume()
Destructor.
TGeoPatternFinder * GetFinder() const
Fill Area Attributes class.
virtual void SetVisLeaves(Bool_t flag=kTRUE)
Set visibility for leaves.
TGeoNode * ReplaceNode(TGeoNode *nodeorig, TGeoShape *newshape=0, TGeoMatrix *newpos=0, TGeoMedium *newmed=0)
Replace an existing daughter with a new volume having the same name but possibly a new shape...
Int_t GetNvolumes() const
#define ClassDef(name, id)
Bool_t IsActiveDaughters() const
void SetActiveDaughters(Bool_t flag=kTRUE)
Bool_t FindMatrixOfDaughterVolume(TGeoVolume *vol) const
Find a daughter node having VOL as volume and fill TGeoManager::fHMatrix with its global matrix...
void PrintVoxels() const
Print the voxels for this volume.
The TNamed class is the base class for all named ROOT classes.
void InvisibleAll(Bool_t flag=kTRUE)
Make volume and each of it daughters (in)visible.
Int_t fThreadSize
Thread specific data vector.
TGeoNode * GetNode(Int_t i) const
Char_t GetTransparency() const
Bool_t GetOptimalVoxels() const
Returns true if cylindrical voxelization is optimal.
TGeoVolume * MakeReflectedVolume(const char *newname="") const
Make a copy of this volume which is reflected with respect to XY plane.
TGeoMedium * GetMedium() const
virtual Bool_t IsVisible() const
TGeoMaterial * GetMaterial() const
Bool_t IsVisLeaves() const
void SetActivity(Bool_t flag=kTRUE)
void RandomPoints(Int_t npoints=1000000, Option_t *option="")
Draw random points in the bounding box of this volume.
virtual void Paint(Option_t *option="")
paint volume
virtual TGeoVolume * Divide(const char *divname, Int_t iaxis, Int_t ndiv, Double_t start, Double_t step, Int_t numed=0, Option_t *option="")
Division a la G3.
TString fOption
just a hook for now
virtual void ClearThreadData() const
void SortNodes()
sort nodes by decreasing volume of the bounding box.
Option_t * GetOption() const
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute mouse actions on this volume.
virtual void AddNode(TGeoVolume *vol, Int_t copy_no, TGeoMatrix *mat=0, Option_t *option="")
Add a TGeoNode to the list of nodes.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual char * GetObjectInfo(Int_t px, Int_t py) const
Get volume info for the browser.
Base finder class for patterns.
void SetShape(const TGeoShape *shape)
set the shape associated with this volume
virtual const char * GetName() const
Get the shape name.
virtual void DrawOnly(Option_t *)
draw only this volume
Char_t GetTransparency() const
Using a TBrowser one can browse all ROOT objects.
TGeoVoxelFinder * fVoxels
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
compute the closest distance of approach from point px,py to this volume
Base abstract class for all shapes.
TGeoPatternFinder * fFinder
dummy medium
void SetField(TObject *field)
ABC for user objects attached to TGeoVolume or TGeoNode.
Int_t GetIndex(const TGeoNode *node) const
get index number for a given daughter
Double_t Weight(Double_t precision=0.01, Option_t *option="va")
Estimate the weight of a volume (in kg) with SIGMA(M)/M better than PRECISION.
tomato 2-D histogram with a float per channel (see TH1 documentation)}
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
void SetTransparency(Char_t transparency=0)
const char * GetIconName() const
Returns mime type name of object.
void RandomRays(Int_t nrays=10000, Double_t startx=0, Double_t starty=0, Double_t startz=0, const char *target_vol=0, Bool_t check_norm=kFALSE)
Random raytracing method.
Int_t GetEntriesFast() const
void UnmarkSaved()
Reset SavePrimitive bits.
virtual Bool_t IsFolder() const
Return TRUE if volume contains nodes.
void CheckOverlaps(Double_t ovlp=0.1, Option_t *option="") const
Overlap checking tool.
Bool_t IsXYZVoxels() const
void CheckGeometry(Int_t nrays=1, Double_t startx=0, Double_t starty=0, Double_t startz=0) const
Shoot nrays with random directions from starting point (startx, starty, startz) in the reference fram...
void CloneNodesAndConnect(TGeoVolume *newmother) const
Clone the array of nodes.
void SetUserExtension(TGeoExtension *ext)
Connect user-defined extension to the volume.
Bool_t Contains(const Double_t *point) const
void SetAttVisibility(Bool_t vis)
void SetActivity(Bool_t flag=kTRUE)
Bool_t IsTopVolume() const
True if this is the top volume of the geometry.
virtual Int_t GetCurrentNodeIndex() const
TGeoExtension * GrabUserExtension() const
Get a copy of the user extension pointer.
TGeoExtension * GetFWExtension() const
TObject * UncheckedAt(Int_t i) const
virtual TGeoVolume * MakeCopyVolume(TGeoShape *newshape)
make a copy of this volume build a volume with same name, shape and medium
Int_t Export(const char *filename, const char *name="", Option_t *option="")
Export this volume to a file.
void SetVoxelFinder(TGeoVoxelFinder *finder)
virtual void SetVisibility(Bool_t vis=kTRUE)
set visibility of this volume
void MakeCopyNodes(const TGeoVolume *other)
make a new list of nodes and copy all nodes of other volume inside
void SetActiveDaughters(Bool_t flag=kTRUE)
void SaveAs(const char *filename, Option_t *option="") const
Save geometry having this as top volume as a C++ macro.
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
TGeoExtension * GrabFWExtension() const
Get a copy of the framework extension pointer.
Bool_t Valid() const
Check if the shape of this volume is valid.
Int_t fNumber
option - if any
Bool_t IsActiveDaughters() const
virtual void SetVisContainers(Bool_t flag=kTRUE)
Set visibility for containers.
Finder class handling voxels.
Bool_t IsVisContainers() const
Media are used to store properties related to tracking and which are useful only when using geometry ...
Bool_t IsVisLeaves() const
virtual void SetLineColor(Color_t lcolor)
Set the line color.
void InspectMaterial() const
Inspect the material for this volume.
static void CreateDummyMedium()
Create a dummy medium.
TH2F * LegoPlot(Int_t ntheta=20, Double_t themin=0., Double_t themax=180., Int_t nphi=60, Double_t phimin=0., Double_t phimax=360., Double_t rmin=0., Double_t rmax=9999999, Option_t *option="")
Generate a lego plot fot the top volume, according to option.
Bool_t IsSelected() const
Mother of all ROOT objects.
TGeoVolume & operator=(const TGeoVolume &)
assignment operator
you should not use this method at all Int_t Int_t z
void CheckShape(Int_t testNo, Int_t nsamples=10000, Option_t *option="")
Tests for checking the shape navigation algorithms. See TGeoShape::CheckShape()
static TGeoVolume * Import(const char *filename, const char *name="", Option_t *option="")
Import a volume from a file.
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
virtual Int_t GetNextNodeIndex() const
Bool_t IsVisDaughters() const
virtual Bool_t IsVolumeMulti() const
TGeoVolumeMulti * fDivision
TGeoExtension * GetUserExtension() const
virtual void InspectShape() const =0
Bool_t IsOverlappingCandidate() const
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
void SetCurrentPoint(Double_t x, Double_t y, Double_t z)
Set the current tracking point.
Double_t WeightA() const
Analytical computation of the weight.
void SetOverlappingCandidate(Bool_t flag)
void GrabFocus()
Move perspective view focus to this volume.
virtual Bool_t IsVolumeMulti() const
TGeoManager * GetGeoManager() const
virtual void SetMedium(TGeoMedium *medium)
void FindOverlaps() const
loop all nodes marked as overlaps and find overlapping brothers
Int_t GetNodeIndex(const TGeoNode *node, Int_t *check_list, Int_t ncheck) const
Get the index of a daughter within check_list by providing the node pointer.
TGeoShape * GetShape() const
std::vector< ThreadData_t * > fThreadData
void SetNumber(Int_t number)
void CheckShapes()
check for negative parameters in shapes.
void SetTransparency(Char_t transparency=0)
void SelectVolume(Bool_t clear=kFALSE)
Select this volume as matching an arbitrary criteria.
Bool_t IsReplicated() const
Bool_t OptimizeVoxels()
Perform an extensive sampling to find which type of voxelization is most efficient.
TGeoNode * FindNode(const char *name) const
search a daughter inside the list of nodes
Bool_t IsCylVoxels() const
virtual void cd(Int_t inode) const
Actualize matrix of node indexed <inode>
virtual void SetVisOnly(Bool_t flag=kTRUE)
Set visibility for leaves.
Bool_t IsRunTimeShape() const
const char * Data() const
void SetNtotal(Int_t ntotal)
virtual Bool_t IsAssembly() const
Returns true if the volume is an assembly or a scaled assembly.