Changeset 1161


Ignore:
Timestamp:
Nov 10, 2009, 3:19:51 PM (15 years ago)
Author:
garnier
Message:

gMocren update

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 akimura Exp $
     1$Id: History,v 1.7 2009/11/05 11:37:12 gcosmo Exp $
    22-------------------------------------------------------------------
    33
     
    2121---------------------------------------------------
    2222
    23 2 Novemeber 2009  Akinori Kimura
     235 November 2009  Gabriele Cosmo (gMocren-V09-02-03)
     24Fix in G4GMocrenFileSceneHandler.cc for resolving compilation error on
     25Windows
     26
     275 November 2009  Akinori Kimura
     28GMocrenFileSceneHandler::AddCompound(G4THisMap<>) was modified
     29to deal with /vis/scene/add/psHits <scorer_name>.
     30GMocrenIO.cc was modified to remove an unnecessary output by std::cout.
     31
     322 November 2009  Akinori Kimura (gMocren-V09-02-02)
     33I mistook to make a tag, gMocren-V09-02-01.
     34So I made a tag again.
     35
     36
     372 November 2009  Akinori Kimura (gMocren-V09-02-01)
    2438Deleted the following two AddEndOfEventModel(*) in
    2539G4GMocrenFileSceneHandler::GFBeginModeling().
     
    3044
    3145
    32 1 Novemeber 2009  Akinori Kimura
     461 November 2009  Akinori Kimura
    3347A few warning as following were fixed.
    3448src/G4GMocrenFileSceneHandler.cc:1812: warning: dereferencing pointer '<anonymous>' does break strict-aliasing rules
  • trunk/source/visualization/gMocren/src/G4GMocrenFileSceneHandler.cc

    r1142 r1161  
    2525//
    2626//
    27 // $Id: G4GMocrenFileSceneHandler.cc,v 1.8 2009/11/02 04:59:07 akimura Exp $
     27// $Id: G4GMocrenFileSceneHandler.cc,v 1.10 2009/11/05 11:34:01 gcosmo Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    120120    kbSetModalityVoxelSize(false),
    121121    kbModelingTrajectory(false),
    122     kGddDest(0),
     122//    kGddDest(0),
    123123    kFlagInModeling(false),
    124124    kFlagSaving_g4_gdd(false),
     
    15901590  G4String scorername = static_cast<G4VHitsCollection>(hits).GetName();
    15911591
    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 
    16171592  //-- --//
    16181593  /*
     
    16261601 
    16271602
    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.
    16301605
    16311606      G4int idx[3];
     
    16351610        GetNestedVolumeIndex(itr->first, idx);
    16361611        Index3D id(idx[0], idx[1], idx[2]);
    1637         //Index3D id;
    1638         //id.x = idx[0]; id.y = idx[1]; id.z = idx[2];
    16391612       
    16401613        std::map<G4String, std::map<Index3D, G4double> >::iterator nestedHitsListItr;
     
    16481621        }
    16491622      }
    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
    16531653}
    16541654
  • trunk/source/visualization/gMocren/src/G4GMocrenIO.cc

    r1142 r1161  
    2525//
    2626//
    27 // $Id: G4GMocrenIO.cc,v 1.3 2009/10/18 04:02:09 akimura Exp $
     27// $Id: G4GMocrenIO.cc,v 1.4 2009/11/05 03:14:12 akimura Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    36853685bool G4GMocrenIO::isDoseEmpty() {
    36863686  if(kDose.empty()) {
    3687     std::cerr << "!!! dose distribution data is empty." << std::endl;
     3687    //std::cerr << "!!! dose distribution data is empty." << std::endl;
    36883688    return true;
    36893689  } else {
Note: See TracChangeset for help on using the changeset viewer.