48 PrepareHitsAccumulation();
53 if (i != (GAMMAKNIFE_SOURCES - 1))
71 mesh->
RotateX( thetaAngles[position] );
72 mesh->
RotateZ( phiAngles[position] );
77 void GammaKnifeController::RotateBack(
G4int position )
85 mesh->
RotateZ( - phiAngles[position] );
86 mesh->
RotateX( - thetaAngles[position] );
91 void GammaKnifeController::PrepareHitsAccumulation()
98 for (
size_t i = 0; i < size; i++)
105 MeshScoreMap::iterator it = scoreMap.begin();
106 for( ; it != scoreMap.end(); it++)
108 std::string hitMapName = it->first;
110 storedScoreMap[ hitMapName ] = hitMapToStore;
116 void GammaKnifeController::StoreHits()
129 MeshScoreMap::iterator it = scoreMap.begin();
130 for( ; it != scoreMap.end(); it++)
132 std::string hitMapName = it->first;
133 *storedScoreMap[hitMapName] += *(it->second);
139 void GammaKnifeController::AccumulateAllHits()
148 MeshScoreMap::iterator it = storedScoreMap.begin();
149 for( ; it != storedScoreMap.end(); it++)
166 ifs.open( fileName.c_str() );
173 for (
G4int c = 0;
c < 4;
c++) ifs.get();
176 ifs.getline(buf, SZ);
178 phiAngles.push_back( phi *
degree );
179 thetaAngles.push_back( theta * degree );