[Gate-users] Issues on voxelized dose calculations for a phantom
Alex Vergara Gil
alexvergaragil at gmail.com
Thu Apr 30 17:26:08 CEST 2015
Dear all
I think I have found a posible bug related to my issue (possible wrong
material handler in voxelized range translator, giving bad density
values and therefore bad dose calculations). In the file
GateGeometryVoxelRangeTranslator.cc, specifically in the function
G4String GateGeometryVoxelRangeTranslator::GetNextMaterial(G4bool doReset)
{
static GateVoxelMaterialTranslationRangeVector::iterator anIterator
= m_voxelMaterialTranslation.begin();
if (doReset)
anIterator = m_voxelMaterialTranslation.begin();
G4String aMaterial = ( anIterator!=m_voxelMaterialTranslation.end()
) ? anIterator->second : G4String("") ;
if (aMaterial!="")
anIterator++;
return aMaterial;
}
Here you may see that the iterator is initialized every time the
function is called, I think it is better to put the iterator as a
variable, but you know better than me, so please could you explain why
it is used a static iterator here?
Regards
Alex
2015-04-30 8:07 GMT-04:00, Kiran Joshi <kiran.j88 at gmail.com>:
> On Thu, 30 Apr 2015 at 13:01 Alex Vergara Gil <alexvergaragil at gmail.com>
> wrote:
>
>> Dear all
>>
>> Attached I explain my problems.
>>
>> Regards
>> Alex
>> _______________________________________________
>> Gate-users mailing list
>> Gate-users at lists.opengatecollaboration.org
>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>
More information about the Gate-users
mailing list