45 :theAdjointSteppingAction(anAction),theUserFwdTrackingAction(0)
56 is_adjoint_tracking_mode =
true;
60 is_adjoint_tracking_mode =
false;
61 if (theUserFwdTrackingAction)
68 {
if(!is_adjoint_tracking_mode){
69 if (theUserFwdTrackingAction)
75 last_direction /=last_direction.
mag();
76 last_cos_th = last_direction.
z();
79 last_fwd_part_name.
remove(0,4);
82 last_ekin = theAdjointSteppingAction->
GetLastEkin();
83 last_ekin_nuc = last_ekin;
86 last_ekin_nuc /=nb_nuc;
G4ThreeVector GetLastPosition()
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
void SetAdjointTrackingMode(G4bool aBool)
G4String & remove(str_size)
const G4DynamicParticle * GetDynamicParticle() const
G4int GetPDGEncoding() const
G4AdjointTrackingAction(G4AdjointSteppingAction *anAction)
G4bool GetDidAdjParticleReachTheExtSource()
const G4String & GetParticleName() const
virtual void PreUserTrackingAction(const G4Track *)
const G4ParticleDefinition * GetParticleDefinition() const
const G4String & GetParticleType() const
G4PrimaryParticle * GetPrimaryParticle() const
void SetPrimWeight(G4double weight)
G4ParticleDefinition * GetLastPartDef()
G4bool contains(const std::string &) const
static G4ParticleTable * GetParticleTable()
virtual void PostUserTrackingAction(const G4Track *)
G4double GetWeight() const
virtual void PostUserTrackingAction(const G4Track *)
G4ThreeVector GetLastMomentum()
virtual void PreUserTrackingAction(const G4Track *)
virtual ~G4AdjointTrackingAction()
G4int GetBaryonNumber() const