- Timestamp:
- Nov 10, 2009, 3:19:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/gMocren/src/G4GMocrenFileSceneHandler.cc
r1142 r1161 25 25 // 26 26 // 27 // $Id: G4GMocrenFileSceneHandler.cc,v 1. 8 2009/11/02 04:59:07 akimuraExp $27 // $Id: G4GMocrenFileSceneHandler.cc,v 1.10 2009/11/05 11:34:01 gcosmo Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 120 120 kbSetModalityVoxelSize(false), 121 121 kbModelingTrajectory(false), 122 kGddDest(0),122 // kGddDest(0), 123 123 kFlagInModeling(false), 124 124 kFlagSaving_g4_gdd(false), … … 1590 1590 G4String scorername = static_cast<G4VHitsCollection>(hits).GetName(); 1591 1591 1592 if(GFDEBUG_HIT) {1593 G4String meshname = static_cast<G4VHitsCollection>(hits).GetSDname();1594 G4cout << " >>>>> " << meshname << " : " << scorername << G4endl;1595 1596 for(int i = 0; i < nhitname; i++)1597 if(scorername == hitScorerNames[i])1598 G4cout << " !!!! Hit scorer !!!! " << scorername << G4endl;1599 1600 G4cout << " dimension: "1601 << kNestedVolumeDimension[0] << " x "1602 << kNestedVolumeDimension[1] << " x "1603 << kNestedVolumeDimension[2] << G4endl;1604 1605 G4int id[3];1606 std::map<G4int, G4double*> * map = hits.GetMap();1607 std::map<G4int, G4double*>::const_iterator itr = map->begin();1608 for(; itr != map->end(); itr++) {1609 GetNestedVolumeIndex(itr->first, id);1610 G4cout << "[" << itr->first << "] "1611 << "("<< id[0] << "," << id[1] << "," << id[2] << ")"1612 << *itr->second << ", ";1613 }1614 G4cout << G4endl;1615 }1616 1617 1592 //-- --// 1618 1593 /* … … 1626 1601 1627 1602 1628 for(int i = 0; i < nhitname; i++) {1629 if(scorername == hitScorerNames[i]) {1603 //for(int i = 0; i < nhitname; i++) { // this selection trusts 1604 //if(scorername == hitScorerNames[i]) { // thea command /vis/scene/add/psHits hit_name. 1630 1605 1631 1606 G4int idx[3]; … … 1635 1610 GetNestedVolumeIndex(itr->first, idx); 1636 1611 Index3D id(idx[0], idx[1], idx[2]); 1637 //Index3D id;1638 //id.x = idx[0]; id.y = idx[1]; id.z = idx[2];1639 1612 1640 1613 std::map<G4String, std::map<Index3D, G4double> >::iterator nestedHitsListItr; … … 1648 1621 } 1649 1622 } 1650 break; 1651 } 1652 } 1623 1624 //break; 1625 //} 1626 //} 1627 1628 if(GFDEBUG_HIT) { 1629 G4String meshname = static_cast<G4VHitsCollection>(hits).GetSDname(); 1630 G4cout << " >>>>> " << meshname << " : " << scorername << G4endl; 1631 1632 for(int i = 0; i < nhitname; i++) 1633 if(scorername == hitScorerNames[i]) 1634 G4cout << " !!!! Hit scorer !!!! " << scorername << G4endl; 1635 1636 G4cout << " dimension: " 1637 << kNestedVolumeDimension[0] << " x " 1638 << kNestedVolumeDimension[1] << " x " 1639 << kNestedVolumeDimension[2] << G4endl; 1640 1641 G4int id[3]; 1642 std::map<G4int, G4double*> * map = hits.GetMap(); 1643 std::map<G4int, G4double*>::const_iterator itr = map->begin(); 1644 for(; itr != map->end(); itr++) { 1645 GetNestedVolumeIndex(itr->first, id); 1646 G4cout << "[" << itr->first << "] " 1647 << "("<< id[0] << "," << id[1] << "," << id[2] << ")" 1648 << *itr->second << ", "; 1649 } 1650 G4cout << G4endl; 1651 } 1652 1653 1653 } 1654 1654
Note: See TracChangeset
for help on using the changeset viewer.