Message: Re: Defining initial track weight Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Defining initial track weight 

Forum: Event and Track Management
Re: None Defining initial track weight (Vlasios Vasileiou)
Date: 19 Apr, 2005
From: Vladimir IVANTCHENKO <vnivanch@mail.cern.ch>

On Tue, 19 Apr 2005, Vlasios Vasileiou wrote:

> *** Discussion title: Event and Track Management
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/eventtrackmanage/311"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
> 
> Hi,
> 
> In my sim I want to kill half of the optical photons on generation and
> then set the weight of the survivors to 2.
> 
> I tried to do it with stacking or tracking action but the G4Track used
> there is a const.
> 
> I suppose I can do it from my stepping action for the first step but
> this is not efficient since I don't want to have the same if (step=0)
> code executed for every step of the millions of particles.
> 
> Isn't there a way to set the weight of the track from outside the
> stepping action? I suppose I can use my own modified physics code but
> this is not the optimal solution either.
> 
> Thanks, Vlasios Vasileiou
> 

Hello,

In user actions one has always const G4Track and G4Step. One can change 
something only in Physics Process, also weight can be changed.

VI

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

1 Question: Re: Defining initial track weight   (Vlasios Vasileiou - 25 Apr, 2005)
(_ None: Re: Defining initial track weight   (Vlasios Vasileiou - 03 May, 2005)
(_ Idea: Re: Defining initial track weight   (Peter Gumplinger - 03 May, 2005)
 Add Message Add Message
to: "Re: Defining initial track weight"

 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 ]