55 if (i != (GAMMAKNIFE_SOURCES - 1))
99 for (
size_t i = 0; i < size; i++)
106 MeshScoreMap::iterator it = scoreMap.begin();
107 for( ; it != scoreMap.end(); it++)
109 std::string hitMapName = it->first;
112 storedScoreMap[ hitMapName ] = hitMapToStore;
131 MeshScoreMap::iterator it = scoreMap.begin();
132 for( ; it != scoreMap.end(); it++)
134 std::string hitMapName = it->first;
136 auto storedMap = storedScoreMap[hitMapName]->GetMap();
137 auto mapItr = it->second->GetMap()->begin();
138 for(;mapItr!=it->second->GetMap()->end();mapItr++)
140 auto key = mapItr->first;
141 auto val = mapItr->second;
142 if(storedMap->find(key)==storedMap->end())
144 (*storedMap)[key]->add(val);
160 MeshScoreMap::iterator it = storedScoreMap.begin();
161 for( ; it != storedScoreMap.end(); it++)
179 ifs.open( fileName.c_str() );
186 for (
G4int c = 0; c < 4; c++) ifs.get();
189 ifs.getline(buf, SZ);
MeshScoreMap GetScoreMap() const
static G4RunManager * GetRunManager()
void RotateForward(G4int)
size_t GetNumberOfMesh() const
std::vector< G4double > thetaAngles
void Accumulate(G4THitsMap< G4double > *map)
std::vector< G4double > phiAngles
virtual void BeamOn(G4int n_event, const char *macroFile=0, G4int n_select=-1)
void RotateZ(G4double delta)
void ReadFile(std::string fileName)
static G4ScoringManager * GetScoringManagerIfExist()
GammaKnifeDetectorConstruction * detector
static constexpr double degree
G4VScoringMesh * GetMesh(G4int i) const
void PrepareHitsAccumulation()
GammaKnifeMessenger * messenger
void RotateX(G4double delta)
#define GAMMAKNIFE_SOURCES
std::map< G4String, RunScore * > MeshScoreMap
GammaKnifeController(GammaKnifeDetectorConstruction *)