Problem 1525 - G4ScoringBox.cc bug
Summary: G4ScoringBox.cc bug
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: digits_hits/utils (show other problems)
Version: 9.6
Hardware: All All
: P5 trivial
Assignee: asai
URL:
Depends on:
Blocks:
 
Reported: 2013-09-25 07:10 CEST by Li Chuanlong
Modified: 2013-10-05 09:57 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 Li Chuanlong 2013-09-25 07:10:37 CEST
423 if(idxColumn<0 || idxColumn>=fNSegment[idxProj])
424   {
425     G4cerr << "ERROR : Column number " << idxColumn << " is out of scoring mesh [0," << fNSegment[idxProj]-1 <<
426     "]. Method ignored." << G4endl;
427     return;
428   }

"fNSegment[idxProj]" in line 423 and 425 should be "fNSegment[2-idxProj]"

The bug will make draw wrong position column with cmd "score/drawColumn".
Comment 1 Li Chuanlong 2013-09-25 07:18:34 CEST
in example RE03, in run2.mac
boxMesh_2c nbins is 50 50 25.
when use cmd "/score/drawColumn boxMesh_2c nOfStepGamma 0 49"
the column with xy plane will be out of the mesh box_2c.
but the bins along z axes is 25

and bins along x axes is 50 ,it can only draw  
"/score/drawColumn boxMesh_2c nOfStepGamma 2 24"

"/score/drawColumn boxMesh_2c nOfStepGamma 2 49" with get error messeage "49 is out of 24".
Comment 2 asai 2013-09-25 10:56:54 CEST
Thank you for reporting this issue.
Makoto
Comment 3 asai 2013-10-05 09:57:59 CEST
Thank you once again for reporting this issue. The fix will be delivered with the next public release.
Makoto