Message: Re: QGSP_BERT_HP time cut for neutrons Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: QGSP_BERT_HP time cut for neutrons 

Forum: Physics List
Re: Question QGSP_BERT_HP time cut for neutrons (filippo)
Re: None Re: QGSP_BERT_HP time cut for neutrons (Robert Hatcher)
Re: Agree Re: QGSP_BERT_HP time cut for neutrons (filippo)
Date: 30 Apr, 2014
From: C Mos <C Mos>

Hey I am not sure about the command but this is what I do in my code:

1) In main Function

  G4VModularPhysicsList* modPhysicsList;
  modPhysicsList=new  FTFP_BERT_HP;
  modPhysicsList->RegisterPhysics(new SpecialCutsBuilder());
  runManager->SetUserInitialization(modPhysicsList);

2) Get the SpecialCutsBuilder class from the website (google it). In this class it attaches G4UserSpecialCuts() to the pasrticle of interest. In this case is neutrons.

3)In your constructor, assign what logical volume to apply cuts

  myFavoriteLogRegion->SetUserLimits(new G4UserLimits(DBL_MAX,DBL_MAX,neutronMaxTime=10.*ms));

NOTICE when assigning G4UserLimits to a logical volume, it will not propagate to daughter volumes. If you have daughter volumes in the logical volume and you want to propagate the UsrLimits to those volumes, use a G4Region then.

I hope this helps,

C Mos

 Add Message Add Message
to: "Re: QGSP_BERT_HP time cut for neutrons"

 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 ]