47 : fWorldName(wName),fCurrentPS(0),fConstructed(false),fActive(true),
49 verboseLevel(0),sizeIsSet(false),nMeshIsSet(false),
50 fDrawUnit(
""), fDrawUnitValue(1.)
66 std::map<G4String, G4THitsMap<G4double>* >::iterator itr =
fMap.begin();
67 for(; itr !=
fMap.end(); itr++) {
74 for(
int i = 0; i < 3; i++)
fSize[i] = size[i];
77 G4String message =
" The size of scoring mesh can not be changed.";
94 for(
int i = 0; i < 3; i++)
fNSegment[i] = nSegment[i];
97 G4String message =
" The size of scoring segments can not be changed.";
98 G4Exception(
"G4VScoringMesh::SetNumberOfSegments()",
104 for(
int i = 0; i < 3; i++) nSegment[i] =
fNSegment[i];
125 G4cerr <<
"ERROR : G4VScoringMesh::SetPrimitiveScorer() : " << ps->
GetName()
126 <<
" does not yet have mesh size or number of bins. Set them first." <<
G4endl
127 <<
"This Method is ignored." <<
G4endl;
131 << ps->
GetName() <<
" is registered."
147 G4cerr <<
"ERROR : G4VScoringMesh::SetSDFilter() : a quantity must be defined first. This method is ignored." <<
G4endl;
158 G4cout <<
"WARNING : G4VScoringMesh::SetFilter() : " << oldFilter->
GetName()
167 G4cerr <<
"ERROR : G4VScoringMesh::SetCurrentPrimitiveScorer() : The primitive scorer <"
168 << name <<
"> does not found." <<
G4endl;
173 std::map<G4String, G4THitsMap<G4double>* >::iterator itr =
fMap.find(psname);;
174 if(itr ==
fMap.end())
return false;
179 std::map<G4String, G4THitsMap<G4double>* >::iterator itr =
fMap.find(psname);;
180 if(itr ==
fMap.end()) {
190 G4String msg =
"ERROR : G4VScoringMesh::GetCurrentPSUnit() : ";
191 msg +=
" Current primitive scorer is null.";
201 G4String msg =
"ERROR : G4VScoringMesh::GetCurrentPSUnit() : ";
202 msg +=
" Current primitive scorer is null.";
210 std::map<G4String, G4THitsMap<G4double>* >::iterator itr =
fMap.find(psname);;
211 if(itr ==
fMap.end()) {
223 if(
fMFD == 0)
return 0;
226 for(
G4int i = 0; i < nps; i++) {
228 if(name == ps->
GetName())
return ps;
235 G4cout <<
" # of segments: ("
240 G4cout <<
" displacement: ("
246 G4cout <<
" rotation matrix: "
264 for(
int i = 0; i < nps; i++) {
278 std::map<G4String, G4THitsMap<G4double>* >::iterator itr =
fMap.begin();
279 for(; itr !=
fMap.end(); itr++) {
281 itr->second->PrintAllHits();
291 std::map<G4String, G4THitsMap<G4double>* >::const_iterator fMapItr =
fMap.find(psName);
292 if(fMapItr!=
fMap.end()) {
295 Draw(fMapItr->second->GetMap(), colorMap,axflg);
297 G4cerr <<
"Scorer <" << psName <<
"> is not defined. Method ignored." <<
G4endl;
304 std::map<G4String, G4THitsMap<G4double>* >::const_iterator fMapItr =
fMap.find(psName);
305 if(fMapItr!=
fMap.end()) {
308 DrawColumn(fMapItr->second->GetMap(),colorMap,idxPlane,iColumn);
310 G4cerr <<
"Scorer <" << psName <<
"> is not defined. Method ignored." <<
G4endl;