57 G4String ParaPath = getenv(
"EMCSIMROOT");
59 G4cout<<
"BOOST environment not set!"<<G4endl;
63 G4String ParaPath1 = ParaPath;
65 ParaPath +=
"/dat/BesEmc.txt";
70 const int maxCharOfOneLine=255;
71 char temp[maxCharOfOneLine],*p;
72 int lineNo=0,inputNo=0;
74 while(fin.peek()!=EOF)
76 fin.getline(temp,maxCharOfOneLine);
89 while(*p==
' '||*p==
'\t')p++;
95 istrstream(p)>>array_size>>m_tau>>m_highRange>>m_midRange>>m_lowRange>>m_sampleTime>>m_bitNb>>m_photonsPerMeV>>m_nonuniformity>>m_peakTime>>m_timeOffset;
98 istrstream(p)>>WorldRmin1>>WorldRmax1>>WorldRmin2>>WorldRmax2>>WorldDz>>WorldZPosition>>CrystalLength>>CrystalLength1;
101 istrstream(p)>>cryNumInOneLayer[0]>>cryNumInOneLayer[1]>>cryNumInOneLayer[2]>>cryNumInOneLayer[3]>>cryNumInOneLayer[4]>>cryNumInOneLayer[5];
104 istrstream(p)>>pentaInOneSector[0]>>pentaInOneSector[1]>>pentaInOneSector[2]>>pentaInOneSector[3]>>pentaInOneSector[4];
107 istrstream(p)>>fTyvekThickness>>fAlThickness>>fMylarThickness;
110 istrstream(p)>>BSCRmin>>BSCDz>>BSCRmin1>>BSCRmax1>>BSCRmin2>>BSCRmax2>>BSCDz1;
113 istrstream(p)>>BSCAngleRotat>>BSCNbPhi>>BSCNbTheta;
116 istrstream(p)>>BSCYFront0>>BSCYFront>>BSCYFront1>>BSCPosition0>>BSCPosition1;
119 istrstream(p)>>TaperRingDz>>TaperRingThickness1>>TaperRingThickness2>>TaperRingThickness3
120 >>TaperRingTheta>>TaperRingInnerLength>>TaperRingOuterLength;
122 istrstream(p)>>rearBoxLength>>rearBoxDz>>HangingPlateDz>>OCGirderAngle>>rearCasingThickness;
124 istrstream(p)>>orgGlassLengthX>>orgGlassLengthY>>orgGlassLengthZ
125 >>PDLengthX>>PDLengthY>>PDLengthZ>>AlPlateDz>>PABoxDz>>PABoxThickness;
127 istrstream(p)>>cableDr>>waterPipeDr>>waterPipeThickness
128 >>SPBarThickness>>SPBarThickness1>>SPBarwidth>>EndRingDz>>EndRingDr>>EndRingRmin;
136 ParaPath1 +=
"/dat/EmcLightOutput.dat";
137 fin1.open(ParaPath1);
139 for(G4int i=0;i<6240;i++) {
140 fin1>>lightOutput[i];