Message: Re: Simulate only events that will produce muons of certain energies Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Simulate only events that will produce muons of certain energies 

Forum: Event and Track Management
Re: Question Simulate only events that will produce muons of certain energies (Adriana Bungau)
Date: 21 Jan, 2009
From: Paul Nicholas Colin Gloster <Paul Nicholas Colin Gloster>

On Wed, 21 Jan 2009, Adriana Bungau sent:

|---------------------------------------------------------------------|
|"I am trying to speed up a simulation of 10^13 protons on a graphite |
|target by simulating only those events that are of interest for the  |
|experiment i.e. that will produce in the end muons with certain      |
|energies.                                                            |
|                                                                     |
|Could you please let me know if it's possible to skip the events that|
|will not produce such muons?"                                        |
|---------------------------------------------------------------------|

I do not know how to achieve what you want with Geant.

Some ideas of things to look at initially which might help are CreateSecondaryTrack() in src/geant4/source/processes/parameterisation/include/G4FastStep.hh and SetMinEnergy() and ActivateFor() in src/geant4/source/processes/hadronic/models/management/include/G4HadronicInteraction.hh and SetProposedKineticEnergy() in src/geant4/source/track/include/G4ParticleChangeForLoss.hh and SetCuts() and SetCutsInEnergy() and SetEnergyRange() in src/geant4/source/processes/cuts/include/G4VRangeToEnergyConverter.hh or src/geant4/source/processes/cuts/include/G4ProductionCutsTable.hh .

Some ideas which you might resort to if you know enough concerning the initial energies which would result in the desired energies: various capabilities of src/geant4/examples/advanced/hadrontherapy/include/HadrontherapyPrimaryGeneratorAction.hh and SetMinimumEnergy() and /gun/energy and SetParticleEnergy() .

Some ideas which you might resort to though I do not expect that they would actually avoid simulating unnecessary productions:
src/geant4/source/digits_hits/scorer/include/G4SDParticleWithEnergyFilter.hh
and
src/geant4/examples/novice/N05/src/ExN05EMShowerModel.cc
contains:
G4bool ExN05EMShowerModel::ModelTrigger(const G4FastTrack& fastTrack)
{
  // Applies the parameterisation above 100 MeV:
  return fastTrack.GetPrimaryTrack()->GetKineticEnergy() > 100*MeV;
}
.

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

1 Question: Re: Simulate only events that will produce muons of certain energies   (Adriana Bungau - 21 Jan, 2009)
1 None: Re: Simulate only events that will produce muons of certain energies   (Paul Nicholas Colin Gloster - 21 Jan, 2009)
2 Warning: Re: Simulate only events that will produce muons of certain energies   (Gumplinger Peter - 21 Jan, 2009)
1 Question: Re: Simulate only events that will produce muons of certain energies   (Adriana Bungau - 22 Jan, 2009)
 Add Message Add Message
to: "Re: Simulate only events that will produce muons of certain energies"

 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 ]