Message: Re: Use FTFP_BERT and user physics list together Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: Use FTFP_BERT and user physics list together 

Forum: Physics List
Re: Question Use FTFP_BERT and user physics list together (JungEun Elena Suh)
Date: 14 Mar, 2015
From: Michael H. Kelsey <Michael H. Kelsey>

On Sat, 14 Mar 2015 17:43:58 GMT, JungEun Elena Suh wrote:
> I want to simulate Cherenkov process and hadronic interactions together.
> 
> Until now I used my on user physics list.(constructed by G4VUserPhysicsList)
> Now I want to add FTFP_BERT physics list.
> I tried it like...
> in main.cc,
> 
>   runManager-> SetUserInitialization(new OpNoviceDetectorConstruction());
>   G4VModularPhysicsList* physicsList = new FTFP_BERT;
>   physicsList->RegisterPhysics(new G4Cerenkov());
> 
> However it shows me an error as below.
>  error: no matching function for call to &#65533;G4VModularPhysicsList::RegisterPhysics(G4Cerenkov*)
> 
> Maybe they are not compatible...?

Right. The RegisterPhysics() function takes a G4VPhysicsConstructor* argument, which is one of the components of building a physics list. You've passed it (above) a pointer to a single process. For Cerenkov production, you would need to register G4OpticalPhysics. If you don't need the other optical physics processes, you can disable them via macro commands.

   -- Michael Kelsey

 Add Message Add Message
to: "Re: Use FTFP_BERT and user physics list together"

 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 ]