Changeset 1161 for trunk/source/visualization
- Timestamp:
- Nov 10, 2009, 3:19:51 PM (15 years ago)
- Location:
- trunk/source/visualization/gMocren
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/gMocren/History
r1142 r1161 1 $Id: History,v 1. 4 2009/11/02 04:59:07 akimuraExp $1 $Id: History,v 1.7 2009/11/05 11:37:12 gcosmo Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 21 21 --------------------------------------------------- 22 22 23 2 Novemeber 2009 Akinori Kimura 23 5 November 2009 Gabriele Cosmo (gMocren-V09-02-03) 24 Fix in G4GMocrenFileSceneHandler.cc for resolving compilation error on 25 Windows 26 27 5 November 2009 Akinori Kimura 28 GMocrenFileSceneHandler::AddCompound(G4THisMap<>) was modified 29 to deal with /vis/scene/add/psHits <scorer_name>. 30 GMocrenIO.cc was modified to remove an unnecessary output by std::cout. 31 32 2 November 2009 Akinori Kimura (gMocren-V09-02-02) 33 I mistook to make a tag, gMocren-V09-02-01. 34 So I made a tag again. 35 36 37 2 November 2009 Akinori Kimura (gMocren-V09-02-01) 24 38 Deleted the following two AddEndOfEventModel(*) in 25 39 G4GMocrenFileSceneHandler::GFBeginModeling(). … … 30 44 31 45 32 1 Novem eber 2009 Akinori Kimura46 1 November 2009 Akinori Kimura 33 47 A few warning as following were fixed. 34 48 src/G4GMocrenFileSceneHandler.cc:1812: warning: dereferencing pointer '<anonymous>' does break strict-aliasing rules -
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 -
trunk/source/visualization/gMocren/src/G4GMocrenIO.cc
r1142 r1161 25 25 // 26 26 // 27 // $Id: G4GMocrenIO.cc,v 1. 3 2009/10/18 04:02:09akimura Exp $27 // $Id: G4GMocrenIO.cc,v 1.4 2009/11/05 03:14:12 akimura Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 3685 3685 bool G4GMocrenIO::isDoseEmpty() { 3686 3686 if(kDose.empty()) { 3687 std::cerr << "!!! dose distribution data is empty." << std::endl;3687 //std::cerr << "!!! dose distribution data is empty." << std::endl; 3688 3688 return true; 3689 3689 } else {
Note: See TracChangeset
for help on using the changeset viewer.