部門 > Geant4 > ある場所のMaterialやPhysicalVolumeを調べる

FAQ.4.  Tracks and steps
でできそうだが...

GetMaterialがG4ThreeVectorに対しては使えなくて、G4StepPointに対してなのでこれがどういうクラスなのか分からないといけない。

PhysicalVolumeに対してなら
G4Material *check_mat = test_phys->GetMaterial();
G4String check_str = check_mat->GetName();
G4cout<<check_str<<G4endl;
とかできる。

タグ:

Geant4
最終更新:2013年02月13日 20:59