Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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)

Constructor & Destructor Documentation

GeoVolume::GeoVolume  )  [inline]
 

Definition at line 23 of file GeoVolume.h.

References fGeoGeometry, and fShpName.

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 20 of file GeoVolume.cxx.

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

GeoVolume::GeoVolume const GeoVolume that  )  [private]
 


Member Function Documentation

TGeoShape * GeoVolume::GetExistingShape  )  const [protected]
 

Definition at line 31 of file GeoVolume.cxx.

References fShpName, MSG, and UpdateGlobalManager().

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

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

virtual Float_t GeoVolume::GetScale  )  const [inline, protected, virtual]
 

Definition at line 36 of file GeoVolume.h.

References fGeoGeometry, GeoGeometry::GetAppType(), and Geo::GetScale().

Referenced by GeoScintMdlVolume::Build4Corners(), GeoScintPlnVolume::BuildCalDet(), GeoScintPlnVolume::BuildFarActive(), GeoScintMdlVolume::BuildFarDFXtru(), GeoScintMdlVolume::BuildFardfXtru(), GeoSteelPlnVolume::BuildFarSteelPgon(), GeoSteelPlnVolume::BuildFarSteelXtru(), GeoScintMdlVolume::BuildHalfY(), GeoScintMdlVolume::BuildNeariXtru(), GeoScintMdlVolume::BuildNearIXtru(), GeoSteelPlnVolume::BuildNearSteelXtru(), and GeoScintMdlVolume::GeoScintMdlVolume().

00036                                    { 
00037                          return Geo::GetScale(fGeoGeometry->GetAppType()); }

GeoVolume& GeoVolume::operator= const GeoVolume that  )  [private]
 

virtual void GeoVolume::UpdateGlobalManager  )  const [inline, virtual]
 

Definition at line 25 of file GeoVolume.h.

References fGeoGeometry, and GeoGeometry::UpdateGlobalManager().

Referenced by GeoScintMdlVolume::AddAirNode(), GeoSteelPlnVolume::AddCoilNode(), GeoScintPlnVolume::AddCoilNode(), GeoStripVolume::AddPstyreneNodes(), GeoScintMdlVolume::Build4Corners(), GeoScintMdlVolume::BuildBBox(), GeoSteelPlnVolume::BuildCalDet(), GeoScintPlnVolume::BuildCalDet(), GeoScintMdlVolume::BuildCalDet(), GeoSteelPlnVolume::BuildCalDetSteelBasic(), GeoSteelPlnVolume::BuildFar(), GeoScintPlnVolume::BuildFar(), GeoScintMdlVolume::BuildFar(), GeoScintPlnVolume::BuildFarActive(), GeoSteelPlnVolume::BuildFarCoilVolume(), GeoScintPlnVolume::BuildFarCoilVolume(), GeoScintMdlVolume::BuildFarDFXtru(), GeoScintMdlVolume::BuildFardfXtru(), GeoSteelPlnVolume::BuildFarSteelPgon(), GeoSteelPlnVolume::BuildFarSteelXtru(), GeoScintPlnVolume::BuildFarVetoActive(), GeoScintMdlVolume::BuildHalfY(), GeoScintMdlVolume::BuildModuleShape(), GeoSteelPlnVolume::BuildNear(), GeoScintPlnVolume::BuildNear(), GeoScintMdlVolume::BuildNear(), GeoSteelPlnVolume::BuildNearCoilVolume(), GeoScintPlnVolume::BuildNearCoilVolume(), GeoScintPlnVolume::BuildNearFullActive(), GeoScintMdlVolume::BuildNeariXtru(), GeoScintMdlVolume::BuildNearIXtru(), GeoScintMdlVolume::BuildNearlMXtru(), GeoScintMdlVolume::BuildNearLmXtru(), GeoScintPlnVolume::BuildNearPartialActive(), GeoSteelPlnVolume::BuildNearSteelXtru(), GeoScintMdlVolume::BuildNearXtru(), GeoSteelPlnVolume::BuildPlaneShape(), GeoScintPlnVolume::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(), GeoStripVolume::Print(), GeoSteelPlnVolume::Print(), GeoScintPlnVolume::Print(), and GeoScintMdlVolume::Print().

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


Member Data Documentation

GeoGeometry* GeoVolume::fGeoGeometry [protected]
 

Definition at line 47 of file GeoVolume.h.

Referenced by GeoVolume(), GetScale(), and UpdateGlobalManager().

std::string GeoVolume::fShpName [protected]
 

reference link to geometry creator

Definition at line 48 of file GeoVolume.h.

Referenced by GeoVolume(), and GetExistingShape().


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:09:15 2010 for loon by  doxygen 1.3.9.1