Message: Weight of G4PrimaryVertex and G4PrimaryParticle Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Weight of G4PrimaryVertex and G4PrimaryParticle 

Forum: Particles
Date: 04 Aug, 2008
From: Niklas <Niklas>

Dear all,

I am working on incorporating variance reduction into a Geant4 program. More specifically, I would like to assign a weight to a particle at the very beginning (and adjusting the weight depending on the initial direction).

What is the difference between

G4PrimaryVertex* vert; vert->SetWeight(w1);


G4PrimaryParticle* part; part->SetWeight(w2);


And more specifically:

- Are both weights independent? Or does this result in a weight of w=w1*w2?

- Is the weight "transported", i.e. is it being accounted for during calculation of deposited energy?

Thank you!


BTW: A very similar question was already asked in 2004 but nobody replied.

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

1 Question: Re: Weight of G4PrimaryVertex and G4PrimaryParticle   (Niklas - 04 Aug, 2008)
 Add Message Add Message
to: "Weight of G4PrimaryVertex and G4PrimaryParticle"

 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 ]