Message: Where is the Construct() or ConstructProcess() called? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Where is the Construct() or ConstructProcess() called? 

Forum: Documentation and Examples
Date: 25 May, 2011
From: Youming Yang <Youming Yang>

Hello,

I've installed a working (can compile and run) setup of the code, and am working through the examples trying to look at how the code is structured.

In the examples during the physics definition, the virtual function ConstructProcess() inherited from G4PhysicsList is defined, and in Example 1 it is pretty simply defined:

void ExN01PhysicsList::ConstructProcess()
{
  AddTransportation();
}

My question is where does it get called? I cannot find an explicit call to physicsList->ConstructProcess() anywhere in the G4RunManagerKernel.

While I do find "physicsList->ConstructParticle();" in SetPhysics corresponding to:
void ExN01PhysicsList::ConstructParticle()
{
   G4Geantino::GeantinoDefinition();
}

My only hope is the function Construct() that has commenting suggesting it sets all the processes, but I can only find the virtual function for this in Class g4PhysicsList, and cannot find its body. I am wondering where it's defined or if it's inherited from somewhere else?:

class G4VUserPhysicsList
{
   ...
   void Construct();
}

Apologies if this question is poorly worded.

Thanks in advance for your assistance! Ming

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

1 None: Nevermind!   (Youming Yang - 27 May, 2011)
 Add Message Add Message
to: "Where is the Construct() or ConstructProcess() called?"

 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 ]