GeoVolume Class Reference

#include <GeoVolume.h>

Inheritance diagram for GeoVolume:
GeoScintMdlVolume GeoScintPlnVolume GeoSteelPlnVolume GeoStripVolume

List of all members.

Public Member Functions

 GeoVolume ()
virtual ~GeoVolume ()
virtual void UpdateGlobalManager () const

Protected Member Functions

 GeoVolume (GeoGeometry *geo, const char *volname, const TGeoMedium *med)
TGeoShape * GetExistingShape () const
virtual Float_t GetScale () const

Protected Attributes

GeoGeometryfGeoGeometry
std::string fShpName
 reference link to geometry creator

Private Member Functions

 GeoVolume (const GeoVolume &that)
GeoVolumeoperator= (const GeoVolume &that)

Detailed Description

Definition at line 19 of file GeoVolume.h.


Constructor & Destructor Documentation

GeoVolume::GeoVolume (  )  [inline]

Definition at line 23 of file GeoVolume.h.

00023 : fGeoGeometry(0), fShpName("") {} // def, used by i/o 

virtual GeoVolume::~GeoVolume (  )  [inline, virtual]

Definition at line 24 of file GeoVolume.h.

00024 {}

GeoVolume::GeoVolume ( GeoGeometry geo,
const char *  volname,
const TGeoMedium *  med 
) [protected]

Definition at line 21 of file GeoVolume.cxx.

00022                                             : 
00023                      TGeoVolume(volname,0,med),fGeoGeometry(geo),fShpName("") {
00024   // Normal constructor
00025   // Protected
00026 
00027   UpdateGlobalManager();
00028 
00029 }

GeoVolume::GeoVolume ( const GeoVolume that  )  [private]

Member Function Documentation

TGeoShape * GeoVolume::GetExistingShape (  )  const [protected]

Definition at line 32 of file GeoVolume.cxx.

References fShpName, gGeoManager, Msg::kFatal, MSG, and UpdateGlobalManager().

Referenced by GeoScintPlnVolume::GeoScintPlnVolume(), and GeoSteelPlnVolume::GeoSteelPlnVolume().

00032                                              {
00033   // Private method to extract shape from GeoManager.
00034 
00035   UpdateGlobalManager();
00036 
00037   TGeoShape* shape = 0;
00038   if ( gGeoManager ) {
00039     shape = dynamic_cast<TGeoShape*>(gGeoManager-> GetListOfShapes()
00040                                      -> FindObject(fShpName.c_str()));
00041   }
00042   else {
00043     MSG("Geo",Msg::kFatal) << "No global manager!" << endl;
00044     abort();
00045   }
00046 
00047   return shape;
00048   
00049 }

virtual Float_t GeoVolume::GetScale (  )  const [inline, protected, virtual]
GeoVolume& GeoVolume::operator= ( const GeoVolume that  )  [private]
virtual void GeoVolume::UpdateGlobalManager (  )  const [inline, virtual]

Definition at line 25 of file GeoVolume.h.

References fGeoGeometry, gGeoManager, and GeoGeometry::UpdateGlobalManager().

Referenced by GeoScintMdlVolume::AddAirNode(), GeoScintPlnVolume::AddCoilNode(), GeoSteelPlnVolume::AddCoilNode(), GeoStripVolume::AddPstyreneNodes(), GeoScintMdlVolume::Build4Corners(), GeoScintMdlVolume::BuildBBox(), GeoSteelPlnVolume::BuildCalDet(), GeoScintMdlVolume::BuildCalDet(), GeoScintPlnVolume::BuildCalDet(), GeoSteelPlnVolume::BuildCalDetSteelBasic(), GeoScintPlnVolume::BuildFar(), GeoSteelPlnVolume::BuildFar(), GeoScintMdlVolume::BuildFar(), GeoScintPlnVolume::BuildFarActive(), GeoScintPlnVolume::BuildFarCoilVolume(), GeoSteelPlnVolume::BuildFarCoilVolume(), GeoScintMdlVolume::BuildFarDFXtru(), GeoScintMdlVolume::BuildFardfXtru(), GeoSteelPlnVolume::BuildFarSteelPgon(), GeoSteelPlnVolume::BuildFarSteelXtru(), GeoScintPlnVolume::BuildFarVetoActive(), GeoScintMdlVolume::BuildHalfY(), GeoScintMdlVolume::BuildModuleShape(), GeoScintPlnVolume::BuildNear(), GeoScintMdlVolume::BuildNear(), GeoSteelPlnVolume::BuildNear(), GeoScintPlnVolume::BuildNearCoilVolume(), GeoSteelPlnVolume::BuildNearCoilVolume(), GeoScintPlnVolume::BuildNearFullActive(), GeoScintMdlVolume::BuildNearIXtru(), GeoScintMdlVolume::BuildNeariXtru(), GeoScintMdlVolume::BuildNearLmXtru(), GeoScintMdlVolume::BuildNearlMXtru(), GeoScintPlnVolume::BuildNearPartialActive(), GeoSteelPlnVolume::BuildNearSteelXtru(), GeoScintMdlVolume::BuildNearXtru(), GeoScintPlnVolume::BuildPlaneShape(), GeoSteelPlnVolume::BuildPlaneShape(), GeoScintMdlVolume::BuildSimpleTrap(), GeoStripVolume::BuildStripShape(), GeoScintMdlVolume::GeoScintMdlVolume(), GeoSteelPlnVolume::GeoSteelPlnVolume(), GetExistingShape(), GeoStripVolume::GetLenPart(), GeoScintPlnVolume::GetScintMdlNodePtrVector(), GeoScintMdlVolume::GetStripNode(), GeoScintPlnVolume::GetStripNodePtrVector(), GeoScintMdlVolume::GetStripNodePtrVector(), GeoStripVolume::GetWlsLen(), GeoScintPlnVolume::NumberOfStrips(), GeoScintMdlVolume::NumberOfStrips(), GeoScintMdlVolume::Print(), GeoSteelPlnVolume::Print(), GeoStripVolume::Print(), and GeoScintPlnVolume::Print().

00026     { if ( fGeoGeometry ) fGeoGeometry->UpdateGlobalManager(); 
00027       else gGeoManager = 0; }


Member Data Documentation

std::string GeoVolume::fShpName [protected]

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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1