71#ifndef G4AdjointPrimaryGeneratorAction_h
72#define G4AdjointPrimaryGeneratorAction_h 1
111 return ListOfPrimaryAdjParticles.size();
115 return &ListOfPrimaryFwdParticles;
120 nb_fwd_gammas_per_event = nb;
124 nb_adj_primary_gammas_per_event = nb;
128 nb_adj_primary_electrons_per_event = nb;
132 return ListOfPrimaryFwdParticles[index_particle];
154 std::vector<G4ParticleDefinition*> ListOfPrimaryFwdParticles;
155 std::vector<G4ParticleDefinition*> ListOfPrimaryAdjParticles;
156 std::map<G4String, G4bool>
157 PrimariesConsideredInAdjointSim;
160 size_t index_particle;
167 G4int nb_fwd_gammas_per_event;
168 G4int nb_adj_primary_gammas_per_event;
169 G4int nb_adj_primary_electrons_per_event;
void UpdateListOfPrimaryParticles()
void SetRndmFlag(const G4String &val)
void GeneratePrimaries(G4Event *)
void SetNbAdjointPrimaryElectronsPerEvent(G4int nb)
std::vector< G4ParticleDefinition * > * GetListOfPrimaryFwdParticles()
void ConsiderParticleAsPrimary(const G4String &particle_name)
void SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume(const G4String &volume_name)
void SetNbAdjointPrimaryGammasPerEvent(G4int nb)
const G4String & GetPrimaryIonName()
void SetSphericalAdjointPrimarySource(G4double radius, G4ThreeVector pos)
G4ParticleDefinition * GetLastGeneratedFwdPrimaryParticle()
void SetEminIon(G4double val)
void SetNbPrimaryFwdGammasPerEvent(G4int nb)
size_t GetNbOfAdjointPrimaryTypes()
void SetEmin(G4double val)
void NeglectParticleAsPrimary(const G4String &particle_name)
void SetPrimaryIon(G4ParticleDefinition *adjointIon, G4ParticleDefinition *fwdIon)
~G4AdjointPrimaryGeneratorAction()
void SetEmaxIon(G4double val)
void SetEmax(G4double val)
G4AdjointPrimaryGeneratorAction()