12#include "BesEmcParameter.hh"
16#include "EmcGeneralClass/EmcStructure.h"
57 G4String ParaPath = getenv(
"EMCSIMROOT");
59 G4Exception(
"BOOST environment not set!");
62 G4String ParaPath1 = ParaPath;
64 ParaPath +=
"/dat/BesEmc.txt";
69 const int maxCharOfOneLine=255;
70 char temp[maxCharOfOneLine],*p;
71 int lineNo=0,inputNo=0;
73 while(fin.peek()!=EOF)
75 fin.getline(temp,maxCharOfOneLine);
88 while(*p==
' '||*p==
'\t')p++;
94 istrstream(p)>>array_size>>m_tau>>m_highRange>>m_midRange>>m_lowRange>>m_sampleTime>>m_bitNb>>m_photonsPerMeV>>m_nonuniformity>>m_peakTime>>m_timeOffset;
97 istrstream(p)>>WorldRmin1>>WorldRmax1>>WorldRmin2>>WorldRmax2>>WorldDz>>WorldZPosition>>CrystalLength>>CrystalLength1;
100 istrstream(p)>>cryNumInOneLayer[0]>>cryNumInOneLayer[1]>>cryNumInOneLayer[2]>>cryNumInOneLayer[3]>>cryNumInOneLayer[4]>>cryNumInOneLayer[5];
103 istrstream(p)>>pentaInOneSector[0]>>pentaInOneSector[1]>>pentaInOneSector[2]>>pentaInOneSector[3]>>pentaInOneSector[4];
106 istrstream(p)>>fTyvekThickness>>fAlThickness>>fMylarThickness;
109 istrstream(p)>>BSCRmin>>BSCDz>>BSCRmin1>>BSCRmax1>>BSCRmin2>>BSCRmax2>>BSCDz1;
112 istrstream(p)>>BSCAngleRotat>>BSCNbPhi>>BSCNbTheta;
115 istrstream(p)>>BSCYFront0>>BSCYFront>>BSCYFront1>>BSCPosition0>>BSCPosition1;
118 istrstream(p)>>TaperRingDz>>TaperRingThickness1>>TaperRingThickness2>>TaperRingThickness3
119 >>TaperRingTheta>>TaperRingInnerLength>>TaperRingOuterLength;
121 istrstream(p)>>rearBoxLength>>rearBoxDz>>HangingPlateDz>>OCGirderAngle>>rearCasingThickness;
123 istrstream(p)>>orgGlassLengthX>>orgGlassLengthY>>orgGlassLengthZ
124 >>PDLengthX>>PDLengthY>>PDLengthZ>>AlPlateDz>>PABoxDz>>PABoxThickness;
126 istrstream(p)>>cableDr>>waterPipeDr>>waterPipeThickness
127 >>SPBarThickness>>SPBarThickness1>>SPBarwidth>>EndRingDz>>EndRingDr>>EndRingRmin;
135 ParaPath1 +=
"/dat/EmcLightOutput.dat";
136 fin1.open(ParaPath1);
138 for(G4int i=0;i<6240;i++) {
139 fin1>>lightOutput[i];
149 if(index>=0&&index<6240) {
150 return lightOutput[index];
static BesEmcParameter & GetInstance()
G4double GetLightOutput(G4int i)
int getGeomIndex(unsigned int PartId, unsigned int ThetaIndex, unsigned int PhiIndex) const