Message: Re: Easy way to suppress G4ParticleGun messages on event-by-event changes? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Easy way to suppress G4ParticleGun messages on event-by-event changes? 

Forum: Event and Track Management
Re: Question Easy way to suppress G4ParticleGun messages on event-by-event changes? (Michael H. Kelsey)
Re: Feedback Re: Easy way to suppress G4ParticleGun messages on event-by-event changes? (Gumplinger Peter)
Re: None Re: Easy way to suppress G4ParticleGun messages on event-by-event changes? (Michael H. Kelsey)
Date: 03 Dec, 2011
From: <tntakahashi>

#include <G4strstreambuf.hh>
	:

G4strstreambuf* oldBuffer = dynamic_cast<G4strstreambuf*>(G4cout.rdbuf(0));

particleGun->SetParticleEnergy(energy); 
particleGun->SetParticleMomentum(momentum); 
	:

G4cout.rdbuf(oldBuffer);

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

1 None: Re: Easy way to suppress G4ParticleGun messages on event-by-event changes?   (Mike Kelsey - 04 Dec, 2011)
 Add Message Add Message
to: "Re: Easy way to suppress G4ParticleGun messages on event-by-event changes?"

 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 ]