Message: IonFilter Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question IonFilter 

Keywords: IonFilter
Forum: Hits, Digitization and Pileup
Date: 10 Mar, 2008
From: Kathrin <gester@physik.rwth-aachen.de>

Hello, 

I am trying to create a primitive scorer for ions by using the G4SDParticleFilter. 
I used the a filter for generic ions, but if I shoot C12 ions, the filter does not recognize the C12ions, 
as their name is not Generic Ion but C12[0.0]. If I try to create a filter by 

G4SDParticleFilter* C12IonFilter = new G4SDParticleFilter(filterName = "C12IonFilter", particleName = "C12[0.0]");

I get the error that ions cannot be created in the PreInit State. My problem is that the filter is used 
in my DetectorCunstruction class but the DetectorConstruction has to be done  before I can use the Initialize-method 
in my main programme therefore I am in the PreInit State. 

Is there a way I can create filters for ions?

Thank you for your help

Kathrin

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

 Add Message Add Message
to: "IonFilter"

 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 ]