127 #ifndef G4AdjointSimManager_h
128 #define G4AdjointSimManager_h 1
139 class G4AdjointRunAction;
142 class G4AdjointEventAction;
G4UserStackingAction * fUserStackingAction
void SetAdjointTrackingMode(G4bool aBool)
bool use_user_TrackingAction
bool user_action_already_defined
virtual void EndOfRunAction(const G4Run *aRun)
G4bool adjoint_tracking_mode
G4ThreeVector GetPositionAtEndOfLastAdjointTrack(size_t i=0)
static const G4double Emin
void RunAdjointSimulation(G4int nb_evt)
virtual void BeginOfRunAction(const G4Run *aRun)
void SetAdjointRunAction(G4UserRunAction *anAction)
G4AdjointPrimaryGeneratorAction * theAdjointPrimaryGeneratorAction
static const G4double pos
G4int last_fwd_part_PDGEncoding
std::vector< G4ThreeVector > last_pos_vec
G4VUserPrimaryGeneratorAction * fUserPrimaryGeneratorAction
G4UserSteppingAction * fUserSteppingAction
G4UserRunAction * theAdjointRunAction
void UseUserStackingActionInFwdTrackingPhase(G4bool aBool)
void SetAdjointEventAction(G4UserEventAction *anAction)
std::vector< G4int > ID_of_last_particle_that_reach_the_ext_source_vec
G4UserEventAction * fUserEventAction
G4bool DefineSphericalAdjointSource(G4double radius, G4ThreeVector pos)
size_t GetNbOfAdointTracksReachingTheExternalSurface()
G4AdjointTrackingAction * theAdjointTrackingAction
G4int GetNbEvtOfLastRun()
void UseUserTrackingActionInFwdTrackingPhase(G4bool aBool)
void SetNbOfPrimaryFwdGammasPerEvent(G4int)
G4int GetNormalisationMode()
G4int GetFwdParticlePDGEncodingAtEndOfLastAdjointTrack(size_t i=0)
G4bool DefineExtSourceOnTheExtSurfaceOfAVolume(const G4String &volume_name)
void RegisterAtEndOfAdjointTrack()
G4double GetAdjointSourceArea()
G4String last_fwd_part_name
void SetNbAdjointPrimaryGammasPerEvent(G4int)
G4AdjointSteppingAction * theAdjointSteppingAction
G4int GetIDOfLastAdjParticleReachingExtSource()
G4bool GetDidAdjParticleReachTheExtSource()
void SetPrimaryIon(G4ParticleDefinition *adjointIon, G4ParticleDefinition *fwdIon)
G4UserEventAction * theAdjointEventAction
std::vector< G4int > last_fwd_part_PDGEncoding_vec
std::vector< G4int > last_fwd_part_index_vec
void SetExtSourceEmax(G4double Emax)
void SetNormalisationMode(G4int n)
G4bool DefineSphericalAdjointSourceWithCentreAtTheCentreOfAVolume(G4double radius, const G4String &volume_name)
G4bool DefineSphericalExtSourceWithCentreAtTheCentreOfAVolume(G4double radius, const G4String &volume_name)
G4ThreeVector GetDirectionAtEndOfLastAdjointTrack(size_t i=0)
G4double GetCosthAtEndOfLastAdjointTrack(size_t i=0)
void SetAdjointSourceEmax(G4double Emax)
G4int last_fwd_part_index
std::vector< G4double > last_ekin_nuc_vec
G4UserTrackingAction * fUserTrackingAction
void BackToFwdSimulationMode()
G4bool GetAdjointTrackingMode()
void SetAdjointPrimaryRunAndStackingActions()
G4ThreeVector last_direction
G4bool DefineAdjointSourceOnTheExtSurfaceOfAVolume(const G4String &volume_name)
void ResetUserPrimaryRunAndStackingActions()
void ClearEndOfAdjointTrackInfoVectors()
G4int ID_of_last_particle_that_reach_the_ext_source
std::vector< G4double > last_ekin_vec
void SetAdjointSteppingAction(G4UserSteppingAction *anAction)
void SetNbAdjointPrimaryElectronsPerEvent(G4int)
void ResetDidOneAdjPartReachExtSourceDuringEvent()
G4AdjointSimMessenger * theMessenger
void NeglectParticleAsPrimary(const G4String &particle_name)
static const G4double Emax
G4bool GetAdjointSimMode()
void SwitchToAdjointSimulationMode()
G4double theAdjointPrimaryWeight
const G4String & GetPrimaryIonName()
G4ParticleDefinition * GetLastGeneratedFwdPrimaryParticle()
G4double GetWeightAtEndOfLastAdjointTrack(size_t i=0)
void SetRestOfAdjointActions()
G4int GetFwdParticleIndexAtEndOfLastAdjointTrack(size_t i=0)
static G4ThreadLocal G4AdjointSimManager * instance
bool use_user_StackingAction
void SetAdjointStackingAction(G4UserStackingAction *anAction)
size_t GetNbOfPrimaryFwdParticles()
std::vector< G4double > last_cos_th_vec
static G4AdjointSimManager * GetInstance()
G4double GetNumberNucleonsInIon()
void ConsiderParticleAsPrimary(const G4String &particle_name)
const G4String & GetFwdParticleNameAtEndOfLastAdjointTrack()
G4double GetEkinNucAtEndOfLastAdjointTrack(size_t i=0)
G4bool DefineSphericalExtSource(G4double radius, G4ThreeVector pos)
void SetAdjointSourceEmin(G4double Emin)
std::vector< G4double > last_weight_vec
std::vector< G4ParticleDefinition * > * GetListOfPrimaryFwdParticles()
G4double area_of_the_adjoint_source
G4double GetEkinAtEndOfLastAdjointTrack(size_t i=0)
G4UserRunAction * fUserRunAction
void RegisterAdjointPrimaryWeight(G4double aWeight)
G4AdjointStackingAction * theAdjointStackingAction
void ResetRestOfUserActions()
std::vector< G4ThreeVector > last_direction_vec