Message: Re: ConstructParticles needed? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: ConstructParticles needed? 

Forum: Particles
Re: Feedback ConstructParticles needed? (Isidro Gonzalez)
Date: 27 Sep, 2001
From: Hisaya Kurashige <Hisaya Kurashige>

Dear Isidro

  In principle, a compiler need to make a list of classes used in a program to let a linker know which library is necessary. 
  Invocation of static method of particle classes used in your application is necessary to inform a compiler. So, you are required to declare particle types in your physics list.

  I tested on both SUN and Linux and confirmed that particles are not created without invocation of static methods.  

  At last, I want to note that G4XXXConstructor::ConstructParticle() (for example G4MesonConstructor ) method invoke declaration of all particles in the category (for examples all mesons by G4MesonConstructor )      


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

 Add Message Add Message
to: "Re: ConstructParticles needed?"

 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 ]