Problem 2540

Summary: Possible issue in 'Optical Photon Processes' section of BookForApplicationDevelopers
Product: Documentation Reporter: S.Y. Chen <573165693>
Component: Application Developers GuideAssignee: Daren Sawkey <daren.sawkey>
Status: RESOLVED FIXED    
Severity: major    
Priority: P4    
Version: 11.1   
Hardware: PC   
OS: Linux   

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.