48 G4String ParaPath = getenv(
"EMCSIMROOT" );
51 G4cout <<
"BOOST environment not set!" << G4endl;
55 G4String ParaPath1 = ParaPath;
57 ParaPath +=
"/dat/BesEmc.txt";
62 const int maxCharOfOneLine = 255;
63 char temp[maxCharOfOneLine], *p;
64 int lineNo = 0, inputNo = 0;
66 while ( fin.peek() != EOF )
68 fin.getline( temp, maxCharOfOneLine );
81 while ( *p ==
' ' || *p ==
'\t' ) p++;
82 if ( *p ==
'\0' )
continue;
87 istrstream( p ) >> array_size >> m_tau >> m_highRange >> m_midRange >> m_lowRange >>
88 m_sampleTime >> m_bitNb >> m_photonsPerMeV >> m_nonuniformity >> m_peakTime >>
92 istrstream( p ) >> WorldRmin1 >> WorldRmax1 >> WorldRmin2 >> WorldRmax2 >> WorldDz >>
93 WorldZPosition >> CrystalLength >> CrystalLength1;
96 istrstream( p ) >> cryNumInOneLayer[0] >> cryNumInOneLayer[1] >> cryNumInOneLayer[2] >>
97 cryNumInOneLayer[3] >> cryNumInOneLayer[4] >> cryNumInOneLayer[5];
100 istrstream( p ) >> pentaInOneSector[0] >> pentaInOneSector[1] >> pentaInOneSector[2] >>
101 pentaInOneSector[3] >> pentaInOneSector[4];
103 case 5: istrstream( p ) >> fTyvekThickness >> fAlThickness >> fMylarThickness;
break;
105 istrstream( p ) >> BSCRmin >> BSCDz >> BSCRmin1 >> BSCRmax1 >> BSCRmin2 >> BSCRmax2 >>
108 case 7: istrstream( p ) >> BSCAngleRotat >> BSCNbPhi >> BSCNbTheta;
break;
110 istrstream( p ) >> BSCYFront0 >> BSCYFront >> BSCYFront1 >> BSCPosition0 >> BSCPosition1;
113 istrstream( p ) >> TaperRingDz >> TaperRingThickness1 >> TaperRingThickness2 >>
114 TaperRingThickness3 >> TaperRingTheta >> TaperRingInnerLength >>
115 TaperRingOuterLength;
117 istrstream( p ) >> rearBoxLength >> rearBoxDz >> HangingPlateDz >> OCGirderAngle >>
120 istrstream( p ) >> orgGlassLengthX >> orgGlassLengthY >> orgGlassLengthZ >> PDLengthX >>
121 PDLengthY >> PDLengthZ >> AlPlateDz >> PABoxDz >> PABoxThickness;
123 istrstream( p ) >> cableDr >> waterPipeDr >> waterPipeThickness >> SPBarThickness >>
124 SPBarThickness1 >> SPBarwidth >> EndRingDz >> EndRingDr >> EndRingRmin;
131 ParaPath1 +=
"/dat/EmcLightOutput.dat";
132 fin1.open( ParaPath1 );
134 for ( G4int i = 0; i < 6240; i++ ) { fin1 >> lightOutput[i]; }