Skip to content

Instantly share code, notes, and snippets.

@JeremyMcCormick
Created September 23, 2016 23:02
Show Gist options
  • Save JeremyMcCormick/41ed7065a48ac6552e575cd43866e8f3 to your computer and use it in GitHub Desktop.
Save JeremyMcCormick/41ed7065a48ac6552e575cd43866e8f3 to your computer and use it in GitHub Desktop.
G4PhysicalVolumeStore* pvs = G4PhysicalVolumeStore::GetInstance();
std::cout << "Dumping PV store ..." << std::endl;
for (G4PhysicalVolumeStore::iterator it = pvs->begin();
it != pvs->end(); it++) {
G4VPhysicalVolume* pv = (*it);
std::cout << "volume: " << pv->GetName() << ", pos: " << pv->GetTranslation() << std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment