24 G4String GeometryPath = getenv(
"BESSIMROOT");
26 G4Exception(
"BOOST environment not set!");
28 GeometryPath +=
"/dat/BesPip.txt";
31 fin.open(GeometryPath);
33 const int maxCharOfOneLine=255;
34 char temp[maxCharOfOneLine],*p;
35 int lineNo=0,inputNo=0;
36 while(fin.peek()!=EOF)
38 fin.getline(temp,maxCharOfOneLine);
51 while(*p==
' '||*p==
'\t')p++;
57 istrstream(p)>>goldLayer[0]>>goldLayer[1]>>goldLayer[2];
60 istrstream(p)>>innerBe[0]>>innerBe[1]>>innerBe[2];
63 istrstream(p)>>oilLayer[0]>>oilLayer[1]>>oilLayer[2];
66 istrstream(p)>>outerBe[0]>>outerBe[1]>>outerBe[2];
69 istrstream(p)>>innerBeSide[0]>>innerBeSide[1]>>innerBeSide[2]>>innerBeSide[3]>>innerBeSide[4];
72 istrstream(p)>>innerAl[0]>>innerAl[1]>>innerAl[2]>>innerAl[3]>>innerAl[4];
75 istrstream(p)>>AlRing[0]>>AlRing[1]>>AlRing[2]>>AlRing[3]>>AlRing[4];
78 istrstream(p)>>outerAl[0]>>outerAl[1]>>outerAl[2]>>outerAl[3]>>outerAl[4];
81 istrstream(p)>>AgLayer[0]>>AgLayer[1]>>AgLayer[2]>>AgLayer[3]>>AgLayer[4];
84 istrstream(p)>>CuLayer[0]>>CuLayer[1]>>CuLayer[2]>>CuLayer[3]>>CuLayer[4];
87 istrstream(p)>>AlCover[0]>>AlCover[1]>>AlCover[2]>>AlCover[3]>>AlCover[4];