Message: Why should we keep run condition? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Why should we keep run condition? 

Forum: Run Management
Date: 07 Jan, 2017
From: Huagang Yan <Huagang Yan>

In RunAction of TestEm1, there are following codes. I wonder under which conditions we should use the codes to keep run condition, or under which situations the run condition will be lost?

Thanks in advance. Huagang

void RunAction::BeginOfRunAction(const G4Run*)
  // save Rndm status
  if (isMaster)  G4Random::showEngineStatus();

  // keep run condition
  if ( fPrimary ) { 
    G4ParticleDefinition* particle 
      = fPrimary->GetParticleGun()->GetParticleDefinition();
    G4double energy = fPrimary->GetParticleGun()->GetParticleEnergy();
    fRun->SetPrimary(particle, energy);

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Idea: Re: Why should we keep run condition?   (Vladimir Ivanchenko - 26 Jan, 2017)
 Add Message Add Message
to: "Why should we keep run condition?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]