Re: PhysicsLIst

From: Ivana Hrivnacova <ihrivnac_at_mail.cern.ch>
Date: Tue, 9 May 2006 10:23:44 +0200 (CEST)

 Dear Dmitry,

 From the warning message that you get in runtime,  it is clear that your application still runs with  Geant4 VMC physics list and not yours.

 The way how to define user physics list has been  changed in the last released version of Geant4 VMC (1.8);  migration to this version requires a modification  of you NRunConfiguration class.
 The only function that you have provide now is  NRunConfiguration:CreatePhysicsList().

 Please, have a look at the example E03, how  your run configuration with your physics list  should be defined.

 Best regards,

 Ivana  

-- 
==============================================================
e-mail:  Ivana.Hrivnacova_at_cern.ch
address: Institut Physique Nucleaire, 91406 Orsay, France
phone:   (33) 01 69 15 65 94
==============================================================


On Mon, 8 May 2006, Dmitry Naumov wrote:


> Dear VMC team,
>
> I am trying to use a custom PhysicsList of G4 and have some problems with it.
> As an example I took
> http://www.slac.stanford.edu/comp/physics/geant4/slac_physics_lists/ilc/
> physics list and created a new class NRunConfiguration:
>
> //_____________________________________________________________________________
> NRunConfiguration::NRunConfiguration()
> : TG4RunConfiguration() {
> //
>
> CreateUserConfiguration();
> }
>
> //_____________________________________________________________________________
> NRunConfiguration::~NRunConfiguration(){
> //
> }
>
> //
> // protected methods
> //
>
>
> //_____________________________________________________________________________
> void NRunConfiguration::CreateUserConfiguration()
> {
> // Creates the mandatory Geant4 classes and
> // the other user action classes.
> // ---
>
> // create mandatory Geant4 classes
> fPhysicsList = new LCPhysicsList();
> cout << "LCPhysicsList is activated" << endl;
> }
>
> in the main program I do:
>
> TG4RunConfiguration* runConfiguration = new NRunConfiguration();
>
> // TGeant4
> TGeant4 *geant4 = new TGeant4("TGeant4", "The Geant4 Monte Carlo",
> runConfiguration);
> and finally my TMCApplication object calls InitMC in which a
> gMC->BuildPhysics() call is done.
> The program is compiled and runs smoothly but apparently it does not have
> hadronic interactions while a message
> ###
> You are using the Geant4 VMC hadronics physics
> equivalent to ExN04HadronPhysics from Geant4 (version 6.0)
> Note that this hadronic physics list is not optimized for any particular
> usage.
> If you wish to have a starting point tailored for a particular area of work,
> please use one of the available physics lists by use-case.
> More information can also be found from the Geant4 HyperNews.
> ###
> is released what I see strange since I do not call anymore VMC default
> PhysicsList constructor. Could you please explain what is a safe way to use:
> 1. custom PhysicsList
> 2. activate one or two new modules like QGSP for hadronic interactions.
> It seems I understand how to do it in a pure Geant4 environment while I am not
> sure I understand how it works in VMC interface.
>
> Many thanks in advance, Dmitry
>
>
Received on Tue May 09 2006 - 10:26:01 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:55:09 MET