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