Import Geant4 10.3.1 source tree

This commit is contained in:
Gabriele Cosmo
2017-02-28 16:16:20 +01:00
parent a3452e42ac
commit 4597adb7c4
267 changed files with 14761 additions and 24650 deletions
+6 -1
View File
@@ -1,4 +1,4 @@
$Id: History 101439 2016-11-17 14:54:08Z gcosmo $
$Id: History 102568 2017-02-09 08:37:41Z gcosmo $
-------------------------------------------------------------------
=========================================================
@@ -16,6 +16,11 @@ committal in the CVS repository !
----------------------------------------------------------
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
Dec 22, 2016 L.Desorgher (tracking-V10-02-06)
- Modification in G4AdjointSteppingAction for correction of a bug in the case of reverse
track splitting.
Nov 17, 2016 L.Desorgher (tracking-V10-02-05)
- G4AdjointSteppingAction remove a test on weight with FPE issue.
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4AdjointSteppingAction.hh 81774 2014-06-05 08:36:37Z gcosmo $
// $Id: G4AdjointSteppingAction.hh 102568 2017-02-09 08:37:41Z gcosmo $
//
/////////////////////////////////////////////////////////////////////////////////
// Class Name: G4AdjointSteppingAction
@@ -88,6 +88,8 @@ class G4AdjointSteppingAction : public G4UserSteppingAction
inline void SetUserForwardSteppingAction( G4UserSteppingAction* anAction) {
theUserFwdSteppingAction = anAction;}
inline void SetAdjointTrackingMode(G4bool aBool){is_adjoint_tracking_mode =aBool;}
inline void ResetDidOneAdjPartReachExtSourceDuringEvent()
{did_one_adj_part_reach_ext_source_during_event =false;}
inline void SetAdjointGeantinoTrackingMode(G4bool aBool){is_adjoint_geantino_tracking_mode =aBool;}
private:
@@ -96,6 +98,7 @@ class G4AdjointSteppingAction : public G4UserSteppingAction
G4bool start_event;
G4bool did_adj_part_reach_ext_source;
G4bool did_one_adj_part_reach_ext_source_during_event;
G4ThreeVector last_momentum, last_pos;
G4double last_ekin;
G4double last_weight ;
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4AdjointSteppingAction.cc 101439 2016-11-17 14:54:08Z gcosmo $
// $Id: G4AdjointSteppingAction.cc 102568 2017-02-09 08:37:41Z gcosmo $
//
/////////////////////////////////////////////////////////////////////////////
// Class Name: G4AdjointSteppingAction
@@ -62,8 +62,7 @@ void G4AdjointSteppingAction::UserSteppingAction(const G4Step* aStep)
//G4cout<<"Ste weight "<<<<std:.endl;
//forward tracking mode
if(!is_adjoint_tracking_mode){
//check if last adjoint did reach the external source
if (!did_adj_part_reach_ext_source) {
if (!did_one_adj_part_reach_ext_source_during_event) {
aTrack->SetTrackStatus(fStopAndKill);
return;
}
@@ -116,6 +115,7 @@ void G4AdjointSteppingAction::UserSteppingAction(const G4Step* aStep)
if (surface_name == "ExternalSource") {
//Registering still needed
did_adj_part_reach_ext_source=true;
did_one_adj_part_reach_ext_source_during_event=true;
aTrack->SetTrackStatus(fStopAndKill);
//now register the adjoint particles reaching the external surface
last_momentum =aTrack->GetMomentum();
@@ -135,14 +135,13 @@ void G4AdjointSteppingAction::UserSteppingAction(const G4Step* aStep)
//G4cout<<aStep->GetPostStepPoint()->GetStepStatus()<<std::endl;
if (aStep->GetPostStepPoint()->GetStepStatus() == fWorldBoundary) {
did_adj_part_reach_ext_source=true;
did_one_adj_part_reach_ext_source_during_event=true;
last_momentum =aTrack->GetMomentum();
last_ekin=aTrack->GetKineticEnergy();
last_weight = aTrack->GetWeight();
last_part_def = aTrack->GetDefinition();
last_pos = crossing_pos;
return;
}
}