#include <G4tgrVolumeMgr.hh>
Definition at line 59 of file G4tgrVolumeMgr.hh.
 
Definition at line 75 of file G4tgrVolumeMgr.cc.
   80     G4String ErrMessage = 
"Solid already exists... " + wl[1];
 
   81     G4Exception(
"G4tgrVolumeMgr::CreateSolid()", 
"InvalidSetup",
 
   85   std::vector<G4String> wlc = wl;
 
   86   if( bVOLUtag )  { wlc.pop_back(); }
 
   89   for( 
size_t ii = 0; ii < wl2.length(); ii++ )
 
   91     wl2[ii] = toupper( wl2[ii] );
 
   93   if( (wl2 == 
"UNION") || (wl2 == 
"SUBTRACTION") || (wl2 == 
"INTERSECTION") )
 
G4tgrSolid * FindSolid(const G4String &name, G4bool exists=false)
 
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
 
 
 
 
      
        
          | void G4tgrVolumeMgr::DumpSummary  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 392 of file G4tgrVolumeMgr.cc.
  395   G4cout << 
" @@@@@@@@@@@@@@@@@@ Dumping Detector Summary " << 
G4endl;
 
  396   G4cout << 
" @@@ Geometry built inside world volume: " 
  398   G4cout << 
" Number of G4tgrVolume's: " 
  399          << theG4tgrVolumeMap.size() << 
G4endl;
 
  400   G4mapsvol::const_iterator cite;
 
  401   unsigned int nPlace = 0;
 
  402   for( cite = theG4tgrVolumeMap.begin();
 
  403        cite != theG4tgrVolumeMap.end(); cite++ )
 
  405     nPlace += ((*cite).second)->GetPlacements().size();
 
  407   G4cout << 
" Number of G4tgrPlace's: " << nPlace << 
G4endl;
 
  410   G4cout << 
" Number of G4tgrIsotope's: " 
  412   G4cout << 
" Number of G4tgrElement's: " 
  414   G4cout << 
" Number of G4tgrMaterial's: " 
  418   G4cout << 
" Number of G4tgrRotationMatrix's: " 
void DumpIsotopeList() const 
 
const G4mstgrisot & GetIsotopeList() const 
 
const G4mstgrmate & GetMaterialList() const 
 
static G4tgrRotationMatrixFactory * GetInstance()
 
G4GLOB_DLL std::ostream G4cout
 
std::vector< G4tgrRotationMatrix * > GetRotMatList() const 
 
void DumpMaterialList() const 
 
const G4tgrVolume * GetTopVolume()
 
const G4mstgrelem & GetElementList() const 
 
void DumpElementList() const 
 
static G4tgrMaterialFactory * GetInstance()
 
const G4String & GetName() const 
 
 
 
 
      
        
          | void G4tgrVolumeMgr::DumpVolumeLeaf  | 
          ( | 
          const G4tgrVolume *  | 
          vol,  | 
        
        
           | 
           | 
          unsigned int  | 
          copyNo,  | 
        
        
           | 
           | 
          unsigned int  | 
          leafDepth  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 362 of file G4tgrVolumeMgr.cc.
  366   for( 
size_t ii=0; ii < leafDepth; ii++ )
 
  371          << 
"   copy No " << copyNo << 
G4endl;
 
  374   std::pair<G4mmapspl::iterator, G4mmapspl::iterator> children
 
  376   G4mmapspl::const_iterator cite; 
 
  379   for( cite = children.first; cite != children.second; cite++ )
 
G4tgrVolume * GetVolume() const 
 
G4GLOB_DLL std::ostream G4cout
 
void DumpVolumeLeaf(const G4tgrVolume *vol, unsigned int copyNo, unsigned int leafDepth)
 
unsigned int GetCopyNo() const 
 
const G4String & GetName() const 
 
std::pair< G4mmapspl::iterator, G4mmapspl::iterator > GetChildren(const G4String &name)
 
 
 
 
      
        
          | void G4tgrVolumeMgr::DumpVolumeTree  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 351 of file G4tgrVolumeMgr.cc.
  353   G4cout << 
" @@@@@@@@@@@@@@@@ DUMPING G4tgrVolume's Tree  " << 
G4endl;
 
G4GLOB_DLL std::ostream G4cout
 
void DumpVolumeLeaf(const G4tgrVolume *vol, unsigned int copyNo, unsigned int leafDepth)
 
const G4tgrVolume * GetTopVolume()
 
 
 
 
Definition at line 187 of file G4tgrVolumeMgr.cc.
  191   G4mapssol::iterator svite = theG4tgrSolidMap.find( volname );
 
  192   if( svite == theG4tgrSolidMap.end() )
 
  196       for( svite = theG4tgrSolidMap.begin();
 
  197            svite != theG4tgrSolidMap.end(); svite++ ) 
 
  201       G4String ErrMessage = 
"Solid not found... " + volname;
 
  202       G4Exception(
"G4tgrVolumeMgr::FindSolid()", 
"InvalidSetup",
 
  208     vol = 
const_cast<G4tgrSolid*
>((*svite).second);
 
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
 
G4GLOB_DLL std::ostream G4cerr
 
 
 
 
Definition at line 217 of file G4tgrVolumeMgr.cc.
  221   G4mapsvol::iterator svite = theG4tgrVolumeMap.find( volname );
 
  222   if( svite == theG4tgrVolumeMap.end() )
 
  226       for( svite = theG4tgrVolumeMap.begin();
 
  227            svite != theG4tgrVolumeMap.end(); svite++ )
 
  231       G4String ErrMessage = 
"Volume not found... " + volname;
 
  232       G4Exception(
"G4tgrVolumeMgr::FindVolume()", 
"InvalidSetup",
 
  237       G4String WarMessage = 
"Volume does not exists... " + volname;
 
  238       G4Exception(
"G4tgrVolumeMgr::FindVolume()", 
"SearchFailed",
 
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
 
G4GLOB_DLL std::ostream G4cerr
 
 
 
 
Definition at line 252 of file G4tgrVolumeMgr.cc.
  254   std::vector<G4tgrVolume*> vols;
 
  256   G4mapsvol::iterator svite;
 
  257   for( svite = theG4tgrVolumeMap.begin();
 
  258        svite != theG4tgrVolumeMap.end(); svite++ )
 
  262       vols.push_back(const_cast<G4tgrVolume*>((*svite).second) );
 
  266   if( vols.size() == 0 ) 
 
  270       for( svite = theG4tgrVolumeMap.begin();
 
  271            svite != theG4tgrVolumeMap.end(); svite++ )
 
  275       G4String ErrMessage = 
"Volume not found... " + volname;
 
  276       G4Exception(
"G4tgrVolumeMgr::FindVolumes()", 
"InvalidSetup",
 
  281       G4String WarMessage = 
"Volume does not exists... " + volname;
 
  282       G4Exception(
"G4tgrVolumeMgr::FindVolumes()", 
"SearchFailed",
 
static G4bool AreWordsEquivalent(const G4String &word1, const G4String &word2)
 
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
 
G4GLOB_DLL std::ostream G4cerr
 
 
 
 
      
        
          | std::pair< G4mmapspl::iterator, G4mmapspl::iterator > G4tgrVolumeMgr::GetChildren  | 
          ( | 
          const G4String &  | 
          name | ) | 
           | 
        
      
 
Definition at line 342 of file G4tgrVolumeMgr.cc.
  344   std::pair<G4mmapspl::iterator, G4mmapspl::iterator> dite;
 
  345   dite = theG4tgrVolumeTree.equal_range( name );
 
 
 
 
  
  
      
        
          | std::vector<G4tgrPlace*> G4tgrVolumeMgr::GetDetPlaceList  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | std::vector<G4tgrElement*> G4tgrVolumeMgr::GetElementList  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | std::vector<G4tgrIsotope*> G4tgrVolumeMgr::GetIsotopeList  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | const G4mapssol& G4tgrVolumeMgr::GetSolidMap  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
Definition at line 292 of file G4tgrVolumeMgr.cc.
  298   G4mapsvol::const_iterator itetv;
 
  299   for( itetv = theG4tgrVolumeMap.begin();
 
  300        itetv != theG4tgrVolumeMap.end(); itetv++ )
 
  306       G4cout << 
" G4tgrVolumeMgr::GetTopVolume() - Vol: " 
  307              << vol->
GetName() << 
" no place = " 
  318         G4cout << 
" G4tgrVolumeMgr::GetTopVolume() - Vol: " 
  319                << vol->
GetName()<< 
" N place = " 
  324     if ( (topVol != 0) && (topVol != vol)
 
  325       && (topVol->
GetType() != 
"VOLDivision")
 
  326       && (vol->
GetType() != 
"VOLDivision") ) 
 
  329                   "Two world volumes found, second will be taken", 
JustWarning,
 
  330                   (
G4String(
"Both volumes are at the top of a hierarchy: ")
 
const std::vector< G4tgrPlace * > GetPlacements() const 
 
G4GLOB_DLL std::ostream G4cout
 
static G4int GetVerboseLevel()
 
G4tgrVolume * FindVolume(const G4String &volname, G4bool exists=false)
 
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
 
const G4String & GetType() const 
 
const G4String & GetName() const 
 
 
 
 
  
  
      
        
          | std::vector<G4tgrVolume*> G4tgrVolumeMgr::GetVolumeList  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | const G4mapsvol& G4tgrVolumeMgr::GetVolumeMap  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | const G4mmapspl& G4tgrVolumeMgr::GetVolumeTree  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
Definition at line 109 of file G4tgrVolumeMgr.cc.
  111   if( theG4tgrSolidMap.find( sol->GetName() ) != theG4tgrSolidMap.end() )
 
  113     G4String ErrMessage = 
"Cannot be two solids with the same name... " 
  115     G4Exception(
"G4tgrVolumeMgr::RegisterMe()", 
"InvalidSetup",
 
  118   theG4tgrSolidMap.insert(G4mapssol::value_type(sol->GetName(), sol) ); 
 
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
 
 
 
 
Definition at line 140 of file G4tgrVolumeMgr.cc.
  142   theG4tgrVolumeList.push_back( vol );
 
  143   if( theG4tgrVolumeMap.find( vol->
GetName() ) != theG4tgrVolumeMap.end() )
 
  145     G4String ErrMessage = 
"Cannot be two volumes with the same name... " 
  147     G4Exception(
"G4tgrVolumeMgr::RegisterMe()", 
"InvalidSetup",
 
  150   theG4tgrVolumeMap.insert(G4mapsvol::value_type(vol->
GetName(), vol) ); 
 
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
 
const G4String & GetName() const 
 
 
 
 
Definition at line 179 of file G4tgrVolumeMgr.cc.
  182   theG4tgrVolumeTree.insert(G4mmapspl::value_type(parentName, pl) );
 
 
 
 
Definition at line 123 of file G4tgrVolumeMgr.cc.
  125   if( theG4tgrSolidMap.find( sol->GetName() ) != theG4tgrSolidMap.end() )
 
  127     G4String ErrMessage = 
"Cannot unregister a solid that is not registered... " 
  129     G4Exception(
"G4tgrSolidMgr::unRegisterMe()", 
"InvalidSetup",
 
  134     theG4tgrSolidMap.erase( theG4tgrSolidMap.find( sol->GetName() ) ); 
 
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
 
 
 
 
Definition at line 155 of file G4tgrVolumeMgr.cc.
  157   std::vector<G4tgrVolume*>::iterator ite;
 
  158   for(ite = theG4tgrVolumeList.begin(); ite != theG4tgrVolumeList.end(); ite++)
 
  160     if((*ite) == vol )  { 
break; }
 
  162   if( ite == theG4tgrVolumeList.end() )
 
  164     G4String ErrMessage = 
"Cannot unregister a volume not registered... " 
  166     G4Exception(
"G4tgrVolumeMgr::unRegisterMe()", 
"InvalidSetup",
 
  171     theG4tgrVolumeList.erase( ite );
 
  173   theG4tgrVolumeMap.erase( theG4tgrVolumeMap.find( vol->
GetName() ) ); 
 
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
 
const G4String & GetName() const 
 
 
 
 
The documentation for this class was generated from the following files: