Message: triggering hadronic Inelastic interactions inside ModelTrigger Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None triggering hadronic Inelastic interactions inside ModelTrigger 

Forum: Fast Simulation, Transportation & Others
Date: 09 May, 2007
From: Soon Yung Jun <Soon Yung Jun>

Hi G4FastSimulation expert:

I want to trigger a fast simulation model at the point of a particular
hadronic interaction, for an example, at the first hadronic inelastic 
interaction inside an envelope.  Below is a snipet of my code 
implemented inside ModelTrigger with geant4.8.2.p01

---------------------------------------------------------------------->

G4bool trigger = false;

G4StepPoint* postStep = fastTrack.GetPrimaryTrack()->GetStep()->GetPostStepPoint();
G4String procName = postStep->GetProcessDefinedStep()->GetProcessName();
G4TrackVector* secondary = fastTrack.GetPrimaryTrack()->GetStep()->GetSecondary();

if( procName == "PionPlusInelastic" && (*secondary).size() > 0 ) {
  trigger = true;
  //should delete secondaries
  //fastTrack.GetPrimaryTrack()->GetStep()->DeleteSecondaryVector();
}

return trigger;

<----------------------------------------------------------------------

The problem that I encountered is that the kinetic energy of the fastTrack
(i.e., fastTrack.GetPrimaryTrack()->GetKineticEnergy()) in the "DoIt" 
method is the energy after the hadronic interaction (i.e., after loosing 
primary energy).  Since I want to
parameterize the hadronic shower (energy) with a fast simulation model, 
the condition that I implemented in ModelTrigger is actually one 
step "behind" the step where the parameterized physics should be 
triggered.  It seems that this may be a general problem if the condition 
in ModelTrigger depends on a specific physics process.  Is there any 
fundamental logistics to get around this problem?
Thanks for your help.

Regards,
---Soon     

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

1 None: Re: triggering hadronic Inelastic interactions inside ModelTrigger   (Marc Verderi - 10 May, 2007)
(_ None: Re: triggering hadronic Inelastic interactions inside ModelTrigger   (Soon Yung Jun - 10 May, 2007)
(_ Feedback: Re: triggering hadronic Inelastic interactions inside ModelTrigger   (John Apostolakis - 26 Jun, 2007)
 Add Message Add Message
to: "triggering hadronic Inelastic interactions inside ModelTrigger"

 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 ]