60 fPhysBiasAllCharged(false), fNonPhysBiasAllCharged(false),
61 fPhysBiasAllChargedISL(false), fNonPhysBiasAllChargedISL(false),
62 fPhysBiasAllNeutral(false), fNonPhysBiasAllNeutral(false),
63 fPhysBiasAllNeutralISL(false), fNonPhysBiasAllNeutralISL(false),
78 std::vector< G4String > dummy;
118 if ( PDGlow > PDGhigh )
G4cout <<
" G4GenericBiasingPhysics::PhysicsBiasAddPDGRange(...) : PDGlow > PDGhigh, call ignored." <<
G4endl;
121 if ( includeAntiParticle )
131 if ( PDGlow > PDGhigh )
G4cout <<
" G4GenericBiasingPhysics::NonPhysicsBiasAddPDGRange(...) : PDGlow > PDGhigh, call ignored." <<
G4endl;
134 if ( includeAntiParticle )
145 if ( PDGlow > PDGhigh )
G4cout <<
" G4GenericBiasingPhysics::BiasAddPDGRange(...) : PDGlow > PDGhigh, call ignored." <<
G4endl;
215 std::vector< G4String >::const_iterator particleIt =
227 for (
G4int ip = 0 ; ip < vprocess->
size() ; ip++)
235 while ( restartLoop )
237 for (std::size_t ip = 0 ; ip < biasedProcesses.size() ; ip++)
241 if ( restartLoop )
break;
267 G4bool physBias(
false), nonPhysBias(
false);
286 if ( ( physBias ==
false ) && ( nonPhysBias == false ) )
305 std::vector < G4String > biasedProcesses;
307 for (
G4int ip = 0 ; ip < vprocess->
size() ; ip++)
314 while ( restartLoop )
316 for (std::size_t ip = 0 ; ip < biasedProcesses.size() ; ip++)
320 if ( restartLoop )
break;
345 for (
G4int ip = 0 ; ip < vprocess->
size() ; ip++)
359 processNames +=
"\n ";
370 G4cout << std::setw(14) << particleName <<
" **** : " << processNames <<
G4endl;
372 G4cout << std::setw(18) << particleName <<
" : " << processNames <<
G4endl;
virtual void ConstructParticle()
void BiasAllCharged(G4bool includeShortLived=false)
G4bool fPhysBiasAllChargedISL
std::vector< std::vector< G4String > > fBiasedProcesses
G4bool fNonPhysBiasAllChargedISL
virtual void ConstructProcess()
void PhysicsBiasAllNeutral(G4bool includeShortLived=false)
void NonPhysicsBiasAllCharged(G4bool includeShortLived=false)
void PhysicsBias(const G4String &particleName)
G4int GetPDGEncoding() const
static void ActivateNonPhysicsBiasing(G4ProcessManager *pmanager, G4String nonPhysicsProcessName="")
G4ProcessManager * GetProcessManager() const
std::vector< G4int > fNonPhysBiasByPDGRangeHigh
const G4String & GetParticleName() const
std::vector< G4int > fPhysBiasByPDGRangeHigh
void NonPhysicsBiasAddPDGRange(G4int PDGlow, G4int PDGhigh, G4bool includeAntiParticle=true)
void PhysicsBiasAllCharged(G4bool includeShortLived=false)
virtual ~G4GenericBiasingPhysics()
G4GLOB_DLL std::ostream G4cout
G4GenericBiasingPhysics(const G4String &name="BiasingP")
std::vector< G4int > fNonPhysBiasByPDGRangeLow
#define aParticleIterator
G4_DECLARE_PHYSCONSTR_FACTORY(G4GenericBiasingPhysics)
static G4bool ActivatePhysicsBiasing(G4ProcessManager *pmanager, G4String physicsProcessToBias, G4String wrappedName="")
G4bool fPhysBiasAllNeutralISL
const G4String & GetProcessName() const
G4bool fNonPhysBiasAllCharged
void PhysicsBiasAddPDGRange(G4int PDGlow, G4int PDGhigh, G4bool includeAntiParticle=true)
std::vector< G4int > fPhysBiasByPDGRangeLow
G4bool IsShortLived() const
G4bool fPhysBiasAllCharged
void BiasAddPDGRange(G4int PDGlow, G4int PDGhigh, G4bool includeAntiParticle=true)
void NonPhysicsBiasAllNeutral(G4bool includeShortLived=false)
std::vector< G4String > fBiasedParticles
void BiasAllNeutral(G4bool includeShortLived=false)
std::vector< G4String > fNonPhysBiasedParticles
std::vector< G4bool > fBiasAllProcesses
G4bool fNonPhysBiasAllNeutral
G4double GetPDGCharge() const
G4bool fNonPhysBiasAllNeutralISL
void NonPhysicsBias(const G4String &particleName)
G4bool fPhysBiasAllNeutral
G4ProcessVector * GetProcessList() const
void Bias(const G4String &particleName)