Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4EmProcessOptions Class Reference

#include <G4EmProcessOptions.hh>

Public Member Functions

 G4EmProcessOptions ()
 
 ~G4EmProcessOptions ()
 
void SetLossFluctuations (G4bool val)
 
void SetSubCutoff (G4bool val, const G4Region *r=0)
 
void SetIntegral (G4bool val)
 
void SetMinSubRange (G4double val)
 
void SetMinEnergy (G4double val)
 
void SetMaxEnergy (G4double val)
 
void SetMaxEnergyForCSDARange (G4double val)
 
void SetMaxEnergyForMuons (G4double val)
 
void SetDEDXBinning (G4int val)
 
void SetDEDXBinningForCSDARange (G4int val)
 
void SetLambdaBinning (G4int val)
 
void SetStepFunction (G4double v1, G4double v2)
 
void SetRandomStep (G4bool val)
 
void SetApplyCuts (G4bool val)
 
void SetBuildCSDARange (G4bool val)
 
void SetVerbose (G4int val, const G4String &name="all", G4bool worker=false)
 
void SetLambdaFactor (G4double val)
 
void SetLinearLossLimit (G4double val)
 
void SetDeexcitationActiveRegion (const G4String &rname="", G4bool valDeexcitation=true, G4bool valAuger=true, G4bool valPIXE=true)
 
void SetFluo (G4bool val)
 
void SetAuger (G4bool val)
 
void SetPIXE (G4bool val)
 
void SetPIXECrossSectionModel (const G4String &val)
 
void SetPIXEElectronCrossSectionModel (const G4String &val)
 
void SetMscStepLimitation (G4MscStepLimitType val)
 
void SetMscLateralDisplacement (G4bool val)
 
void SetSkin (G4double val)
 
void SetMscRangeFactor (G4double val)
 
void SetMscGeomFactor (G4double val)
 
void SetLPMFlag (G4bool val)
 
void SetSplineFlag (G4bool val)
 
void SetBremsstrahlungTh (G4double val)
 
void SetPolarAngleLimit (G4double val)
 
void SetFactorForAngleLimit (G4double val)
 
void SetProcessBiasingFactor (const G4String &name, G4double val, G4bool flag=true)
 
void ActivateForcedInteraction (const G4String &name, G4double length=0.0, const G4String &region="", G4bool flag=true)
 
void ActivateSecondaryBiasing (const G4String &name, const G4String &region, G4double factor, G4double energyLimit)
 
void ActivateSecondaryBiasingForGamma (const G4String &name, const G4String &region, G4double factor, G4double energyLimit)
 

Detailed Description

Definition at line 63 of file G4EmProcessOptions.hh.

Constructor & Destructor Documentation

G4EmProcessOptions::G4EmProcessOptions ( )

Definition at line 68 of file G4EmProcessOptions.cc.

References G4LossTableManager::Instance().

69 {
70  theManager = G4LossTableManager::Instance();
71 }
static G4LossTableManager * Instance()
G4EmProcessOptions::~G4EmProcessOptions ( )

Definition at line 75 of file G4EmProcessOptions.cc.

76 {
77 }

Member Function Documentation

void G4EmProcessOptions::ActivateForcedInteraction ( const G4String name,
G4double  length = 0.0,
const G4String region = "",
G4bool  flag = true 
)

Definition at line 454 of file G4EmProcessOptions.cc.

References G4VEmProcess::ActivateForcedInteraction(), G4VEnergyLossProcess::ActivateForcedInteraction(), G4LossTableManager::GetEmProcessVector(), G4LossTableManager::GetEnergyLossProcessVector(), G4VProcess::GetProcessName(), and test::v.

Referenced by G4EnergyLossMessenger::SetNewValue().

458 {
459  const std::vector<G4VEnergyLossProcess*>& v =
460  theManager->GetEnergyLossProcessVector();
461  std::vector<G4VEnergyLossProcess*>::const_iterator itr;
462  for(itr = v.begin(); itr != v.end(); ++itr) {
463  G4VEnergyLossProcess* p = *itr;
464  if(p) {
465  if (p->GetProcessName() == name) {
466  p->ActivateForcedInteraction(length,region,flag);
467  }
468  }
469  }
470  const std::vector<G4VEmProcess*>& w =
471  theManager->GetEmProcessVector();
472  std::vector<G4VEmProcess*>::const_iterator itp;
473  for(itp = w.begin(); itp != w.end(); itp++) {
474  G4VEmProcess* q = *itp;
475  if(q) {
476  if (q->GetProcessName() == name) {
477  q->ActivateForcedInteraction(length,region,flag);
478  }
479  }
480  }
481 }
void ActivateForcedInteraction(G4double length=0.0, const G4String &r="", G4bool flag=true)
const char * p
Definition: xmltok.h:285
void ActivateForcedInteraction(G4double length=0.0, const G4String &region="", G4bool flag=true)
const XML_Char * name
const std::vector< G4VEmProcess * > & GetEmProcessVector()
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
const std::vector< G4VEnergyLossProcess * > & GetEnergyLossProcessVector()
void G4EmProcessOptions::ActivateSecondaryBiasing ( const G4String name,
const G4String region,
G4double  factor,
G4double  energyLimit 
)

Definition at line 486 of file G4EmProcessOptions.cc.

References G4VEnergyLossProcess::ActivateSecondaryBiasing(), G4LossTableManager::GetEnergyLossProcessVector(), G4VProcess::GetProcessName(), and test::v.

Referenced by G4EnergyLossMessenger::SetNewValue().

490 {
491  if(0.0 > factor) { return; }
492  const std::vector<G4VEnergyLossProcess*>& v =
493  theManager->GetEnergyLossProcessVector();
494  std::vector<G4VEnergyLossProcess*>::const_iterator itr;
495  for(itr = v.begin(); itr != v.end(); ++itr) {
496  G4VEnergyLossProcess* p = *itr;
497  if(p) {
498  if (p->GetProcessName() == name) {
499  p->ActivateSecondaryBiasing(region, factor, energyLimit);
500  }
501  }
502  }
503 }
const char * p
Definition: xmltok.h:285
const XML_Char * name
void ActivateSecondaryBiasing(const G4String &region, G4double factor, G4double energyLimit)
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
const std::vector< G4VEnergyLossProcess * > & GetEnergyLossProcessVector()
void G4EmProcessOptions::ActivateSecondaryBiasingForGamma ( const G4String name,
const G4String region,
G4double  factor,
G4double  energyLimit 
)

Definition at line 508 of file G4EmProcessOptions.cc.

References G4VEmProcess::ActivateSecondaryBiasing(), G4LossTableManager::GetEmProcessVector(), G4VProcess::GetProcessName(), and test::v.

Referenced by G4EnergyLossMessenger::SetNewValue().

512 {
513  if(0.0 > factor) { return; }
514  const std::vector<G4VEmProcess*>& v =
515  theManager->GetEmProcessVector();
516  std::vector<G4VEmProcess*>::const_iterator itr;
517  for(itr = v.begin(); itr != v.end(); ++itr) {
518  G4VEmProcess* p = *itr;
519  if(p) {
520  if (p->GetProcessName() == name) {
521  p->ActivateSecondaryBiasing(region, factor, energyLimit);
522  }
523  }
524  }
525 }
const char * p
Definition: xmltok.h:285
const XML_Char * name
const std::vector< G4VEmProcess * > & GetEmProcessVector()
void ActivateSecondaryBiasing(const G4String &region, G4double factor, G4double energyLimit)
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
void G4EmProcessOptions::SetApplyCuts ( G4bool  val)

Definition at line 172 of file G4EmProcessOptions.cc.

References G4LossTableManager::GetEmProcessVector(), and G4VEmProcess::SetApplyCuts().

Referenced by G4EmStandardPhysics_option1::ConstructProcess(), and G4EnergyLossMessenger::SetNewValue().

173 {
174  const std::vector<G4VEmProcess*>& w =
175  theManager->GetEmProcessVector();
176  std::vector<G4VEmProcess*>::const_iterator itp;
177  for(itp = w.begin(); itp != w.end(); itp++) {
178  G4VEmProcess* q = *itp;
179  if(q) { q->SetApplyCuts(val); }
180  }
181 }
const std::vector< G4VEmProcess * > & GetEmProcessVector()
void SetApplyCuts(G4bool val)
void G4EmProcessOptions::SetAuger ( G4bool  val)

Definition at line 273 of file G4EmProcessOptions.cc.

References G4VAtomDeexcitation::SetAuger().

Referenced by DMXPhysicsList::ConstructEM(), XrayFluoPhysicsList::ConstructProcess(), and G4EnergyLossMessenger::SetNewValue().

274 {
275  G4VAtomDeexcitation* ad = theManager-> AtomDeexcitation();
276  if(ad) { ad->SetAuger(val); }
277 }
void G4EmProcessOptions::SetBremsstrahlungTh ( G4double  val)

Definition at line 416 of file G4EmProcessOptions.cc.

References G4LossTableManager::SetBremsstrahlungTh().

417 {
418  theManager->SetBremsstrahlungTh(val);
419 }
void SetBremsstrahlungTh(G4double val)
void G4EmProcessOptions::SetBuildCSDARange ( G4bool  val)
void G4EmProcessOptions::SetDEDXBinning ( G4int  val)
void G4EmProcessOptions::SetDEDXBinningForCSDARange ( G4int  val)
void G4EmProcessOptions::SetDeexcitationActiveRegion ( const G4String rname = "",
G4bool  valDeexcitation = true,
G4bool  valAuger = true,
G4bool  valPIXE = true 
)

Definition at line 251 of file G4EmProcessOptions.cc.

References G4VAtomDeexcitation::SetDeexcitationActiveRegion().

Referenced by G4EnergyLossMessenger::SetNewValue().

255 {
256  G4VAtomDeexcitation* ad = theManager-> AtomDeexcitation();
257  if(ad) {
258  ad->SetDeexcitationActiveRegion(rname, valDeexcitation,
259  valAuger,valPIXE);
260  }
261 }
void SetDeexcitationActiveRegion(const G4String &rname, G4bool valDeexcitation, G4bool valAuger, G4bool valPIXE)
void G4EmProcessOptions::SetFactorForAngleLimit ( G4double  val)

Definition at line 388 of file G4EmProcessOptions.cc.

References G4LossTableManager::SetFactorForAngleLimit().

Referenced by G4EnergyLossMessenger::SetNewValue().

389 {
390  theManager->SetFactorForAngleLimit(val);
391 }
void SetFactorForAngleLimit(G4double val)
void G4EmProcessOptions::SetFluo ( G4bool  val)

Definition at line 265 of file G4EmProcessOptions.cc.

References G4VAtomDeexcitation::SetFluo().

Referenced by DMXPhysicsList::ConstructEM(), XrayFluoPhysicsList::ConstructProcess(), and G4EnergyLossMessenger::SetNewValue().

266 {
267  G4VAtomDeexcitation* ad = theManager-> AtomDeexcitation();
268  if(ad) { ad->SetFluo(val); }
269 }
void G4EmProcessOptions::SetIntegral ( G4bool  val)

Definition at line 95 of file G4EmProcessOptions.cc.

References G4LossTableManager::SetIntegral().

Referenced by G4EnergyLossMessenger::SetNewValue().

96 {
97  theManager->SetIntegral(val);
98 }
void SetIntegral(G4bool val)
void G4EmProcessOptions::SetLambdaBinning ( G4int  val)
void G4EmProcessOptions::SetLambdaFactor ( G4double  val)

Definition at line 237 of file G4EmProcessOptions.cc.

References G4LossTableManager::GetEnergyLossProcessVector(), G4VEnergyLossProcess::SetLambdaFactor(), and test::v.

Referenced by G4EnergyLossMessenger::SetNewValue().

238 {
239  const std::vector<G4VEnergyLossProcess*>& v =
240  theManager->GetEnergyLossProcessVector();
241  std::vector<G4VEnergyLossProcess*>::const_iterator itr;
242  for(itr = v.begin(); itr != v.end(); itr++) {
243  G4VEnergyLossProcess* p = *itr;
244  if(p) { p->SetLambdaFactor(val); }
245  }
246 }
const char * p
Definition: xmltok.h:285
const std::vector< G4VEnergyLossProcess * > & GetEnergyLossProcessVector()
void SetLambdaFactor(G4double val)
void G4EmProcessOptions::SetLinearLossLimit ( G4double  val)
void G4EmProcessOptions::SetLossFluctuations ( G4bool  val)

Definition at line 81 of file G4EmProcessOptions.cc.

References G4LossTableManager::SetLossFluctuations().

Referenced by G4EnergyLossMessenger::SetNewValue().

82 {
83  theManager->SetLossFluctuations(val);
84 }
void SetLossFluctuations(G4bool val)
void G4EmProcessOptions::SetLPMFlag ( G4bool  val)

Definition at line 395 of file G4EmProcessOptions.cc.

References G4LossTableManager::SetLPMFlag().

Referenced by G4EnergyLossMessenger::SetNewValue().

396 {
397  theManager->SetLPMFlag(val);
398 }
void SetLPMFlag(G4bool val)
void G4EmProcessOptions::SetMaxEnergy ( G4double  val)
void G4EmProcessOptions::SetMaxEnergyForCSDARange ( G4double  val)
void G4EmProcessOptions::SetMaxEnergyForMuons ( G4double  val)

Definition at line 130 of file G4EmProcessOptions.cc.

References G4LossTableManager::SetMaxEnergyForMuons().

131 {
132  theManager->SetMaxEnergyForMuons(val);
133 }
void SetMaxEnergyForMuons(G4double val)
void G4EmProcessOptions::SetMinEnergy ( G4double  val)
void G4EmProcessOptions::SetMinSubRange ( G4double  val)

Definition at line 102 of file G4EmProcessOptions.cc.

References G4LossTableManager::SetMinSubRange().

Referenced by G4EnergyLossMessenger::SetNewValue().

103 {
104  theManager->SetMinSubRange(val);
105 }
void SetMinSubRange(G4double val)
void G4EmProcessOptions::SetMscGeomFactor ( G4double  val)

Definition at line 356 of file G4EmProcessOptions.cc.

References G4LossTableManager::GetMultipleScatteringVector().

Referenced by PhysListEmStandardGS::ConstructProcess(), and G4EnergyLossMessenger::SetNewValue().

357 {
358  if(val < 0.0) { return; }
359  const std::vector<G4VMultipleScattering*>& u =
360  theManager->GetMultipleScatteringVector();
361  std::vector<G4VMultipleScattering*>::const_iterator itm;
362  for(itm = u.begin(); itm != u.end(); itm++) {
363  if(*itm) { (*itm)->SetGeomFactor(val); }
364  }
365 }
const std::vector< G4VMultipleScattering * > & GetMultipleScatteringVector()
void G4EmProcessOptions::SetMscLateralDisplacement ( G4bool  val)

Definition at line 318 of file G4EmProcessOptions.cc.

References G4LossTableManager::GetMultipleScatteringVector().

Referenced by G4EnergyLossMessenger::SetNewValue().

319 {
320  const std::vector<G4VMultipleScattering*>& u =
321  theManager->GetMultipleScatteringVector();
322  std::vector<G4VMultipleScattering*>::const_iterator itm;
323  for(itm = u.begin(); itm != u.end(); itm++) {
324  if(*itm) { (*itm)->SetLateralDisplasmentFlag(val); }
325  }
326 }
const std::vector< G4VMultipleScattering * > & GetMultipleScatteringVector()
void G4EmProcessOptions::SetMscRangeFactor ( G4double  val)

Definition at line 343 of file G4EmProcessOptions.cc.

References G4LossTableManager::GetMultipleScatteringVector().

Referenced by PhysListEmStandardGS::ConstructProcess(), and G4EnergyLossMessenger::SetNewValue().

344 {
345  if(val < 0.0) return;
346  const std::vector<G4VMultipleScattering*>& u =
347  theManager->GetMultipleScatteringVector();
348  std::vector<G4VMultipleScattering*>::const_iterator itm;
349  for(itm = u.begin(); itm != u.end(); itm++) {
350  if(*itm) { (*itm)->SetRangeFactor(val); }
351  }
352 }
const std::vector< G4VMultipleScattering * > & GetMultipleScatteringVector()
void G4EmProcessOptions::SetMscStepLimitation ( G4MscStepLimitType  val)

Definition at line 306 of file G4EmProcessOptions.cc.

References G4LossTableManager::GetMultipleScatteringVector().

Referenced by DMXPhysicsList::ConstructEM(), PhysListEmStandardGS::ConstructProcess(), PhysListEmStandard_GS::ConstructProcess(), PhysListEmStandard_option3::ConstructProcess(), and G4EnergyLossMessenger::SetNewValue().

307 {
308  const std::vector<G4VMultipleScattering*>& u =
309  theManager->GetMultipleScatteringVector();
310  std::vector<G4VMultipleScattering*>::const_iterator itm;
311  for(itm = u.begin(); itm != u.end(); itm++) {
312  if(*itm) (*itm)->SetStepLimitType(val);
313  }
314 }
const std::vector< G4VMultipleScattering * > & GetMultipleScatteringVector()
void G4EmProcessOptions::SetPIXE ( G4bool  val)

Definition at line 281 of file G4EmProcessOptions.cc.

References G4VAtomDeexcitation::SetPIXE().

Referenced by DMXPhysicsList::ConstructEM(), XrayFluoPhysicsList::ConstructProcess(), and G4EnergyLossMessenger::SetNewValue().

282 {
283  G4VAtomDeexcitation* ad = theManager-> AtomDeexcitation();
284  if(ad) { ad->SetPIXE(val); }
285 }
void G4EmProcessOptions::SetPIXECrossSectionModel ( const G4String val)

Definition at line 289 of file G4EmProcessOptions.cc.

References G4VAtomDeexcitation::SetPIXECrossSectionModel().

Referenced by G4EnergyLossMessenger::SetNewValue().

290 {
291  G4VAtomDeexcitation* ad = theManager-> AtomDeexcitation();
292  if(ad) { ad->SetPIXECrossSectionModel(mname); }
293 }
void SetPIXECrossSectionModel(const G4String &)
void G4EmProcessOptions::SetPIXEElectronCrossSectionModel ( const G4String val)

Definition at line 298 of file G4EmProcessOptions.cc.

References G4VAtomDeexcitation::SetPIXEElectronCrossSectionModel().

Referenced by G4EnergyLossMessenger::SetNewValue().

299 {
300  G4VAtomDeexcitation* ad = theManager-> AtomDeexcitation();
301  if(ad) { ad->SetPIXEElectronCrossSectionModel(mname); }
302 }
void SetPIXEElectronCrossSectionModel(const G4String &)
void G4EmProcessOptions::SetPolarAngleLimit ( G4double  val)

Definition at line 369 of file G4EmProcessOptions.cc.

References G4LossTableManager::GetEmProcessVector(), G4LossTableManager::GetMultipleScatteringVector(), and G4VEmProcess::SetPolarAngleLimit().

Referenced by G4EmLivermorePolarizedPhysics::ConstructProcess(), G4EmLowEPPhysics::ConstructProcess(), G4EmLivermorePhysics::ConstructProcess(), G4EmPenelopePhysics::ConstructProcess(), PhysListEmStandardSSM::ConstructProcess(), PhysListEmStandardNR::ConstructProcess(), PhysListEmStandardSS::ConstructProcess(), PhysListEmStandardWVI::ConstructProcess(), PhysListEmStandard_WVI::ConstructProcess(), PhysListEmStandard_SS::ConstructProcess(), G4EmStandardPhysics_option3::ConstructProcess(), G4EmStandardPhysics::ConstructProcess(), G4EmStandardPhysics_option4::ConstructProcess(), G4EmStandardPhysics_option1::ConstructProcess(), G4EmStandardPhysics_option2::ConstructProcess(), and G4EnergyLossMessenger::SetNewValue().

370 {
371  const std::vector<G4VMultipleScattering*>& u =
372  theManager->GetMultipleScatteringVector();
373  std::vector<G4VMultipleScattering*>::const_iterator itm;
374  for(itm = u.begin(); itm != u.end(); itm++) {
375  if(*itm) { (*itm)->SetPolarAngleLimit(val); }
376  }
377  const std::vector<G4VEmProcess*>& w =
378  theManager->GetEmProcessVector();
379  std::vector<G4VEmProcess*>::const_iterator itp;
380  for(itp = w.begin(); itp != w.end(); itp++) {
381  G4VEmProcess* q = *itp;
382  if(q) { q->SetPolarAngleLimit(val); }
383  }
384 }
const std::vector< G4VEmProcess * > & GetEmProcessVector()
void SetPolarAngleLimit(G4double a)
const std::vector< G4VMultipleScattering * > & GetMultipleScatteringVector()
void G4EmProcessOptions::SetProcessBiasingFactor ( const G4String name,
G4double  val,
G4bool  flag = true 
)

Definition at line 424 of file G4EmProcessOptions.cc.

References G4LossTableManager::GetEmProcessVector(), G4LossTableManager::GetEnergyLossProcessVector(), G4VProcess::GetProcessName(), G4VEmProcess::SetCrossSectionBiasingFactor(), G4VEnergyLossProcess::SetCrossSectionBiasingFactor(), and test::v.

Referenced by G4EnergyLossMessenger::SetNewValue().

426 {
427  const std::vector<G4VEnergyLossProcess*>& v =
428  theManager->GetEnergyLossProcessVector();
429  std::vector<G4VEnergyLossProcess*>::const_iterator itr;
430  for(itr = v.begin(); itr != v.end(); ++itr) {
431  G4VEnergyLossProcess* p = *itr;
432  if(p) {
433  if (p->GetProcessName() == name) {
434  p->SetCrossSectionBiasingFactor(val, flag);
435  }
436  }
437  }
438  const std::vector<G4VEmProcess*>& w =
439  theManager->GetEmProcessVector();
440  std::vector<G4VEmProcess*>::const_iterator itp;
441  for(itp = w.begin(); itp != w.end(); itp++) {
442  G4VEmProcess* q = *itp;
443  if(q) {
444  if (q->GetProcessName() == name) {
445  q->SetCrossSectionBiasingFactor(val, flag);
446  }
447  }
448  }
449 }
const char * p
Definition: xmltok.h:285
const XML_Char * name
const std::vector< G4VEmProcess * > & GetEmProcessVector()
void SetCrossSectionBiasingFactor(G4double f, G4bool flag=true)
void SetCrossSectionBiasingFactor(G4double f, G4bool flag=true)
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
const std::vector< G4VEnergyLossProcess * > & GetEnergyLossProcessVector()
void G4EmProcessOptions::SetRandomStep ( G4bool  val)

Definition at line 165 of file G4EmProcessOptions.cc.

References G4LossTableManager::SetRandomStep().

Referenced by G4EnergyLossMessenger::SetNewValue().

166 {
167  theManager->SetRandomStep(val);
168 }
void SetRandomStep(G4bool val)
void G4EmProcessOptions::SetSkin ( G4double  val)

Definition at line 330 of file G4EmProcessOptions.cc.

References G4LossTableManager::GetMultipleScatteringVector().

Referenced by PhysListEmStandardGS::ConstructProcess(), and G4EnergyLossMessenger::SetNewValue().

331 {
332  if(val < 0.0) return;
333  const std::vector<G4VMultipleScattering*>& u =
334  theManager->GetMultipleScatteringVector();
335  std::vector<G4VMultipleScattering*>::const_iterator itm;
336  for(itm = u.begin(); itm != u.end(); itm++) {
337  if(*itm) { (*itm)->SetSkin(val); }
338  }
339 }
const std::vector< G4VMultipleScattering * > & GetMultipleScatteringVector()
void G4EmProcessOptions::SetSplineFlag ( G4bool  val)
void G4EmProcessOptions::SetStepFunction ( G4double  v1,
G4double  v2 
)
void G4EmProcessOptions::SetSubCutoff ( G4bool  val,
const G4Region r = 0 
)
void G4EmProcessOptions::SetVerbose ( G4int  val,
const G4String name = "all",
G4bool  worker = false 
)

Definition at line 192 of file G4EmProcessOptions.cc.

References G4LossTableManager::GetEmProcessVector(), G4LossTableManager::GetEnergyLossProcessVector(), G4LossTableManager::GetMultipleScatteringVector(), G4VProcess::GetProcessName(), G4Threading::IsWorkerThread(), G4LossTableManager::SetVerbose(), G4VProcess::SetVerboseLevel(), and test::v.

Referenced by G4EmLivermorePolarizedPhysics::ConstructProcess(), G4EmLowEPPhysics::ConstructProcess(), G4EmLivermorePhysics::ConstructProcess(), G4EmPenelopePhysics::ConstructProcess(), PhysicsList::ConstructProcess(), G4EmUserPhysics::ConstructProcess(), G4EmStandardPhysics_option3::ConstructProcess(), G4EmStandardPhysics::ConstructProcess(), G4EmStandardPhysics_option4::ConstructProcess(), G4EmStandardPhysics_option1::ConstructProcess(), G4EmStandardPhysics_option2::ConstructProcess(), and G4EnergyLossMessenger::SetNewValue().

194 {
195  G4bool all = false;
196  if("all" == name) { all = true; }
197 
198  if(worker && !G4Threading::IsWorkerThread()) { return; }
199  else if(!worker && G4Threading::IsWorkerThread()) { return; }
200 
201  if(all) {
202  theManager->SetVerbose(val);
203  return;
204  }
205 
206  const std::vector<G4VEnergyLossProcess*>& v =
207  theManager->GetEnergyLossProcessVector();
208  std::vector<G4VEnergyLossProcess*>::const_iterator itr;
209  for(itr = v.begin(); itr != v.end(); ++itr) {
210  G4VEnergyLossProcess* p = *itr;
211  if(p) {
212  if (p->GetProcessName() == name) { p->SetVerboseLevel(val); }
213  }
214  }
215  const std::vector<G4VEmProcess*>& w =
216  theManager->GetEmProcessVector();
217  std::vector<G4VEmProcess*>::const_iterator itp;
218  for(itp = w.begin(); itp != w.end(); itp++) {
219  G4VEmProcess* q = *itp;
220  if(q) {
221  if (q->GetProcessName() == name) { q->SetVerboseLevel(val); }
222  }
223  }
224  const std::vector<G4VMultipleScattering*>& u =
225  theManager->GetMultipleScatteringVector();
226  std::vector<G4VMultipleScattering*>::const_iterator itm;
227  for(itm = u.begin(); itm != u.end(); itm++) {
228  G4VMultipleScattering* msc = *itm;
229  if(s) {
230  if (msc->GetProcessName() == name) { msc->SetVerboseLevel(val); }
231  }
232  }
233 }
const XML_Char * s
const char * p
Definition: xmltok.h:285
const XML_Char * name
const std::vector< G4VEmProcess * > & GetEmProcessVector()
bool G4bool
Definition: G4Types.hh:79
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
const std::vector< G4VEnergyLossProcess * > & GetEnergyLossProcessVector()
G4bool IsWorkerThread()
Definition: G4Threading.cc:104
void SetVerbose(G4int val)
const std::vector< G4VMultipleScattering * > & GetMultipleScatteringVector()
void SetVerboseLevel(G4int value)
Definition: G4VProcess.hh:437

The documentation for this class was generated from the following files: