Geant4 가이드

시뮬레이션 변수 가져오기

Step

  • G4StepStatus stat = step -> GetPostStepPoint() -> GetStepStatus();
  • G4double edep = step -> GetTotalEnergyDeposit();
  • G4String pre_volume = step -> GetPreStepPoint() -> GetPhysicalVolume() -> GetName();
  • G4double pre_time = step -> GetPreStepPoint() -> GetGlobalTime();
  • G4ThreeVector pre_pos = step -> GetPreStepPoint() -> GetPosition();
  • G4int pre_volumeID = step -> GetPreStepPoint() -> GetPhysicalVolume() -> GetCopyNo();

Track

  • G4int trackID = track -> GetTrackID();
  • G4int parentID = track -> GetParentID();
  • G4int pdg = track -> GetDefinition() -> GetPDGEncoding()
  • G4ThreeVector momentum = track -> GetMomentum();

Event

  • G4int eventID = event -> GetEventID();

Event Manager

  • G4EventManager::GetEventManager() -> GetUserEventAction();
  • G4EventManager::GetEventManager() -> GetUserStrackingAction();
  • G4EventManager::GetEventManager() -> GetUserTrackingAction();
  • G4EventManager::GetEventManager() -> GetUserSteppingAction();

댓글

댓글 본문
작성자
비밀번호
graphittie 자세히 보기