G3VolTable.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 //
00029 // ----------------------
00030 // Class description:
00031 //
00032 // G3 volumes table.
00033 // The G3 volumes are represented with the G3VolTableEntry objects
00034 // that are stored in the map (sorted by names).
00035 // In the phase of filling the G3 tables (defining G3 geometry, 
00036 // eg. by parsing the G3 input via clparse.cc)
00037 // a G3 volume can be defined with incomplete parameters
00038 // (negative or none) that have to be retrieved from its mother
00039 // which may be defined later. These parameters are being resolved
00040 // subsequently in the phase of filling G3 tables.
00041 // That's why the G4 object counterparts (solids, logical volumes
00042 // and physical volumes) can be created only after filling the G3 tables
00043 // is finished and all incomplete parameters are resolved. 
00044 
00045 // ----------------------
00046 //
00047 // modified by I.Hrivnacova, 13.10.99
00048 
00049 #ifndef G3VOLTABLE_HH
00050 #define G3VOLTABLE_HH 1
00051 
00052 #include <map>
00053 #include "G3VolTableEntry.hh"
00054 #include "G3toG4Defs.hh"
00055 
00056 class G4LogicalVolume;
00057 class G4Material;
00058 class G4VSolid;
00059 
00060 class G3VolTable
00061 {
00062 
00063 public:  // with description
00064 
00065   G3VolTableEntry* PutVTE(G3VolTableEntry* aVTE);  
00066   G3VolTableEntry* GetVTE(const G4String& Vname);
00067   void PrintAll();
00068   G3VolTable();
00069   virtual ~G3VolTable();
00070   G4LogicalVolume* GetG3toG4Mother();
00071   G3VolTableEntry* GetFirstVTE();
00072   void SetFirstVTE();
00073   void VTEStat();
00074   void CountG3Pos();
00075   void Clear();
00076 
00077 private:
00078 
00079   G3VolTableEntry* G3toG4TopVTE;
00080   G4String _FirstKey;
00081   std::map<G4String, G3VolTableEntry*, std::less<G4String> > VTD;
00082   G4int _NG3Pos;
00083 };
00084 
00085 extern G3G4DLL_API G3VolTable G3Vol;
00086 
00087 #endif

Generated on Mon May 27 17:47:36 2013 for Geant4 by  doxygen 1.4.7