Message: Adding QGSP_HP to DMXPhysicsList Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Adding QGSP_HP to DMXPhysicsList 

Keywords: hadronic muon low-background
Forum: Physics List
Date: 11 Mar, 2004
From: Kareem kazkaz <>

Hello everyone.

I would like to simulate low-background events, so I decided to use the DMXPhysicsList from the underground physics example. I would also like to take into account hadronic spallation from cosmic muons, and therefore would like to use the QGSP_HP list.

My question is how to combine the two lists. If I put two successive calls to the lists in the main program:

	runManager->SetUserInitialization( new DMXPhysicsList );
	runManager->SetUserInitialization( new QGSP_HP );

I only get whichever list is initialized second. If I put the QGSP_HP code into and DMXPhysicsList.hh and call RegisterPhysics in the DMXPhysicsList constructor:

	theModularPhysicsList = new G4VModularPhysicsList;
	theModularPhysicsList->RegisterPhysics( new GeneralPhysics("general") );
	theModularPhysicsList->RegisterPhysics( new EM_GNPhysics("standard EM plus electro nuclear") );
	theModularPhysicsList->RegisterPhysics(  new MuonPhysics("muon") );
	theModularPhysicsList->RegisterPhysics(  new HadronPhysicsQGSP_HP("hadron") );
	theModularPhysicsList->RegisterPhysics( new IonPhysics("ion") );

I receive the message that I "cannot allocate an object of type `G4VModularPhysicsList` because the following virtual functions are abstract: G4VModularPhysicsList::SetCuts()"

So my first question is whether there's a simpler way to fold the hadronic and muon physics into the DMXPhysicsList, and if not then what am I doing wrong?

Thanks a bunch.

Kareem Kazkaz

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

 Add Message Add Message
to: "Adding QGSP_HP to DMXPhysicsList"

 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 ]