Problem 1011 - most getters in example code are incorrect
Summary: most getters in example code are incorrect
Status: RESOLVED FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Application Developers Guide (show other problems)
Version: 9.1
Hardware: All All
: P5 normal
Assignee: Katsuya.Amako
URL: http://geant4.web.cern.ch/geant4/User...
Depends on:
Blocks:
 
Reported: 2008-05-15 19:31 CEST by Brian Fisher
Modified: 2009-06-02 14:37 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 Brian Fisher 2008-05-15 19:31:39 CEST
most of the getters in example code on the documentation page:

http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/ch08s05.html

are incorrect.  Perhaps they are from an older version.  For example,

G4HCofThisEvent * HCE = evt->get_HCofThisEvent();

should actually be

G4HCofThisEvent * HCE = evt->GetHCofThisEvent();

There are several problems like this on this page.
Comment 1 Katsuya.Amako 2008-05-16 04:36:15 CEST
Thank you for your report.

Correction to the problems you pointed out will be included
in the next version of G4 documents. The new version will be
open to public in accordance with the next Geant4 code release.

Regards,
Katsuya Amako
Comment 2 Gabriele Cosmo 2009-06-02 14:37:34 CEST
Corrected text is now online.