Problem 1525

Summary: G4ScoringBox.cc bug
Product: Geant4 Reporter: Li Chuanlong <chuanlong.li>
Component: digits_hits/utilsAssignee: asai
Status: RESOLVED FIXED    
Severity: trivial    
Priority: P5    
Version: 9.6   
Hardware: All   
OS: All   

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