14 std::string geometryFilePath1 = getenv(
"MDCSIMROOT");
15 geometryFilePath1 +=
"/dat/MdcElectronics.txt";
18 in.open(geometryFilePath1.c_str());
20 const int maxCharOneLine=255;
21 char temp[maxCharOneLine];
25 in.getline(temp,maxCharOneLine);
30 if(i==2) {istringstream(temp)>>fTotalElecLayerNo;
35 istringstream(temp)>>fLayerr[i-4]>>fElecNo[i-4];
40 istringstream(temp)>>fX[i-29]>>fY[i-29]>>fZ[i-29]>>fR[i-29];
45 istringstream(temp)>>fBoxInStep[0]>>fBoxInStep[1]>>fBoxInStep[2];
50 istringstream(temp)>>fBoxEndcape[0]>>fBoxEndcape[1]>>fBoxEndcape[2];
53 if(i==63){istringstream(temp)>>fFixRing[0]>>fFixRing[1]>>fFixRing[2];}
56 istringstream(temp)>>fInnerRCableFrame[i-76]>>fOuterRCableFrame[i-76]>>fLengthCableFrame[i-76]>>fZCableFrame[i-76];
61 istringstream(temp)>>fThinPlate[0]>>fThinPlate[1]>>fThinPlate[2];
67 istringstream(temp)>>fXCenThinPlate[i-93]>>fYCenThinPlate[i-93]>> fZCenThinPlate[i-93]>>fRotateXAngle[i-93];
74 istringstream(temp)>>fLengthCableTub[0]>>fLengthCableTub[1]>>fLengthCableTub[2]>>fLengthCableTub[3]>>fLengthCableTub[4]>>fLengthCableTub[5]>>fLengthCableTub[6]>>fLengthCableTub[7]>>fLengthCableTub[8]>>fLengthCableTub[9]>>fLengthCableTub[10]>>fLengthCableTub[11]>>fLengthCableTub[12];
79 istringstream(temp)>>fLengthCableTub[13]>>fLengthCableTub[14]>>fLengthCableTub[15]>>fLengthCableTub[16]>>fLengthCableTub[17]>>fLengthCableTub[18]>>fLengthCableTub[19]>>fLengthCableTub[20]>>fLengthCableTub[21]>>fLengthCableTub[22]>>fLengthCableTub[23]>>fLengthCableTub[24];
89 return fTotalElecLayerNo;
117 return fBoxInStep[n];
121 return fBoxEndcape[n];
125 return fLengthCableTub[n];
129 return fInnerRCableFrame[n];
133 return fOuterRCableFrame[n];
137 return fLengthCableFrame[n];
142 return fZCableFrame[n];
148 return fThinPlate[n];
152 return fXCenThinPlate[n];
156 return fYCenThinPlate[n];
160 return fZCenThinPlate[n];
164 return fRotateXAngle[n];
double OuterRCableFrame(int n)
double InnerRCableFrame(int n)
double LengthCableFrame(int n)
double LengthCableTub(int n)
double XCenThinPlate(int n)
double YCenThinPlate(int n)
double ZCenThinPlate(int n)
double RotateXAngle(int n)
double ZCableFrame(int n)