CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
ReadBoostRoot.cc
Go to the documentation of this file.
1#include "ReadBoostRoot.hh"
2#include "globals.hh"
3#include <fstream>
4using namespace std;
5
6G4String ReadBoostRoot::BoostRoot = "";
7G4int ReadBoostRoot::m_mdc = 1;
8G4int ReadBoostRoot::m_cgem = 1;
9G4int ReadBoostRoot::m_tof = 1;
10G4int ReadBoostRoot::m_emc = 1;
11G4int ReadBoostRoot::m_muc = 1;
12G4int ReadBoostRoot::m_field = 1;
13G4int ReadBoostRoot::m_formatAR=0;
14G4int ReadBoostRoot::m_tuning = 0;
15G4int ReadBoostRoot::m_hitOut = 0;
16
17ReadBoostRoot::ReadBoostRoot(G4int mdc, G4int cgem, G4int tof, G4int emc, G4int muc, G4int field,G4int formatAR,G4int tuning, G4int hitOut)
18{
19 m_mdc = mdc;
20 m_cgem = cgem;
21 m_tof = tof;
22 m_emc = emc;
23 m_muc = muc;
24 m_field = field;
25 m_formatAR = formatAR;
26 m_tuning = tuning;
27 m_hitOut = hitOut;
28 /*G4String iniFileName = getenv("G4WORKDIR");
29 if(!iniFileName)
30 {
31 G4Exception("G4WORKDIR environment not set!");
32 }
33 G4String g4system = getenv("G4SYSTEM");
34 if(!g4system)
35 {
36 G4Exception("G4SYSTEM environment not set!");
37 }
38 iniFileName += "/tmp/";
39 iniFileName += g4system;
40 iniFileName += "/boost.ini";
41 ifstream fin(iniFileName);
42
43 G4String GeometryPath;
44 fin>>GeometryPath;
45 if(!GeometryPath)
46 {
47 G4Exception("Fail in reading boost.ini!");
48 }*/
49 BoostRoot = getenv("SIMUTILROOT");
50}
51
53{}
std::string mdc
Definition: CalibModel.cxx:45
ReadBoostRoot(G4int, G4int, G4int, G4int, G4int, G4int, G4int, G4int, G4int)