Problem 2540 - Possible issue in 'Optical Photon Processes' section of BookForApplicationDevelopers
Summary: Possible issue in 'Optical Photon Processes' section of BookForApplicationDev...
Status: RESOLVED FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Application Developers Guide (show other problems)
Version: 11.1
Hardware: PC Linux
: P4 major
Assignee: Daren Sawkey
URL:
: 2544 (view as problem list)
Depends on:
Blocks:
 
Reported: 2023-04-24 17:46 CEST by S.Y. Chen
Modified: 2023-07-24 23:51 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description S.Y. Chen 2023-04-24 17:46:51 CEST
Hello,

When I was doing simulation of a scintillator in Geant4V11.1.1, I found some contradiction bewteen the BOOK and the CODE.

In Scintillation/configuration section (https://geant4-userdoc.web.cern.ch/UsersGuides/ForApplicationDeveloper/html/TrackingAndPhysics/physicsProcess.html#id1), the BOOK says that:
"These parameters are available to configure the scintillation process. 
...
Multiply the yield by a constant factor. Used when more than one scintillation process is defined in the user’s physics list.
C++ statement: G4OpticalParameters::Instance()->SetScintYieldFactor(G4double val)
...
Set the ratio of emitted photons of the fast and slow decay components. Used when more than one scintillation process is defined in the user’s physics list.
C++ statement: G4OpticalParameters::Instance()->SetScintExcitationRatio(G4double val)".

But after adding these two parameters into my main.cc, there is an error says:"class G4OpticalParameters has no member named 'SetScintYieldFactor' and 'SetScintExcitationRatio'". I also checked 'G4OpticalParameters.hh' and the newest Geant4 class reference, and didn't find the two members above.

That's all. Besh wishes!
Comment 1 Gabriele Cosmo 2023-05-17 09:01:53 CEST
*** Problem 2544 has been marked as a duplicate of this problem. ***
Comment 2 Daren Sawkey 2023-07-24 23:51:47 CEST
Hi, thank you for reporting this. Indeed, parameters that were removed from the code were left in the documentation:
/process/optical/scintillation/setEnhancedTimeConstants, setYieldFactor, and setExcitationRatio.
These have now been removed from the documentation source, but won't appear on the documentation website until the next version is released in December.