Message: Re: May I modify the energy threshold? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: May I modify the energy threshold? 

Forum: Fast Simulation, Transportation & Others
Re: Question May I modify the energy threshold? (Vito)
Date: 06 Feb, 2007
From: Vladimir IVANTCHENKO <vnivanch@mail.cern.ch>

On Thu, 1 Feb 2007, Vito wrote:

> *** Discussion title: Fast Simulation, Transportation & Others
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/fastsim/24"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
> 
> Hello, I'm trying to modify a Geant4 code in way of obtain a stepsize shorter.
> I have seen the Geant4 manual: for application developers, in it  
> is explained a method that involve the introduction of a particular kind 
> code in the PhysicsList, but in my code no "User PhysicsList" is implemented,
> rather than is used the general PhysicsList LHEP. 
> 
> How I can modify the stepsize (then the energy threshold) in this case?
> 
> Many thanks
>        Vito Palladino
> 

Hello,

You can try follwoing. In in your main instead of one line

runManager->SetUserInitialization(new LHEP());

insert more lines:

G4double myCut = 0.1*mm;
LHEP* pLHEP = new LHEP();
pLHEP->SetDefaultCutValue(myCut);
runManager->SetUserInitialization(pLHEP);

VI  

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

 Add Message Add Message
to: "Re: May I modify the energy threshold?"

 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 ]