Message: Re: SteppingVerbose for specific particle Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: SteppingVerbose for specific particle 

Forum: Event and Track Management
Re: None SteppingVerbose for specific particle
Date: 29 Apr, 2013
From: michel maire <michel maire>

On Mon, 29 Apr 2013 11:19:42 GMT, matt_b wrote:
> I am developing a neutron detector from the LXe example.  I have heavily modified the example for my needs, but I am struggling to figure out how to make the LXESteppingVerbose output only tracks with neutrons in, and not output for photons, alpha, gamma etc.
> 
> With verbose tracking set to 1 for 100 events, I end up with a 4GB file.  I would like to be able to just have a verbose output for steps of just neutrons.  Ideally I want to be able to control this by setting a tracking verbosity level.
> 
> I can't seem to figure out for get the G4SteppingVerbose class to do this.  Are there any examples of this?
> 
> Matt.
> 
 At least, in your local SteppingVerbose, you add in the 2 functions: 
    if (fTrack->GetDefinition() != G4Neutron::Neutron()) return;
 (also #include "G4ParticleTypes.hh") 

 It is not totally satisfactory, as I do not know  to suppress the header of a track ...

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

1 None: Re: SteppingVerbose for specific particle   (matt_b - 29 Apr, 2013)
(_ None: Re: SteppingVerbose for specific particle   (michel maire - 29 Apr, 2013)
(_ Idea: Re: SteppingVerbose for specific particle   (Gumplinger Peter - 29 Apr, 2013)
(_ None: Re: SteppingVerbose for specific particle   (michel maire - 30 Apr, 2013)
(_ More: Re: SteppingVerbose for specific particle   (Gumplinger Peter - 30 Apr, 2013)
(_ None: Re: SteppingVerbose for specific particle   (michel maire - 05 May, 2013)
 Add Message Add Message
to: "Re: SteppingVerbose for specific particle"

 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 ]