BOSS 7.0.3
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_tof = 1;
9G4int ReadBoostRoot::m_emc = 1;
10G4int ReadBoostRoot::m_muc = 1;
11G4int ReadBoostRoot::m_field = 1;
12G4int ReadBoostRoot::m_formatAR=0;
13G4int ReadBoostRoot::m_tuning = 0;
14G4int ReadBoostRoot::m_hitOut = 0;
15
16ReadBoostRoot::ReadBoostRoot(G4int mdc, G4int tof, G4int emc, G4int muc, G4int field,G4int formatAR,G4int tuning, G4int hitOut)
17{
18 m_mdc = mdc;
19 m_tof = tof;
20 m_emc = emc;
21 m_muc = muc;
22 m_field = field;
23 m_formatAR = formatAR;
24 m_tuning = tuning;
25 m_hitOut = hitOut;
26 /*G4String iniFileName = getenv("G4WORKDIR");
27 if(!iniFileName)
28 {
29 G4Exception("G4WORKDIR environment not set!");
30 }
31 G4String g4system = getenv("G4SYSTEM");
32 if(!g4system)
33 {
34 G4Exception("G4SYSTEM environment not set!");
35 }
36 iniFileName += "/tmp/";
37 iniFileName += g4system;
38 iniFileName += "/boost.ini";
39 ifstream fin(iniFileName);
40
41 G4String GeometryPath;
42 fin>>GeometryPath;
43 if(!GeometryPath)
44 {
45 G4Exception("Fail in reading boost.ini!");
46 }*/
47 BoostRoot = getenv("SIMUTILROOT");
48}
49
51{}
std::string mdc
Definition: CalibModel.cxx:45
ReadBoostRoot(G4int, G4int, G4int, G4int, G4int, G4int, G4int, G4int)