/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Simulation/BOOST/SimUtil/SimUtil-00-00-37/src/ReadBoostRoot.cc

Go to the documentation of this file.
00001 #include "ReadBoostRoot.hh"
00002 #include "globals.hh"
00003 #include <fstream>
00004 using namespace std;
00005 
00006 G4String ReadBoostRoot::BoostRoot = "";
00007 G4int ReadBoostRoot::m_mdc = 1;
00008 G4int ReadBoostRoot::m_tof = 1;
00009 G4int ReadBoostRoot::m_emc = 1;
00010 G4int ReadBoostRoot::m_muc = 1;
00011 G4int ReadBoostRoot::m_field = 1;
00012 G4int ReadBoostRoot::m_formatAR=0;
00013 G4int ReadBoostRoot::m_tuning = 0;
00014 G4int ReadBoostRoot::m_hitOut = 0;
00015 
00016 ReadBoostRoot::ReadBoostRoot(G4int mdc, G4int tof, G4int emc, G4int muc, G4int field,G4int formatAR,G4int tuning, G4int hitOut)
00017 {
00018   m_mdc = mdc;
00019   m_tof = tof;
00020   m_emc = emc;
00021   m_muc = muc;
00022   m_field = field;
00023   m_formatAR = formatAR;
00024   m_tuning = tuning;  
00025   m_hitOut = hitOut;
00026         /*G4String iniFileName = getenv("G4WORKDIR");
00027         if(!iniFileName)
00028         {
00029                 G4Exception("G4WORKDIR environment not set!");
00030         }
00031         G4String g4system = getenv("G4SYSTEM");
00032         if(!g4system)
00033         {
00034                 G4Exception("G4SYSTEM environment not set!");
00035         }
00036         iniFileName += "/tmp/";
00037         iniFileName += g4system;
00038         iniFileName += "/boost.ini";
00039         ifstream fin(iniFileName);
00040         
00041         G4String GeometryPath;
00042         fin>>GeometryPath;
00043         if(!GeometryPath)
00044         {
00045                 G4Exception("Fail in reading boost.ini!");
00046         }*/
00047         BoostRoot = getenv("SIMUTILROOT");
00048 }
00049 
00050 ReadBoostRoot::~ReadBoostRoot()
00051 {}

Generated on Tue Nov 29 23:14:30 2016 for BOSS_7.0.2 by  doxygen 1.4.7