Message: Re: Recording species, location, energy, and angular distribution Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Recording species, location, energy, and angular distribution 

Forum: Biasing and Scoring
Re: None Recording species, location, energy, and angular distribution (Peter Mardahl)
Re: None Re: Recording species, location, energy, and angular distribution (Ibrahim)
Re: None Re: Recording species, location, energy, and angular distribution (Peter Mardahl)
Re: None Re: Recording species, location, energy, and angular distribution (michel maire)
Re: None Re: Recording species, location, energy, and angular distribution (Peter Mardahl)
Date: 15 Jun, 2010
From: Peter Mardahl <Peter Mardahl>

The approach I outlined below proved workable, though actually I recorded momentum's components rather than energy and angular distribution. It was most convenient, though perhaps somewhat non-intuitive, to insert the code to accomplish what I wanted into the detector construction.

--PM

On Tue, 01 Jun 2010 18:26:13 GMT, Peter Mardahl wrote:

> Hello,
> 
>   On reviewing the various examples cited and the documentation, what it seems like my most economical route to what I want to do is this:
> 
>   1)  Since I want to record hits on a plane, this is similar to what is done in the provided scorer G4PSFlatSurfaceCurrent.  This scorer only records "current".
>   2)  So, given 1), start from there and inherit to make a new scorer, and over-ride the function G4PSFlatSurfaceCurrent::ProcessHits to do what I want with AIDA, making use of the Step methods:  
> 
>   // difference of position, time, momentum and energy
>    G4ThreeVector GetDeltaPosition() const;
>    G4double GetDeltaTime() const;
> 
>    G4ThreeVector GetDeltaMomentum() const;
>    G4double GetDeltaEnergy() const;
> 
> From which I can get information to make my space/velocity histogram.
> 
> It seems I can get the weight and the particle species from the track
> that is part of the step.
> 
> I have not tried this but it seems workable.
> 
> Thanks for everyone's comments, any comments on this?
> 
> --PM
> 

 Add Message Add Message
to: "Re: Recording species, location, energy, and angular distribution"

 Subscribe Subscribe

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