Message: Activate PAI from PhysicsList.cc Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Activate PAI from PhysicsList.cc 

Forum: Physics List
Date: 06 Oct, 2017
From: Francesca <Francesca>

Hello, 
     I am try to activate the PAI model, but on all posts I see this is done externally in the run.mac file using a DetectorMessenger. 
     I'd like to activate it instead already inside my PhysicsList.cc file. Is it possible please? 
I mean, something trivial like:


PhysicsList::PhysicsList(): G4VModularPhysicsList()
{
  defaultCutValue = 0.0001* mm;
  DumpCutValuesTable();
  //G4ProductionCutsTable::GetProductionCutsTable()->SetEnergyRange(25*eV, 1*GeV);
  SetVerboseLevel(0);
  emPhysicsList = new G4EmLivermorePhysics(0);
  emPhysicsList->AddPhysicsList("pai");
  decPhysicsList = new G4DecayPhysics();
  hadPhysicsList = new G4HadronPhysicsQGSP_BIC_HP(0);
  G4cout<< ">> PhysicsList:: G4EmLivermorePhysics activated << "<<G4endl;
  G4cout<< ">> PhysicsList:: Decay activated << "<<G4endl;

}


(but working, emPhysicsList->AddPhysicsList("pai");does not exist).

Thanks, 
kind regards,
franciuska

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

1 Idea: Re: Activate PAI from PhysicsList.cc   (Vladimir Ivanchenko - 09 Oct, 2017)
 Add Message Add Message
to: "Activate PAI from PhysicsList.cc"

 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 ]