127 #ifndef G4AdjointSimManager_h
128 #define G4AdjointSimManager_h 1
139 class G4AdjointRunAction;
142 class G4AdjointEventAction;
236 void SetRestOfAdjointActions();
237 void SetAdjointPrimaryRunAndStackingActions();
238 void SetAdjointActions();
239 void ResetRestOfUserActions();
240 void ResetUserPrimaryRunAndStackingActions();
241 void ResetUserActions();
242 void DefineUserActions();
260 bool user_action_already_defined;
267 bool use_user_StackingAction;
280 G4bool adjoint_tracking_mode;
290 G4int last_fwd_part_PDGEncoding;
291 G4int last_fwd_part_index;
293 G4int ID_of_last_particle_that_reach_the_ext_source;
295 G4int nb_evt_of_last_run;
296 G4int normalisation_mode;
300 G4double area_of_the_adjoint_source;
static G4AdjointSimManager * GetInstance()
size_t GetNbOfPrimaryFwdParticles()
G4bool GetDidAdjParticleReachTheExtSource()
G4int GetIDOfLastAdjParticleReachingExtSource()
void SetAdjointSourceEmax(G4double Emax)
void SetAdjointStackingAction(G4UserStackingAction *anAction)
void SwitchToAdjointSimulationMode()
G4bool GetAdjointSimMode()
G4int GetFwdParticlePDGEncodingAtEndOfLastAdjointTrack()
G4bool DefineSphericalAdjointSourceWithCentreAtTheCentreOfAVolume(G4double radius, const G4String &volume_name)
G4bool DefineSphericalAdjointSource(G4double radius, G4ThreeVector pos)
G4int GetNormalisationMode()
virtual void EndOfRunAction(const G4Run *aRun)
void SetAdjointSourceEmin(G4double Emin)
G4int GetNbEvtOfLastRun()
G4double GetEkinAtEndOfLastAdjointTrack()
void SetAdjointTrackingMode(G4bool aBool)
virtual void BeginOfRunAction(const G4Run *aRun)
G4bool DefineAdjointSourceOnTheExtSurfaceOfAVolume(const G4String &volume_name)
void RunAdjointSimulation(G4int nb_evt)
G4double GetCosthAtEndOfLastAdjointTrack()
G4bool DefineSphericalExtSourceWithCentreAtTheCentreOfAVolume(G4double radius, const G4String &volume_name)
const G4String & GetFwdParticleNameAtEndOfLastAdjointTrack()
void SetPrimaryIon(G4ParticleDefinition *adjointIon, G4ParticleDefinition *fwdIon)
const G4String & GetPrimaryIonName()
G4ThreeVector GetDirectionAtEndOfLastAdjointTrack()
G4bool DefineSphericalExtSource(G4double radius, G4ThreeVector pos)
void BackToFwdSimulationMode()
void SetAdjointRunAction(G4UserRunAction *anAction)
G4bool GetAdjointTrackingMode()
void SetAdjointEventAction(G4UserEventAction *anAction)
G4double GetEkinNucAtEndOfLastAdjointTrack()
void ConsiderParticleAsPrimary(const G4String &particle_name)
G4double GetNumberNucleonsInIon()
G4double GetWeightAtEndOfLastAdjointTrack()
void SetNormalisationMode(G4int n)
void RegisterAdjointPrimaryWeight(G4double aWeight)
G4bool DefineExtSourceOnTheExtSurfaceOfAVolume(const G4String &volume_name)
G4double GetAdjointSourceArea()
void UseUserStackingActionInFwdTrackingPhase(G4bool aBool)
G4ThreeVector GetPositionAtEndOfLastAdjointTrack()
void SetExtSourceEmax(G4double Emax)
void RegisterAtEndOfAdjointTrack()
void SetAdjointSteppingAction(G4UserSteppingAction *anAction)
G4int GetFwdParticleIndexAtEndOfLastAdjointTrack()
void NeglectParticleAsPrimary(const G4String &particle_name)
std::vector< G4ParticleDefinition * > GetListOfPrimaryFwdParticles()