Message: Re: changing weight of the primary Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: changing weight of the primary 

Forum: Event and Track Management
Re: Question changing weight of the primary (Alexei Klimenko)
Date: 16 Jan, 2007
From: Jane Tinslay <Jane Tinslay>

Hello Alexi,

It looks like G4ParticleChange has its own ProposeWeight method to change
the parent weight (I'm not sure why it doesn't use the weight set through
G4VParticleChange::ProposeParentWeight).

Perhaps you could try G4ParticleChange::ProposeWeight ? I guess you'd have
to cast from G4VParticleChange to G4ParticleChange if necessary.

Cheers,

Jane


On Fri, 12 Jan 2007, Alexei Klimenko wrote:

> *** Discussion title: Event and Track Management
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/eventtrackmanage/585"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
>
> Greetings,
>
> I am trying to implement survival biasing. In order to do that I need to
> be able to change the weight of the primary particle.
>
> I tried using ProposeParentWeight with no luck. It never actually
> changes the weight for the PostStepPoint.
>
> I started going to deeper into the code.
>
> It looks like Weight of the PostStepPoint should be updated through
> UpdateStepForPostStep in G4VParticleChange.icc. However this function
> never gets called by the SteppingManager. Instead InvokePSDIP function
> from G4SteppingManager.cc calls UpdateStepForPostStep from the concrete
> instance G4ParticleChange.cc.
>
> What am I missing?
>
> Thank you, Alexei
>

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

 Add Message Add Message
to: "Re: changing weight of the primary"

 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 ]