50 G4String ParaPath = getenv(
"SIMUTILDATAROOT" );
54 G4cout <<
"BOOST environment not set!" << G4endl;
57 ParaPath +=
"/dat/BesEmc.txt";
58 G4cout <<
"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" << G4endl;
59 G4cout << ParaPath << G4endl;
64 const int maxCharOfOneLine = 255;
65 char temp[maxCharOfOneLine], *p;
66 int lineNo = 0, inputNo = 0;
68 while ( fin.peek() != EOF )
70 fin.getline( temp, maxCharOfOneLine );
83 while ( *p ==
' ' || *p ==
'\t' ) p++;
84 if ( *p ==
'\0' )
continue;
89 istrstream( p ) >> array_size >> m_tau >> m_highRange >> m_midRange >> m_lowRange >>
90 m_sampleTime >> m_bitNb >> m_photonsPerMeV >> m_nonuniformity >> m_peakTime >>
94 istrstream( p ) >> WorldRmin1 >> WorldRmax1 >> WorldRmin2 >> WorldRmax2 >> WorldDz >>
95 WorldZPosition >> CrystalLength;
98 istrstream( p ) >> cryNumInOneLayer[0] >> cryNumInOneLayer[1] >> cryNumInOneLayer[2] >>
99 cryNumInOneLayer[3] >> cryNumInOneLayer[4] >> cryNumInOneLayer[5];
102 istrstream( p ) >> pentaInOneSector[0] >> pentaInOneSector[1] >> pentaInOneSector[2] >>
103 pentaInOneSector[3] >> pentaInOneSector[4];
105 case 5: istrstream( p ) >> fTyvekThickness >> fAlThickness >> fMylarThickness;
break;
107 istrstream( p ) >> BSCRmin >> BSCDz >> BSCRmin1 >> BSCRmax1 >> BSCRmin2 >> BSCRmax2 >>
110 case 7: istrstream( p ) >> BSCAngleRotat >> BSCNbPhi >> BSCNbTheta;
break;
112 istrstream( p ) >> BSCYFront0 >> BSCYFront >> BSCYFront1 >> BSCPosition0 >> BSCPosition1;
115 istrstream( p ) >> TaperRingDz >> TaperRingThickness1 >> TaperRingThickness2 >>
116 TaperRingThickness3 >> TaperRingTheta >> TaperRingInnerLength >>
117 TaperRingOuterLength;
119 istrstream( p ) >> rearBoxLength >> rearBoxDz >> HangingPlateDz >> OCGirderAngle >>
122 istrstream( p ) >> orgGlassLengthX >> orgGlassLengthY >> orgGlassLengthZ >> PDLengthX >>
123 PDLengthY >> PDLengthZ >> AlPlateDz >> PABoxDz >> PABoxThickness;
125 istrstream( p ) >> cableDr >> waterPipeDr >> waterPipeThickness >> SPBarThickness >>
126 SPBarThickness1 >> SPBarwidth >> EndRingDz >> EndRingDr >> EndRingRmin;