Message: scoring secondary heavy ions Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question scoring secondary heavy ions 

Forum: Biasing and Scoring
Date: 22 Mar, 2013
From: Kevin Lyons <Kevin Lyons>

Hi,

Sorry in advance if I'm missing something very basic- I am trying to use G4PSNofSecondary to count heavy ions created in a run. For example, for F-20 I am using the code

...

G4SDParticleFilter* F20Filter = new G4SDParticleFilter(filterName="F20Filter",particleName="F20[0.0]");

G4MultiFunctionalDetector* det = new G4MultiFunctionalDetector(detName="F20Detector");

G4VPrimitiveScorer* primitive;

primitive = new G4PSNofSecondary("nF20"); primitive->SetFilter(F20Filter);

det->RegisterPrimitive(primitive);

...

Everything compiles fine, but when I run the code I get the error message:
*** G4Exception : DetPS0101
      issued by : G4SDParticleFilter::G4SDParticleFilter
Particle <F20[0.0]> not found.

In the ConstructParticle() section of my physics list I used the line of code:

... G4ParticleDefinition* f20 = particleTable->GetIon(9,20,0); ...

which I thought should register the particle. Perhaps I am doing this step wrong?

Many thanks, Kevin

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

1 None: Re: scoring secondary heavy ions   (Tsukasa Aso - 24 Mar, 2013)
(_ None: Re: scoring secondary heavy ions   (Kevin Lyons - 24 Mar, 2013)
 Add Message Add Message
to: "scoring secondary heavy ions"

 Subscribe Subscribe

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