Message: adding an ion to the particle filter in G4SDParticleFilter::add() Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question adding an ion to the particle filter in G4SDParticleFilter::add() 

Forum: Biasing and Scoring
Date: 30 Nov, 2009
From: Cristian Bungau <Cristian Bungau>

Hi,

I would like to count the number of ions in a particular region of the detector, and I am trying to use the available scoring methods.

Now, in G4SDParticleFilter, there is this condition:

   G4ParticleDefinition* pd = G4ParticleTable::GetParticleTable()->FindParticle(particleNames[i]);
   if(!pd)
   {
     G4String msg = "Particle <";
     msg += particleNames[i];
     msg += "> not found.";
     G4Exception("G4SDParticleFilter::G4SDParticleFilter()",
                "DetUtil0000",FatalException,msg);
   }

and obviously a "particle" name like Th232[0.0] will result in an error message.

Could you please let me know what would be the best way of counting ions/isotopes? Would it be to write a new G4SDIonFilter class?

Thank you,

Cristian

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

1 None: Re: adding an ion to the particle filter in G4SDParticleFilter::add()   (Tsukasa Aso - 11 Dec, 2009)
(_ Ok: Re: adding an ion to the particle filter in G4SDParticleFilter::add()   (Cristian Bungau - 11 Dec, 2009)
 Add Message Add Message
to: "adding an ion to the particle filter in G4SDParticleFilter::add()"

 Subscribe Subscribe

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