Problem 1714 - Error in Example B4c file geant4_10_01/examples/basic/B4/B4c/src/B4cEventAction.cc on line 121
Summary: Error in Example B4c file geant4_10_01/examples/basic/B4/B4c/src/B4cEventActi...
Status: RESOLVED FIXED
Alias: None
Product: Examples/Basic and Novice
Classification: Unclassified
Component: B4 (show other problems)
Version: 10.1
Hardware: PC Linux
: P5 minor
Assignee: Ivana Hrivnacova
URL:
Depends on:
Blocks:
 
Reported: 2015-02-16 13:56 CET by Philipp Goecke
Modified: 2015-02-18 15:36 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Philipp Goecke 2015-02-16 13:56:09 CET
file geant4_10_01/examples/basic/B4/B4c/src/B4cEventAction.cc on line 121:
B4cCalorHit* gapHit = (*gapHC)[absoHC->entries()-1];

and it sould be:
B4cCalorHit* gapHit = (*gapHC)[gapHC->entries()-1];
Comment 1 Ivana Hrivnacova 2015-02-18 15:36:20 CET
Hello,

Thank you for reporting the problem; it has been fixed in the development version. 
Note that it did not affect the results, as the number of entries for the "gap" hit collection is equal to those of "abso" hit collection.

Best regards,