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

None Re: Stacking 

Forum: Event and Track Management
Re: Question Stacking (Christian Bongardo)
Date: 14 Jun, 2004
From: Makoto Asai <Makoto Asai>

>  if (aTrack->GetDefinition()->GetParticleName() != "alpha" ||
>       aTrack->GetDefinition()->GetParticleName() != "triton" ||
>       aTrack->GetDefinition()->GetParticleName() != "deuteron" && 
>       aTrack->GetKineticEnergy()/GeV > 10.*nucleon) {

Here, logic in the IF statement is incorrect.
Every particle gives true.

Also, I would suggest to examine the pointer instead of particle
name for better performance.

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

1 Sad: Re: Stacking   (Christian Bongardo - 15 Jun, 2004)
 Add Message Add Message
to: "Re: Stacking"

 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 ]