Message: Generic Biasing for dedicated physics processes Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Generic Biasing for dedicated physics processes 

Forum: Biasing and Scoring
Date: 05 Jun, 2014
From: Stefan E. Mueller <Stefan E. Mueller>

Dear all,

I would like to use the new generic biasing, but unlike example GB01, I would like to bias only some processes for particles, e.g. only "GammaToMuPair" for particle "gamma". To do this, in my main I use the following code:

  G4GenericBiasingPhysics* biasingPhysics = new G4GenericBiasingPhysics();
  std::vector<G4String> vBiasProcGamma;
  vBiasProcGamma.push_back("GammaToMuPair");
  biasingPhysics->Bias("gamma",vBiasProcGamma);
  physics->RegisterPhysics( biasingPhysics );

However, when I run my executable, I get in the output for /process/list:

biasWrapper(0)
 biasWrapper(compt),  biasWrapper(phot),  biasWrapper(conv),  biasWrapper(Rayl)
biasWrapper(photonNuclear),biasWrapper(GammaToMuPair)

So it seems that all processes for photons are wrapped, not only "GammaToMuPair". I get the same output for /process/list if I do simply

 biasingPhysics->Bias("gamma");

so it sems to me at this stage, the second argument is ignored somehow!?

Is that to be expected?

Stefan

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

1 Sad: Re: Generic Biasing for dedicated physics processes   (Marc Verderi - 16 Jun, 2014)
 Add Message Add Message
to: "Generic Biasing for dedicated physics processes"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews