Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4OpticalParameters Class Reference

#include <G4OpticalParameters.hh>

Public Member Functions

 ~G4OpticalParameters ()
void SetDefaults ()
void StreamInfo (std::ostream &os) const
void Dump () const
void SetVerboseLevel (G4int)
G4int GetVerboseLevel () const
void SetProcessActivation (const G4String &, G4bool)
G4bool GetProcessActivation (const G4String &) const
void SetCerenkovMaxPhotonsPerStep (G4int)
G4int GetCerenkovMaxPhotonsPerStep () const
void SetCerenkovVerboseLevel (G4int)
G4int GetCerenkovVerboseLevel () const
void SetCerenkovMaxBetaChange (G4double)
G4double GetCerenkovMaxBetaChange () const
void SetCerenkovTrackSecondariesFirst (G4bool)
G4bool GetCerenkovTrackSecondariesFirst () const
void SetCerenkovStackPhotons (G4bool)
G4bool GetCerenkovStackPhotons () const
void SetCerenkovOffloadPhotons (G4bool)
G4bool GetCerenkovOffloadPhotons () const
void EnableCerenkovGeneral (G4bool)
G4bool CerenkovGeneral () const
void SetScintByParticleType (G4bool)
G4bool GetScintByParticleType () const
void SetScintTrackInfo (G4bool)
G4bool GetScintTrackInfo () const
void SetScintTrackSecondariesFirst (G4bool)
G4bool GetScintTrackSecondariesFirst () const
void SetScintFiniteRiseTime (G4bool)
G4bool GetScintFiniteRiseTime () const
void SetScintStackPhotons (G4bool)
G4bool GetScintStackPhotons () const
void SetScintVerboseLevel (G4int)
G4int GetScintVerboseLevel () const
void SetScintOffloadPhotons (G4bool)
G4bool GetScintOffloadPhotons () const
void SetWLSTimeProfile (const G4String &)
G4String GetWLSTimeProfile () const
void SetWLSVerboseLevel (G4int)
G4int GetWLSVerboseLevel () const
void SetWLS2TimeProfile (const G4String &)
G4String GetWLS2TimeProfile () const
void SetWLS2VerboseLevel (G4int)
G4int GetWLS2VerboseLevel () const
void SetBoundaryVerboseLevel (G4int)
G4int GetBoundaryVerboseLevel () const
void SetBoundaryInvokeSD (G4bool)
G4bool GetBoundaryInvokeSD () const
void SetAbsorptionVerboseLevel (G4int)
G4int GetAbsorptionVerboseLevel () const
void SetRayleighVerboseLevel (G4int)
G4int GetRayleighVerboseLevel () const
void SetMieVerboseLevel (G4int)
G4int GetMieVerboseLevel () const
const std::vector< std::pair< G4XRayModelType, const G4String > > & ActiveVolumes () const
void SetActiveVolume (const G4String &name, G4XRayModelType type)

Static Public Member Functions

static G4OpticalParametersInstance ()

Friends

std::ostream & operator<< (std::ostream &os, const G4OpticalParameters &par)

Detailed Description

Definition at line 111 of file G4OpticalParameters.hh.

Constructor & Destructor Documentation

◆ ~G4OpticalParameters()

G4OpticalParameters::~G4OpticalParameters ( )

Definition at line 80 of file G4OpticalParameters.cc.

80{ delete theMessenger; }

Member Function Documentation

◆ ActiveVolumes()

const std::vector< std::pair< G4XRayModelType, const G4String > > & G4OpticalParameters::ActiveVolumes ( ) const

Definition at line 521 of file G4OpticalParameters.cc.

522{
523 return xrayVolumes;
524}

Referenced by G4GeneralCerenkov::PreparePhysicsTable().

◆ CerenkovGeneral()

G4bool G4OpticalParameters::CerenkovGeneral ( ) const

Definition at line 294 of file G4OpticalParameters.cc.

295{
296 return cerenkovGeneral;
297}

◆ Dump()

void G4OpticalParameters::Dump ( ) const

Definition at line 597 of file G4OpticalParameters.cc.

598{
599#ifdef G4MULTITHREADED
600 G4MUTEXLOCK(&opticalParametersMutex);
601#endif
603#ifdef G4MULTITHREADED
604 G4MUTEXUNLOCK(&opticalParametersMutex);
605#endif
606}
#define G4MUTEXLOCK(mutex)
#define G4MUTEXUNLOCK(mutex)
G4GLOB_DLL std::ostream G4cout
void StreamInfo(std::ostream &os) const

Referenced by G4OpticalPhysics::PrintStatistics().

◆ EnableCerenkovGeneral()

void G4OpticalParameters::EnableCerenkovGeneral ( G4bool val)

Definition at line 285 of file G4OpticalParameters.cc.

286{
287 if(IsLocked())
288 {
289 return;
290 }
291 cerenkovGeneral = val;
292}

◆ GetAbsorptionVerboseLevel()

G4int G4OpticalParameters::GetAbsorptionVerboseLevel ( ) const

Definition at line 487 of file G4OpticalParameters.cc.

488{
489 return absorptionVerboseLevel;
490}

◆ GetBoundaryInvokeSD()

G4bool G4OpticalParameters::GetBoundaryInvokeSD ( ) const

Definition at line 473 of file G4OpticalParameters.cc.

474{
475 return boundaryInvokeSD;
476}

Referenced by G4OpBoundaryProcess::Initialise().

◆ GetBoundaryVerboseLevel()

G4int G4OpticalParameters::GetBoundaryVerboseLevel ( ) const

Definition at line 459 of file G4OpticalParameters.cc.

460{
461 return boundaryVerboseLevel;
462}

Referenced by G4OpBoundaryProcess::Initialise().

◆ GetCerenkovMaxBetaChange()

G4double G4OpticalParameters::GetCerenkovMaxBetaChange ( ) const

◆ GetCerenkovMaxPhotonsPerStep()

G4int G4OpticalParameters::GetCerenkovMaxPhotonsPerStep ( ) const

◆ GetCerenkovOffloadPhotons()

G4bool G4OpticalParameters::GetCerenkovOffloadPhotons ( ) const

Definition at line 224 of file G4OpticalParameters.cc.

225{
226 return cerenkovOffloadPhotons;
227}

Referenced by G4QuasiCerenkov::Initialise().

◆ GetCerenkovStackPhotons()

G4bool G4OpticalParameters::GetCerenkovStackPhotons ( ) const

◆ GetCerenkovTrackSecondariesFirst()

G4bool G4OpticalParameters::GetCerenkovTrackSecondariesFirst ( ) const

Definition at line 280 of file G4OpticalParameters.cc.

281{
282 return cerenkovTrackSecondariesFirst;
283}

Referenced by G4QuasiCerenkov::Initialise(), G4GeneralCerenkov::PreparePhysicsTable(), G4Cerenkov::ProcessDescription(), and G4QuasiCerenkov::ProcessDescription().

◆ GetCerenkovVerboseLevel()

G4int G4OpticalParameters::GetCerenkovVerboseLevel ( ) const

◆ GetMieVerboseLevel()

G4int G4OpticalParameters::GetMieVerboseLevel ( ) const

Definition at line 515 of file G4OpticalParameters.cc.

516{
517 return mieVerboseLevel;
518}

◆ GetProcessActivation()

G4bool G4OpticalParameters::GetProcessActivation ( const G4String & process) const

Definition at line 196 of file G4OpticalParameters.cc.

197{
198 return processActivation.find(process)->second;
199}

Referenced by StreamInfo().

◆ GetRayleighVerboseLevel()

G4int G4OpticalParameters::GetRayleighVerboseLevel ( ) const

Definition at line 501 of file G4OpticalParameters.cc.

502{
503 return rayleighVerboseLevel;
504}

◆ GetScintByParticleType()

G4bool G4OpticalParameters::GetScintByParticleType ( ) const

◆ GetScintFiniteRiseTime()

G4bool G4OpticalParameters::GetScintFiniteRiseTime ( ) const

◆ GetScintOffloadPhotons()

G4bool G4OpticalParameters::GetScintOffloadPhotons ( ) const

Definition at line 375 of file G4OpticalParameters.cc.

376{
377 return scintOffloadPhotons;
378}

Referenced by G4QuasiScintillation::Initialise().

◆ GetScintStackPhotons()

G4bool G4OpticalParameters::GetScintStackPhotons ( ) const

◆ GetScintTrackInfo()

G4bool G4OpticalParameters::GetScintTrackInfo ( ) const

◆ GetScintTrackSecondariesFirst()

G4bool G4OpticalParameters::GetScintTrackSecondariesFirst ( ) const

◆ GetScintVerboseLevel()

G4int G4OpticalParameters::GetScintVerboseLevel ( ) const

◆ GetVerboseLevel()

G4int G4OpticalParameters::GetVerboseLevel ( ) const

Definition at line 164 of file G4OpticalParameters.cc.

164{ return verboseLevel; }

◆ GetWLS2TimeProfile()

G4String G4OpticalParameters::GetWLS2TimeProfile ( ) const

Definition at line 431 of file G4OpticalParameters.cc.

432{
433 return wls2TimeProfileName;
434}

Referenced by G4OpWLS2::Initialise().

◆ GetWLS2VerboseLevel()

G4int G4OpticalParameters::GetWLS2VerboseLevel ( ) const

Definition at line 445 of file G4OpticalParameters.cc.

446{
447 return wls2VerboseLevel;
448}

Referenced by G4OpWLS2::Initialise().

◆ GetWLSTimeProfile()

G4String G4OpticalParameters::GetWLSTimeProfile ( ) const

Definition at line 403 of file G4OpticalParameters.cc.

404{
405 return wlsTimeProfileName;
406}

Referenced by G4OpWLS::Initialise().

◆ GetWLSVerboseLevel()

G4int G4OpticalParameters::GetWLSVerboseLevel ( ) const

Definition at line 417 of file G4OpticalParameters.cc.

418{
419 return wlsVerboseLevel;
420}

Referenced by G4OpWLS::Initialise().

◆ Instance()

G4OpticalParameters * G4OpticalParameters::Instance ( )
static

Definition at line 59 of file G4OpticalParameters.cc.

60{
61 if(nullptr == theInstance)
62 {
63#ifdef G4MULTITHREADED
64 G4MUTEXLOCK(&opticalParametersMutex);
65 if(nullptr == theInstance)
66 {
67#endif
68 static G4OpticalParameters manager;
69 theInstance = &manager;
70#ifdef G4MULTITHREADED
71 }
72 G4MUTEXUNLOCK(&opticalParametersMutex);
73#endif
74 }
75 return theInstance;
76}

Referenced by G4OpticalPhysics::ConstructProcess(), G4OpticalPhysics::G4OpticalPhysics(), G4OpAbsorption::Initialise(), G4OpBoundaryProcess::Initialise(), G4OpMieHG::Initialise(), G4OpRayleigh::Initialise(), G4OpWLS2::Initialise(), G4OpWLS::Initialise(), G4QuasiCerenkov::Initialise(), G4QuasiScintillation::Initialise(), G4Scintillation::Initialise(), G4VXRayModel::Initialise(), G4GeneralCerenkov::PreparePhysicsTable(), G4OpticalPhysics::PrintStatistics(), G4Cerenkov::ProcessDescription(), G4QuasiCerenkov::ProcessDescription(), G4QuasiScintillation::ProcessDescription(), G4Scintillation::ProcessDescription(), G4QuasiScintillation::SetFiniteRiseTime(), G4Scintillation::SetFiniteRiseTime(), G4OpBoundaryProcess::SetInvokeSD(), G4Cerenkov::SetMaxBetaChangePerStep(), G4GeneralCerenkov::SetMaxBetaChangePerStep(), G4QuasiCerenkov::SetMaxBetaChangePerStep(), G4Cerenkov::SetMaxNumPhotonsPerStep(), G4GeneralCerenkov::SetMaxNumPhotonsPerStep(), G4QuasiCerenkov::SetMaxNumPhotonsPerStep(), G4QuasiCerenkov::SetOffloadPhotons(), G4QuasiScintillation::SetOffloadPhotons(), G4QuasiScintillation::SetScintillationByParticleType(), G4Scintillation::SetScintillationByParticleType(), G4QuasiScintillation::SetScintillationTrackInfo(), G4Scintillation::SetScintillationTrackInfo(), G4Cerenkov::SetStackPhotons(), G4GeneralCerenkov::SetStackPhotons(), G4QuasiCerenkov::SetStackPhotons(), G4QuasiScintillation::SetStackPhotons(), G4Scintillation::SetStackPhotons(), G4Cerenkov::SetTrackSecondariesFirst(), G4GeneralCerenkov::SetTrackSecondariesFirst(), G4QuasiCerenkov::SetTrackSecondariesFirst(), G4QuasiScintillation::SetTrackSecondariesFirst(), G4Scintillation::SetTrackSecondariesFirst(), G4Cerenkov::SetVerboseLevel(), G4GeneralCerenkov::SetVerboseLevel(), G4OpAbsorption::SetVerboseLevel(), G4OpBoundaryProcess::SetVerboseLevel(), G4OpMieHG::SetVerboseLevel(), G4OpRayleigh::SetVerboseLevel(), G4OpWLS2::SetVerboseLevel(), G4OpWLS::SetVerboseLevel(), G4QuasiCerenkov::SetVerboseLevel(), G4QuasiScintillation::SetVerboseLevel(), G4Scintillation::SetVerboseLevel(), G4OpWLS2::UseTimeProfile(), and G4OpWLS::UseTimeProfile().

◆ SetAbsorptionVerboseLevel()

void G4OpticalParameters::SetAbsorptionVerboseLevel ( G4int val)

Definition at line 478 of file G4OpticalParameters.cc.

479{
480 if(IsLocked())
481 {
482 return;
483 }
484 absorptionVerboseLevel = val;
485}

Referenced by G4OpAbsorption::SetVerboseLevel(), and SetVerboseLevel().

◆ SetActiveVolume()

void G4OpticalParameters::SetActiveVolume ( const G4String & name,
G4XRayModelType type )

Definition at line 526 of file G4OpticalParameters.cc.

528{
529 if(IsLocked()) {
530 return;
531 }
532 xrayVolumes.push_back(std::make_pair(type, lvname));
533}

◆ SetBoundaryInvokeSD()

void G4OpticalParameters::SetBoundaryInvokeSD ( G4bool val)

Definition at line 464 of file G4OpticalParameters.cc.

465{
466 if(IsLocked())
467 {
468 return;
469 }
470 boundaryInvokeSD = val;
471}

Referenced by G4OpBoundaryProcess::SetInvokeSD().

◆ SetBoundaryVerboseLevel()

void G4OpticalParameters::SetBoundaryVerboseLevel ( G4int val)

Definition at line 450 of file G4OpticalParameters.cc.

451{
452 if(IsLocked())
453 {
454 return;
455 }
456 boundaryVerboseLevel = val;
457}

Referenced by G4OpBoundaryProcess::SetVerboseLevel(), and SetVerboseLevel().

◆ SetCerenkovMaxBetaChange()

void G4OpticalParameters::SetCerenkovMaxBetaChange ( G4double val)

Definition at line 257 of file G4OpticalParameters.cc.

258{
259 if(IsLocked())
260 {
261 return;
262 }
263 cerenkovMaxBetaChange = val;
264}

Referenced by G4Cerenkov::SetMaxBetaChangePerStep(), G4GeneralCerenkov::SetMaxBetaChangePerStep(), and G4QuasiCerenkov::SetMaxBetaChangePerStep().

◆ SetCerenkovMaxPhotonsPerStep()

void G4OpticalParameters::SetCerenkovMaxPhotonsPerStep ( G4int val)

Definition at line 243 of file G4OpticalParameters.cc.

244{
245 if(IsLocked())
246 {
247 return;
248 }
249 cerenkovMaxPhotons = val;
250}

Referenced by G4Cerenkov::SetMaxNumPhotonsPerStep(), G4GeneralCerenkov::SetMaxNumPhotonsPerStep(), and G4QuasiCerenkov::SetMaxNumPhotonsPerStep().

◆ SetCerenkovOffloadPhotons()

void G4OpticalParameters::SetCerenkovOffloadPhotons ( G4bool val)

Definition at line 215 of file G4OpticalParameters.cc.

216{
217 if(IsLocked())
218 {
219 return;
220 }
221 cerenkovOffloadPhotons = val;
222}

Referenced by G4QuasiCerenkov::SetOffloadPhotons().

◆ SetCerenkovStackPhotons()

void G4OpticalParameters::SetCerenkovStackPhotons ( G4bool val)

Definition at line 201 of file G4OpticalParameters.cc.

202{
203 if(IsLocked())
204 {
205 return;
206 }
207 cerenkovStackPhotons = val;
208}

Referenced by G4Cerenkov::SetStackPhotons(), G4GeneralCerenkov::SetStackPhotons(), and G4QuasiCerenkov::SetStackPhotons().

◆ SetCerenkovTrackSecondariesFirst()

void G4OpticalParameters::SetCerenkovTrackSecondariesFirst ( G4bool val)

Definition at line 271 of file G4OpticalParameters.cc.

272{
273 if(IsLocked())
274 {
275 return;
276 }
277 cerenkovTrackSecondariesFirst = val;
278}

Referenced by G4Cerenkov::SetTrackSecondariesFirst(), G4GeneralCerenkov::SetTrackSecondariesFirst(), and G4QuasiCerenkov::SetTrackSecondariesFirst().

◆ SetCerenkovVerboseLevel()

void G4OpticalParameters::SetCerenkovVerboseLevel ( G4int val)

Definition at line 229 of file G4OpticalParameters.cc.

230{
231 if(IsLocked())
232 {
233 return;
234 }
235 cerenkovVerboseLevel = val;
236}

Referenced by G4Cerenkov::SetVerboseLevel(), G4GeneralCerenkov::SetVerboseLevel(), SetVerboseLevel(), and G4QuasiCerenkov::SetVerboseLevel().

◆ SetDefaults()

void G4OpticalParameters::SetDefaults ( )

Definition at line 92 of file G4OpticalParameters.cc.

93{
94 if(!IsLocked())
95 {
96 Initialise();
97 }
98}

◆ SetMieVerboseLevel()

void G4OpticalParameters::SetMieVerboseLevel ( G4int val)

Definition at line 506 of file G4OpticalParameters.cc.

507{
508 if(IsLocked())
509 {
510 return;
511 }
512 mieVerboseLevel = val;
513}

Referenced by G4OpMieHG::SetVerboseLevel(), and SetVerboseLevel().

◆ SetProcessActivation()

void G4OpticalParameters::SetProcessActivation ( const G4String & process,
G4bool val )

Definition at line 166 of file G4OpticalParameters.cc.

168{
169 // Configure the physics constructor to use/not use a selected process.
170 // This method can only be called in PreInit> phase (before execution of
171 // ConstructProcess). The process is not added to particle's process manager
172 // and so it cannot be re-activated later in Idle> phase with the command
173 // /process/activate.
174
175 if(IsLocked())
176 {
177 return;
178 }
179 if(processActivation[process] == val)
180 return;
181
182 // processActivation keys defined at initialisation
183 if(processActivation.find(process) != processActivation.end())
184 {
185 processActivation[process] = val;
186 }
187 else
188 {
190 ed << "Process name " << process << " out of bounds.";
191 G4Exception("G4OpticalParameters::SetProcessActivation()", "Optical013",
192 FatalException, ed);
193 }
194}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription

◆ SetRayleighVerboseLevel()

void G4OpticalParameters::SetRayleighVerboseLevel ( G4int val)

Definition at line 492 of file G4OpticalParameters.cc.

493{
494 if(IsLocked())
495 {
496 return;
497 }
498 rayleighVerboseLevel = val;
499}

Referenced by G4OpRayleigh::SetVerboseLevel(), and SetVerboseLevel().

◆ SetScintByParticleType()

void G4OpticalParameters::SetScintByParticleType ( G4bool val)

Definition at line 299 of file G4OpticalParameters.cc.

300{
301 if(IsLocked())
302 {
303 return;
304 }
305 scintByParticleType = val;
306}

Referenced by G4QuasiScintillation::SetScintillationByParticleType(), and G4Scintillation::SetScintillationByParticleType().

◆ SetScintFiniteRiseTime()

void G4OpticalParameters::SetScintFiniteRiseTime ( G4bool val)

Definition at line 338 of file G4OpticalParameters.cc.

339{
340 if(IsLocked())
341 {
342 return;
343 }
344 scintFiniteRiseTime = val;
345}

Referenced by G4QuasiScintillation::SetFiniteRiseTime(), and G4Scintillation::SetFiniteRiseTime().

◆ SetScintOffloadPhotons()

void G4OpticalParameters::SetScintOffloadPhotons ( G4bool val)

Definition at line 366 of file G4OpticalParameters.cc.

367{
368 if(IsLocked())
369 {
370 return;
371 }
372 scintOffloadPhotons = val;
373}

Referenced by G4QuasiScintillation::SetOffloadPhotons().

◆ SetScintStackPhotons()

void G4OpticalParameters::SetScintStackPhotons ( G4bool val)

Definition at line 352 of file G4OpticalParameters.cc.

353{
354 if(IsLocked())
355 {
356 return;
357 }
358 scintStackPhotons = val;
359}

Referenced by G4QuasiScintillation::SetStackPhotons(), and G4Scintillation::SetStackPhotons().

◆ SetScintTrackInfo()

void G4OpticalParameters::SetScintTrackInfo ( G4bool val)

Definition at line 313 of file G4OpticalParameters.cc.

314{
315 if(IsLocked())
316 {
317 return;
318 }
319 scintTrackInfo = val;
320}

Referenced by G4QuasiScintillation::SetScintillationTrackInfo(), and G4Scintillation::SetScintillationTrackInfo().

◆ SetScintTrackSecondariesFirst()

void G4OpticalParameters::SetScintTrackSecondariesFirst ( G4bool val)

Definition at line 324 of file G4OpticalParameters.cc.

325{
326 if(IsLocked())
327 {
328 return;
329 }
330 scintTrackSecondariesFirst = val;
331}

Referenced by G4QuasiScintillation::SetTrackSecondariesFirst(), and G4Scintillation::SetTrackSecondariesFirst().

◆ SetScintVerboseLevel()

void G4OpticalParameters::SetScintVerboseLevel ( G4int val)

Definition at line 380 of file G4OpticalParameters.cc.

381{
382 if(IsLocked())
383 {
384 return;
385 }
386 scintVerboseLevel = val;
387}

Referenced by SetVerboseLevel(), G4QuasiScintillation::SetVerboseLevel(), and G4Scintillation::SetVerboseLevel().

◆ SetVerboseLevel()

void G4OpticalParameters::SetVerboseLevel ( G4int val)

Definition at line 147 of file G4OpticalParameters.cc.

148{
149 if(IsLocked())
150 {
151 return;
152 }
153 verboseLevel = val;
154 SetCerenkovVerboseLevel(verboseLevel);
155 SetScintVerboseLevel(verboseLevel);
156 SetRayleighVerboseLevel(verboseLevel);
157 SetAbsorptionVerboseLevel(verboseLevel);
158 SetMieVerboseLevel(verboseLevel);
159 SetBoundaryVerboseLevel(verboseLevel);
160 SetWLSVerboseLevel(verboseLevel);
161 SetWLS2VerboseLevel(verboseLevel);
162}
void SetAbsorptionVerboseLevel(G4int)

Referenced by G4OpticalPhysics::G4OpticalPhysics().

◆ SetWLS2TimeProfile()

void G4OpticalParameters::SetWLS2TimeProfile ( const G4String & val)

Definition at line 422 of file G4OpticalParameters.cc.

423{
424 if(IsLocked())
425 {
426 return;
427 }
428 wls2TimeProfileName = val;
429}

Referenced by G4OpWLS2::UseTimeProfile().

◆ SetWLS2VerboseLevel()

void G4OpticalParameters::SetWLS2VerboseLevel ( G4int val)

Definition at line 436 of file G4OpticalParameters.cc.

437{
438 if(IsLocked())
439 {
440 return;
441 }
442 wls2VerboseLevel = val;
443}

Referenced by SetVerboseLevel(), and G4OpWLS2::SetVerboseLevel().

◆ SetWLSTimeProfile()

void G4OpticalParameters::SetWLSTimeProfile ( const G4String & val)

Definition at line 394 of file G4OpticalParameters.cc.

395{
396 if(IsLocked())
397 {
398 return;
399 }
400 wlsTimeProfileName = val;
401}

Referenced by G4OpWLS::UseTimeProfile().

◆ SetWLSVerboseLevel()

void G4OpticalParameters::SetWLSVerboseLevel ( G4int val)

Definition at line 408 of file G4OpticalParameters.cc.

409{
410 if(IsLocked())
411 {
412 return;
413 }
414 wlsVerboseLevel = val;
415}

Referenced by SetVerboseLevel(), and G4OpWLS::SetVerboseLevel().

◆ StreamInfo()

void G4OpticalParameters::StreamInfo ( std::ostream & os) const

Definition at line 541 of file G4OpticalParameters.cc.

542{
543 G4long prec = os.precision(5);
544 os
545 << "======================================================================="
546 << "\n";
547 os
548 << "====== Optical Physics Parameters ========"
549 << "\n";
550 os
551 << "======================================================================="
552 << "\n";
553
554 os << " Cerenkov process active: "
555 << GetProcessActivation("Cerenkov") << "\n";
556 os << " Cerenkov maximum photons per step: " << cerenkovMaxPhotons
557 << "\n";
558 os << " Cerenkov maximum beta change per step: " << cerenkovMaxBetaChange
559 << " %\n";
560 os << " Cerenkov stack photons: " << cerenkovStackPhotons
561 << "\n";
562 os << " Cerenkov track secondaries first: "
563 << cerenkovTrackSecondariesFirst << "\n";
564 os << " Scintillation process active: "
565 << GetProcessActivation("Scintillation") << "\n";
566 os << " Scintillation finite rise time: " << scintFiniteRiseTime
567 << "\n";
568 os << " Scintillation by particle type: " << scintByParticleType
569 << "\n";
570 os << " Scintillation record track info: " << scintTrackInfo << "\n";
571 os << " Scintillation stack photons: " << scintStackPhotons << "\n";
572 os << " Scintillation track secondaries first: " << scintTrackSecondariesFirst
573 << "\n";
574 os << " WLS process active: "
575 << GetProcessActivation("OpWLS") << "\n";
576 os << " WLS time profile name: " << wlsTimeProfileName
577 << "\n";
578 os << " WLS2 process active: "
579 << GetProcessActivation("OpWLS2") << "\n";
580 os << " WLS2 time profile name: " << wls2TimeProfileName
581 << "\n";
582 os << " Boundary process active: "
583 << GetProcessActivation("OpBoundary") << "\n";
584 os << " Boundary invoke sensitive detector: " << boundaryInvokeSD << "\n";
585 os << " Rayleigh process active: "
586 << GetProcessActivation("OpRayleigh") << "\n";
587 os << " MieHG process active: "
588 << GetProcessActivation("OpMieHG") << "\n";
589 os << " Absorption process active: "
590 << GetProcessActivation("OpAbsorption") << "\n";
591 os
592 << "======================================================================="
593 << "\n";
594 os.precision(prec);
595}
long G4long
Definition G4Types.hh:87
G4bool GetProcessActivation(const G4String &) const

Referenced by Dump(), and operator<<.

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const G4OpticalParameters & par )
friend

Definition at line 608 of file G4OpticalParameters.cc.

609{
610 par.StreamInfo(os);
611 return os;
612}

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