/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/DetectorDescription/G4Geo/G4Geo-00-00-13/src/BesG4Geo.cxx

Go to the documentation of this file.
00001 //$id$
00002 
00003 /*
00004  *    2007/05/28   Deng Ziyan 
00005  *                 Bes Geometry General for Simulation
00006  *                 inherit from class SubDetectorG4Geo
00007  */
00008 
00009 using namespace std;
00010 
00011 #include <string>
00012 #include <iostream>
00013 #include <sstream>
00014 #include <vector>
00015 #include <iomanip>
00016 
00017 
00018 #include "ReadBoostRoot.hh"
00019 #include "G4Geo/BesG4Geo.h"
00020 
00021 BesG4Geo::BesG4Geo()
00022 { 
00023   string GdmlManagementPath = getenv("GDMLMANAGEMENTROOT");
00024   if (GdmlManagementPath == "") cout << "BesG4Geo::GdmlManagementPath not set" << endl;
00025   string GdmlFile = GdmlManagementPath + string("/dat/Bes.gdml");
00026   cout << "Construct Bes from GdmlFile " << GdmlFile << endl;
00027   InitFromGdml( GdmlFile.c_str(), "Default" );
00028 }
00029 
00030 BesG4Geo::~BesG4Geo()
00031 { }
00032 
00033 void
00034 BesG4Geo::InitFromGdml( const char *gdmlFile, const char *setupName )
00035 {
00036   ReadGdml(gdmlFile, setupName);
00037   m_TopVolume = GetLogicalVolume("logicalWorld");
00038   if (!m_TopVolume) cout << "BesG4Geo::InitFromGdml, m_TopVolume not found" << endl;
00039   else cout << "Bes TopVolume name " << m_TopVolume->GetName() << endl;
00040   SetDefaultVis();
00041 
00042   m_G4GeoInit = 1;  
00043 }
00044 
00045 void 
00046 BesG4Geo::SetDefaultVis()
00047 {
00048 }

Generated on Tue Nov 29 22:58:00 2016 for BOSS_7.0.2 by  doxygen 1.4.7