53 std::map<G4int, G4THitsMap<G4double>* >::iterator iter =
fMap.begin();
55 while (iter !=
fMap.end()) {
68 if (!eventHitCollection)
return;
71 std::map< G4int, G4THitsMap<G4double>* >::iterator iter =
fMap.begin();
73 while (iter !=
fMap.end()) {
74 G4int id = iter->first;
81 assert (0 != eventHitsMap);
84 *(iter->second) += *eventHitsMap;
97 std::vector<G4String>
title;
98 title.push_back(
"Radius");
101 std::map< G4int, std::vector<G4double> > output;
103 G4int nThetaBins = 233;
111 for (i=0; i<nThetaBins; i++) {
112 for (j=0; j<nEnergyBins; j++) {
113 output[i].push_back(0);
120 std::map< G4int, G4THitsMap<G4double>* >::const_iterator iter =
fMap.begin();
122 while (iter !=
fMap.end()) {
125 title.push_back(hitMap->
GetName());
127 std::map<G4int,G4double*>* myMap = hitMap->
GetMap();
129 for (j=0; j<nThetaBins; j++) {
131 if (0 != current) output[j][i] = (*current);
138 Print(title, output, outputFileSpec);
144 const std::map<
G4int, std::vector<G4double> >&myMap,
148 std::ofstream outFile(outputFileSpec);
151 std::vector<G4String>::const_iterator titleIter = title.begin();
153 while (titleIter != title.end()) {
154 G4cout << std::setw(8)<<*titleIter<<
" ";
161 std::map< G4int, std::vector<G4double> >::const_iterator iter = myMap.begin();
163 while (iter != myMap.end()) {
164 G4cout << std::setw(8)<<std::setprecision(3)<< iter->first<<
" ";
166 std::vector<G4double>::const_iterator energyBinIter = iter->second.begin();
175 G4int ringNum = iter->first;
176 G4double areaCorrection = 233.*233. /
177 ( (ringNum+1)*(ringNum+1) - ringNum*ringNum );
180 while (energyBinIter != iter->second.end()) {
182 if (counter < 2) value = value*areaCorrection;
183 G4cout << std::setw(10)<<std::setprecision(5)<< value*
mm*
mm<<
" ";
184 outFile << value*mm*
mm;
185 if (counter < 3) outFile <<
",";
202 const std::map< G4int, G4THitsMap<G4double>* >& localMap = localRun->
fMap;
203 std::map< G4int, G4THitsMap<G4double>* >::const_iterator iter = localMap.begin();
204 for ( ; iter != localMap.end() ; ++iter)
205 (*(
fMap[iter->first])) += (*(iter->second));