Loading src/modules/DepositionGeant4/SensitiveDetectorActionG4.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ G4bool SensitiveDetectorActionG4::ProcessHits(G4Step* step, G4TouchableHistory*) // Put the charge deposit in the middle of the step unless it is a photon: auto is_photon = (track->GetDynamicParticle()->GetPDGcode() == 22); LOG(DEBUG) << "Placing energy deposit " LOG(TRACE) << "Placing energy deposit " << (is_photon ? "at the end of step, photon detected" : "in the middle of the step"); G4ThreeVector step_pos = is_photon ? postStep->GetPosition() : (preStep->GetPosition() + postStep->GetPosition()) / 2; double step_time = is_photon ? postStep->GetGlobalTime() : (preStep->GetGlobalTime() + postStep->GetGlobalTime()) / 2; Loading Loading
src/modules/DepositionGeant4/SensitiveDetectorActionG4.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ G4bool SensitiveDetectorActionG4::ProcessHits(G4Step* step, G4TouchableHistory*) // Put the charge deposit in the middle of the step unless it is a photon: auto is_photon = (track->GetDynamicParticle()->GetPDGcode() == 22); LOG(DEBUG) << "Placing energy deposit " LOG(TRACE) << "Placing energy deposit " << (is_photon ? "at the end of step, photon detected" : "in the middle of the step"); G4ThreeVector step_pos = is_photon ? postStep->GetPosition() : (preStep->GetPosition() + postStep->GetPosition()) / 2; double step_time = is_photon ? postStep->GetGlobalTime() : (preStep->GetGlobalTime() + postStep->GetGlobalTime()) / 2; Loading