Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4AdjointSimManager Class Reference

#include <G4AdjointSimManager.hh>

Public Member Functions

void RunAdjointSimulation (G4int nb_evt)
 
G4int GetNbEvtOfLastRun ()
 
void SetAdjointTrackingMode (G4bool aBool)
 
G4bool GetAdjointTrackingMode ()
 
G4bool GetAdjointSimMode ()
 
G4bool GetDidAdjParticleReachTheExtSource ()
 
void RegisterAtEndOfAdjointTrack ()
 
void RegisterAdjointPrimaryWeight (G4double aWeight)
 
G4int GetIDOfLastAdjParticleReachingExtSource ()
 
G4ThreeVector GetPositionAtEndOfLastAdjointTrack ()
 
G4ThreeVector GetDirectionAtEndOfLastAdjointTrack ()
 
G4double GetEkinAtEndOfLastAdjointTrack ()
 
G4double GetEkinNucAtEndOfLastAdjointTrack ()
 
G4double GetWeightAtEndOfLastAdjointTrack ()
 
G4double GetCosthAtEndOfLastAdjointTrack ()
 
const G4StringGetFwdParticleNameAtEndOfLastAdjointTrack ()
 
G4int GetFwdParticlePDGEncodingAtEndOfLastAdjointTrack ()
 
G4int GetFwdParticleIndexAtEndOfLastAdjointTrack ()
 
std::vector< G4ParticleDefinition * > GetListOfPrimaryFwdParticles ()
 
G4bool DefineSphericalExtSource (G4double radius, G4ThreeVector pos)
 
G4bool DefineSphericalExtSourceWithCentreAtTheCentreOfAVolume (G4double radius, const G4String &volume_name)
 
G4bool DefineExtSourceOnTheExtSurfaceOfAVolume (const G4String &volume_name)
 
void SetExtSourceEmax (G4double Emax)
 
G4bool DefineSphericalAdjointSource (G4double radius, G4ThreeVector pos)
 
G4bool DefineSphericalAdjointSourceWithCentreAtTheCentreOfAVolume (G4double radius, const G4String &volume_name)
 
G4bool DefineAdjointSourceOnTheExtSurfaceOfAVolume (const G4String &volume_name)
 
void SetAdjointSourceEmin (G4double Emin)
 
void SetAdjointSourceEmax (G4double Emax)
 
G4double GetAdjointSourceArea ()
 
void ConsiderParticleAsPrimary (const G4String &particle_name)
 
void NeglectParticleAsPrimary (const G4String &particle_name)
 
void SetPrimaryIon (G4ParticleDefinition *adjointIon, G4ParticleDefinition *fwdIon)
 
const G4StringGetPrimaryIonName ()
 
void SetNormalisationMode (G4int n)
 
G4int GetNormalisationMode ()
 
G4double GetNumberNucleonsInIon ()
 
void SetAdjointEventAction (G4UserEventAction *anAction)
 
void SetAdjointSteppingAction (G4UserSteppingAction *anAction)
 
void SetAdjointStackingAction (G4UserStackingAction *anAction)
 
void SetAdjointTrackingAction (G4UserTrackingAction *anAction)
 
void SetAdjointRunAction (G4UserRunAction *anAction)
 
void UseUserStackingActionInFwdTrackingPhase (G4bool aBool)
 

Static Public Member Functions

static G4AdjointSimManagerGetInstance ()
 

Detailed Description

Definition at line 149 of file G4AdjointSimManager.hh.

Member Function Documentation

◆ ConsiderParticleAsPrimary()

void G4AdjointSimManager::ConsiderParticleAsPrimary ( const G4String particle_name)

Definition at line 422 of file G4AdjointSimManager.cc.

423{
424 theAdjointPrimaryGeneratorAction->ConsiderParticleAsPrimary(particle_name);
425}
void ConsiderParticleAsPrimary(const G4String &particle_name)

Referenced by G4AdjointSimMessenger::SetNewValue().

◆ DefineAdjointSourceOnTheExtSurfaceOfAVolume()

G4bool G4AdjointSimManager::DefineAdjointSourceOnTheExtSurfaceOfAVolume ( const G4String volume_name)

Definition at line 398 of file G4AdjointSimManager.cc.

399{
400 G4double area;
401 G4bool aBool = G4AdjointCrossSurfChecker::GetInstance()->AddanExtSurfaceOfAvolume( "AdjointSource", volume_name,area);
402 area_of_the_adjoint_source=area;
403 if (aBool) {
404 theAdjointPrimaryGeneratorAction->SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume(volume_name);
405 }
406 return aBool;
407}
double G4double
Definition: G4Types.hh:64
bool G4bool
Definition: G4Types.hh:67
G4bool AddanExtSurfaceOfAvolume(const G4String &SurfaceName, const G4String &volume_name, G4double &area)
static G4AdjointCrossSurfChecker * GetInstance()
void SetAdjointPrimarySourceOnAnExtSurfaceOfAVolume(const G4String &volume_name)

Referenced by G4AdjointSimMessenger::SetNewValue().

◆ DefineExtSourceOnTheExtSurfaceOfAVolume()

G4bool G4AdjointSimManager::DefineExtSourceOnTheExtSurfaceOfAVolume ( const G4String volume_name)

Definition at line 364 of file G4AdjointSimManager.cc.

365{
366 G4double area;
367 return G4AdjointCrossSurfChecker::GetInstance()->AddanExtSurfaceOfAvolume( "ExternalSource", volume_name,area);
368}

Referenced by G4AdjointSimMessenger::SetNewValue().

◆ DefineSphericalAdjointSource()

G4bool G4AdjointSimManager::DefineSphericalAdjointSource ( G4double  radius,
G4ThreeVector  pos 
)

Definition at line 377 of file G4AdjointSimManager.cc.

378{
379 G4double area;
380 G4bool aBool = G4AdjointCrossSurfChecker::GetInstance()->AddaSphericalSurface("AdjointSource", radius, pos, area);
381 theAdjointPrimaryGeneratorAction->SetSphericalAdjointPrimarySource(radius, pos);
382 area_of_the_adjoint_source=area;
383 return aBool;
384}
G4bool AddaSphericalSurface(const G4String &SurfaceName, G4double radius, G4ThreeVector pos, G4double &area)
void SetSphericalAdjointPrimarySource(G4double radius, G4ThreeVector pos)

Referenced by G4AdjointSimMessenger::SetNewValue().

◆ DefineSphericalAdjointSourceWithCentreAtTheCentreOfAVolume()

G4bool G4AdjointSimManager::DefineSphericalAdjointSourceWithCentreAtTheCentreOfAVolume ( G4double  radius,
const G4String volume_name 
)

Definition at line 387 of file G4AdjointSimManager.cc.

388{
389 G4double area;
390 G4ThreeVector center;
391 G4bool aBool = G4AdjointCrossSurfChecker::GetInstance()->AddaSphericalSurfaceWithCenterAtTheCenterOfAVolume( "AdjointSource", radius, volume_name,center, area);
392 theAdjointPrimaryGeneratorAction->SetSphericalAdjointPrimarySource(radius, center);
393 area_of_the_adjoint_source=area;
394 return aBool;
395}
G4bool AddaSphericalSurfaceWithCenterAtTheCenterOfAVolume(const G4String &SurfaceName, G4double radius, const G4String &volume_name, G4ThreeVector &center, G4double &area)

Referenced by G4AdjointSimMessenger::SetNewValue().

◆ DefineSphericalExtSource()

G4bool G4AdjointSimManager::DefineSphericalExtSource ( G4double  radius,
G4ThreeVector  pos 
)

Definition at line 349 of file G4AdjointSimManager.cc.

350{
351 G4double area;
352 return G4AdjointCrossSurfChecker::GetInstance()->AddaSphericalSurface("ExternalSource", radius, pos, area);
353}

Referenced by G4AdjointSimMessenger::SetNewValue().

◆ DefineSphericalExtSourceWithCentreAtTheCentreOfAVolume()

G4bool G4AdjointSimManager::DefineSphericalExtSourceWithCentreAtTheCentreOfAVolume ( G4double  radius,
const G4String volume_name 
)

Definition at line 356 of file G4AdjointSimManager.cc.

357{
358 G4double area;
359 G4ThreeVector center;
360 return G4AdjointCrossSurfChecker::GetInstance()->AddaSphericalSurfaceWithCenterAtTheCenterOfAVolume( "ExternalSource", radius, volume_name,center, area);
361}

Referenced by G4AdjointSimMessenger::SetNewValue().

◆ GetAdjointSimMode()

G4bool G4AdjointSimManager::GetAdjointSimMode ( )
inline

Definition at line 163 of file G4AdjointSimManager.hh.

163{return adjoint_sim_mode;} //true if an adjoint simulation is running

◆ GetAdjointSourceArea()

G4double G4AdjointSimManager::GetAdjointSourceArea ( )
inline

Definition at line 195 of file G4AdjointSimManager.hh.

195{return area_of_the_adjoint_source;}

Referenced by G4AdjointPrimaryGeneratorAction::GeneratePrimaries().

◆ GetAdjointTrackingMode()

G4bool G4AdjointSimManager::GetAdjointTrackingMode ( )
inline

Definition at line 162 of file G4AdjointSimManager.hh.

162{return adjoint_tracking_mode;} //true if an adjoint track is being processed

◆ GetCosthAtEndOfLastAdjointTrack()

G4double G4AdjointSimManager::GetCosthAtEndOfLastAdjointTrack ( )
inline

Definition at line 175 of file G4AdjointSimManager.hh.

175{return last_cos_th;}

◆ GetDidAdjParticleReachTheExtSource()

G4bool G4AdjointSimManager::GetDidAdjParticleReachTheExtSource ( )

Definition at line 277 of file G4AdjointSimManager.cc.

278{
279 return theAdjointSteppingAction->GetDidAdjParticleReachTheExtSource();
280}

Referenced by SetAdjointTrackingMode().

◆ GetDirectionAtEndOfLastAdjointTrack()

G4ThreeVector G4AdjointSimManager::GetDirectionAtEndOfLastAdjointTrack ( )
inline

Definition at line 171 of file G4AdjointSimManager.hh.

171{ return last_direction;}

◆ GetEkinAtEndOfLastAdjointTrack()

G4double G4AdjointSimManager::GetEkinAtEndOfLastAdjointTrack ( )
inline

Definition at line 172 of file G4AdjointSimManager.hh.

172{ return last_ekin;}

◆ GetEkinNucAtEndOfLastAdjointTrack()

G4double G4AdjointSimManager::GetEkinNucAtEndOfLastAdjointTrack ( )
inline

Definition at line 173 of file G4AdjointSimManager.hh.

173{ return last_ekin_nuc;}

◆ GetFwdParticleIndexAtEndOfLastAdjointTrack()

G4int G4AdjointSimManager::GetFwdParticleIndexAtEndOfLastAdjointTrack ( )
inline

Definition at line 178 of file G4AdjointSimManager.hh.

178{return last_fwd_part_index;}

◆ GetFwdParticleNameAtEndOfLastAdjointTrack()

const G4String & G4AdjointSimManager::GetFwdParticleNameAtEndOfLastAdjointTrack ( )
inline

Definition at line 176 of file G4AdjointSimManager.hh.

176{return last_fwd_part_name;}

◆ GetFwdParticlePDGEncodingAtEndOfLastAdjointTrack()

G4int G4AdjointSimManager::GetFwdParticlePDGEncodingAtEndOfLastAdjointTrack ( )
inline

Definition at line 177 of file G4AdjointSimManager.hh.

177{return last_fwd_part_PDGEncoding;}

◆ GetIDOfLastAdjParticleReachingExtSource()

G4int G4AdjointSimManager::GetIDOfLastAdjParticleReachingExtSource ( )
inline

Definition at line 169 of file G4AdjointSimManager.hh.

169{return ID_of_last_particle_that_reach_the_ext_source;};

◆ GetInstance()

G4AdjointSimManager * G4AdjointSimManager::GetInstance ( )
static

Definition at line 116 of file G4AdjointSimManager.cc.

117{
118 if (instance == 0) instance = new G4AdjointSimManager;
119 return instance;
120}

Referenced by G4AdjointPrimaryGeneratorAction::GeneratePrimaries().

◆ GetListOfPrimaryFwdParticles()

std::vector< G4ParticleDefinition * > G4AdjointSimManager::GetListOfPrimaryFwdParticles ( )

Definition at line 283 of file G4AdjointSimManager.cc.

284{
285 return theAdjointPrimaryGeneratorAction->GetListOfPrimaryFwdParticles();
286}
std::vector< G4ParticleDefinition * > GetListOfPrimaryFwdParticles()

◆ GetNbEvtOfLastRun()

G4int G4AdjointSimManager::GetNbEvtOfLastRun ( )
inline

Definition at line 159 of file G4AdjointSimManager.hh.

159{return nb_evt_of_last_run;}

◆ GetNormalisationMode()

G4int G4AdjointSimManager::GetNormalisationMode ( )
inline

Definition at line 202 of file G4AdjointSimManager.hh.

202{return normalisation_mode;};

◆ GetNumberNucleonsInIon()

G4double G4AdjointSimManager::GetNumberNucleonsInIon ( )
inline

Definition at line 203 of file G4AdjointSimManager.hh.

203{return nb_nuc;};

◆ GetPositionAtEndOfLastAdjointTrack()

G4ThreeVector G4AdjointSimManager::GetPositionAtEndOfLastAdjointTrack ( )
inline

Definition at line 170 of file G4AdjointSimManager.hh.

170{ return last_pos;}

◆ GetPrimaryIonName()

const G4String & G4AdjointSimManager::GetPrimaryIonName ( )

Definition at line 447 of file G4AdjointSimManager.cc.

448{
449 return theAdjointPrimaryGeneratorAction->GetPrimaryIonName();
450}

◆ GetWeightAtEndOfLastAdjointTrack()

G4double G4AdjointSimManager::GetWeightAtEndOfLastAdjointTrack ( )
inline

Definition at line 174 of file G4AdjointSimManager.hh.

174{return last_weight;}

◆ NeglectParticleAsPrimary()

void G4AdjointSimManager::NeglectParticleAsPrimary ( const G4String particle_name)

Definition at line 428 of file G4AdjointSimManager.cc.

429{
430 theAdjointPrimaryGeneratorAction->NeglectParticleAsPrimary(particle_name);
431}
void NeglectParticleAsPrimary(const G4String &particle_name)

Referenced by G4AdjointSimMessenger::SetNewValue().

◆ RegisterAdjointPrimaryWeight()

void G4AdjointSimManager::RegisterAdjointPrimaryWeight ( G4double  aWeight)

Definition at line 453 of file G4AdjointSimManager.cc.

454{
455 theAdjointPrimaryWeight = aWeight;
456 theAdjointSteppingAction->SetPrimWeight(aWeight);
457}
void SetPrimWeight(G4double weight)

Referenced by G4AdjointPrimaryGeneratorAction::GeneratePrimaries().

◆ RegisterAtEndOfAdjointTrack()

void G4AdjointSimManager::RegisterAtEndOfAdjointTrack ( )

Definition at line 289 of file G4AdjointSimManager.cc.

290{
291 last_pos = theAdjointSteppingAction->GetLastPosition();
292 last_direction = theAdjointSteppingAction->GetLastMomentum();
293 last_direction /=last_direction.mag();
294 last_cos_th = last_direction.z();
295 G4ParticleDefinition* aPartDef= theAdjointSteppingAction->GetLastPartDef();
296
297 last_fwd_part_name= aPartDef->GetParticleName();
298
299 last_fwd_part_name.remove(0,4);
300
301 last_fwd_part_PDGEncoding=G4ParticleTable::GetParticleTable()->FindParticle(last_fwd_part_name)->GetPDGEncoding();
302
303 std::vector<G4ParticleDefinition*> aList = theAdjointPrimaryGeneratorAction->GetListOfPrimaryFwdParticles();
304 last_fwd_part_index=-1;
305 size_t i=0;
306 while(i<aList.size() && last_fwd_part_index<0) {
307 if (aList[i]->GetParticleName() == last_fwd_part_name) last_fwd_part_index=i;
308 i++;
309 }
310
311 last_ekin = theAdjointSteppingAction->GetLastEkin();
312 last_ekin_nuc = last_ekin;
313 if (aPartDef->GetParticleType() == "adjoint_nucleus") {
314 nb_nuc=double(aPartDef->GetBaryonNumber());
315 last_ekin_nuc /=nb_nuc;
316 }
317
318 last_weight = theAdjointSteppingAction->GetLastWeight();
319
320 /* G4PhysicsLogVector* theWeightVector=0;
321 if (last_fwd_part_name =="e-") theWeightVector=electron_last_weight_vector;
322 else if (last_fwd_part_name =="gamma") theWeightVector=gamma_last_weight_vector;
323 else if (last_fwd_part_name =="proton") theWeightVector=proton_last_weight_vector;
324
325 if (theWeightVector){
326
327 size_t ind = size_t(std::log10(last_weight/theAdjointPrimaryWeight)*10. + 200);
328 G4double low_val =theWeightVector->GetLowEdgeEnergy(ind);
329 G4bool aBool = true;
330 G4double bin_weight = theWeightVector->GetValue(low_val, aBool)+1.;
331 theWeightVector->PutValue(ind, bin_weight);
332 }
333 */
334 /*if ((last_weight/theAdjointPrimaryWeight)>1.) last_weight*=1000. ;
335 else if ( (last_weight/theAdjointPrimaryWeight)>0.1) last_weight*=100. ;
336 else if ( (last_weight/theAdjointPrimaryWeight)>0.01) last_weight*=10. ;*/
337
338
339 //G4cout <<"Last Weight "<<last_weight<<'\t'<<theAdjointPrimaryWeight<<'\t'<<last_weight/theAdjointPrimaryWeight<<std::endl;
340 /*if (last_weight/theAdjointPrimaryWeight >10.) {
341 G4cout<<"Warning a weight increase by a factor : "<<last_weight/theAdjointPrimaryWeight<<std::endl;
342 }
343 */
344
345 ID_of_last_particle_that_reach_the_ext_source++;
346}
double z() const
double mag() const
G4ParticleDefinition * GetLastPartDef()
const G4String & GetParticleType() const
const G4String & GetParticleName() const
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
G4String & remove(str_size)

Referenced by SetAdjointTrackingMode().

◆ RunAdjointSimulation()

void G4AdjointSimManager::RunAdjointSimulation ( G4int  nb_evt)

Definition at line 123 of file G4AdjointSimManager.cc.

124{
125 if (welcome_message) {
126 G4cout<<"****************************************************************"<<std::endl;
127 G4cout<<"*** Geant4 Reverse/Adjoint Monte Carlo mode ***"<<std::endl;
128 G4cout<<"*** Author: L.Desorgher ***"<<std::endl;
129 G4cout<<"*** Company: SpaceIT GmbH, Bern, Switzerland ***"<<std::endl;
130 G4cout<<"*** Sponsored by: ESA/ESTEC contract contract 21435/08/NL/AT ***"<<std::endl;
131 G4cout<<"****************************************************************"<<std::endl;
132 welcome_message=false;
133 }
134
135 //Replace the user defined actions by the adjoint actions
136 //---------------------------------------------------------
137 SetAdjointPrimaryRunAndStackingActions();
138 SetRestOfAdjointActions();
139
140 //Update the list of primaries
141 //-----------------------------
142 theAdjointPrimaryGeneratorAction->UpdateListOfPrimaryParticles();
143
144 adjoint_sim_mode=true;
145
146 ID_of_last_particle_that_reach_the_ext_source=0;
147
148 //Make the run
149 //------------
150
151 nb_evt_of_last_run =nb_evt;
152 G4RunManager::GetRunManager()->BeamOn(theAdjointPrimaryGeneratorAction->GetNbOfAdjointPrimaryTypes()*2*nb_evt);
153
154 //Restore the user defined actions
155 //--------------------------------
156 ResetRestOfUserActions();
157 ResetUserPrimaryRunAndStackingActions();
158 adjoint_sim_mode=false;
159
160 /*
161 //Register the weight vector
162 //--------------------------
163 std::ofstream FileOutputElectronWeight("ElectronWeight.txt", std::ios::out);
164 FileOutputElectronWeight<<std::setiosflags(std::ios::scientific);
165 FileOutputElectronWeight<<std::setprecision(6);
166 G4bool aBool = electron_last_weight_vector->Store(FileOutputElectronWeight, true);
167 FileOutputElectronWeight.close();
168
169 std::ofstream FileOutputProtonWeight("ProtonWeight.txt", std::ios::out);
170 FileOutputProtonWeight<<std::setiosflags(std::ios::scientific);
171 FileOutputProtonWeight<<std::setprecision(6);
172 aBool = proton_last_weight_vector->Store(FileOutputProtonWeight, true);
173 FileOutputProtonWeight.close();
174
175 std::ofstream FileOutputGammaWeight("GammaWeight.txt", std::ios::out);
176 FileOutputGammaWeight<<std::setiosflags(std::ios::scientific);
177 FileOutputGammaWeight<<std::setprecision(6);
178 aBool = gamma_last_weight_vector->Store(FileOutputGammaWeight, true);
179 FileOutputGammaWeight.close();
180 */
181}
G4DLLIMPORT std::ostream G4cout
virtual void BeamOn(G4int n_event, const char *macroFile=0, G4int n_select=-1)
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:62

Referenced by G4AdjointSimMessenger::SetNewValue().

◆ SetAdjointEventAction()

void G4AdjointSimManager::SetAdjointEventAction ( G4UserEventAction anAction)

Definition at line 461 of file G4AdjointSimManager.cc.

462{
463 theAdjointEventAction = anAction;
464}

◆ SetAdjointRunAction()

void G4AdjointSimManager::SetAdjointRunAction ( G4UserRunAction anAction)

Definition at line 485 of file G4AdjointSimManager.cc.

486{
487 theAdjointRunAction=anAction;
488}

◆ SetAdjointSourceEmax()

void G4AdjointSimManager::SetAdjointSourceEmax ( G4double  Emax)

Definition at line 416 of file G4AdjointSimManager.cc.

417{
418 theAdjointPrimaryGeneratorAction->SetEmax(Emax);
419}

Referenced by G4AdjointSimMessenger::SetNewValue().

◆ SetAdjointSourceEmin()

void G4AdjointSimManager::SetAdjointSourceEmin ( G4double  Emin)

Definition at line 410 of file G4AdjointSimManager.cc.

411{
412 theAdjointPrimaryGeneratorAction->SetEmin(Emin);
413}

Referenced by G4AdjointSimMessenger::SetNewValue().

◆ SetAdjointStackingAction()

void G4AdjointSimManager::SetAdjointStackingAction ( G4UserStackingAction anAction)

Definition at line 473 of file G4AdjointSimManager.cc.

474{
475 theAdjointStackingAction->SetUserAdjointStackingAction(anAction);
476}
void SetUserAdjointStackingAction(G4UserStackingAction *anAction)

◆ SetAdjointSteppingAction()

void G4AdjointSimManager::SetAdjointSteppingAction ( G4UserSteppingAction anAction)

Definition at line 467 of file G4AdjointSimManager.cc.

468{
469 theAdjointSteppingAction->SetUserAdjointSteppingAction(anAction);
470}
void SetUserAdjointSteppingAction(G4UserSteppingAction *anAction)

◆ SetAdjointTrackingAction()

void G4AdjointSimManager::SetAdjointTrackingAction ( G4UserTrackingAction anAction)

Definition at line 479 of file G4AdjointSimManager.cc.

480{
481 theAdjointTrackingAction=anAction;
482}

◆ SetAdjointTrackingMode()

void G4AdjointSimManager::SetAdjointTrackingMode ( G4bool  aBool)

Definition at line 254 of file G4AdjointSimManager.cc.

255{
256 adjoint_tracking_mode = aBool;
257
258 if (adjoint_tracking_mode) {
259 SetRestOfAdjointActions();
260 theAdjointStackingAction->SetAdjointMode(true);
261 theAdjointStackingAction->SetKillTracks(false);
262
263 }
264 else {
265
266 ResetRestOfUserActions();
267 theAdjointStackingAction->SetAdjointMode(false);
269 theAdjointStackingAction->SetKillTracks(false);
271 }
272 else theAdjointStackingAction->SetKillTracks(true);
273 }
274}
G4bool GetDidAdjParticleReachTheExtSource()

Referenced by G4AdjointPrimaryGeneratorAction::GeneratePrimaries().

◆ SetExtSourceEmax()

void G4AdjointSimManager::SetExtSourceEmax ( G4double  Emax)

Definition at line 371 of file G4AdjointSimManager.cc.

372{
373 theAdjointSteppingAction->SetExtSourceEMax(Emax);
374}
void SetExtSourceEMax(G4double Emax)

Referenced by G4AdjointSimMessenger::SetNewValue().

◆ SetNormalisationMode()

void G4AdjointSimManager::SetNormalisationMode ( G4int  n)
inline

Definition at line 201 of file G4AdjointSimManager.hh.

201{normalisation_mode=n;};

◆ SetPrimaryIon()

void G4AdjointSimManager::SetPrimaryIon ( G4ParticleDefinition adjointIon,
G4ParticleDefinition fwdIon 
)

Definition at line 441 of file G4AdjointSimManager.cc.

442{
443 theAdjointPrimaryGeneratorAction->SetPrimaryIon(adjointIon, fwdIon);
444}
void SetPrimaryIon(G4ParticleDefinition *adjointIon, G4ParticleDefinition *fwdIon)

◆ UseUserStackingActionInFwdTrackingPhase()

void G4AdjointSimManager::UseUserStackingActionInFwdTrackingPhase ( G4bool  aBool)
inline

Definition at line 215 of file G4AdjointSimManager.hh.

215{use_user_StackingAction=aBool;}

The documentation for this class was generated from the following files: