You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This originates from accessing the first element of m_treesHit in GateToRoot::RecordEndOfAcquisition().
However, m_treesHit is cleared in GateToRoot::RecordEndOfRun(), so the access fails and produces a segfault.
Perhaps clearing m_treesHit at the end of a run is not good in this case:
Indeed I need to fix it! Could you, please, share your macros that I could reproduce the seg fault? (possible by email : kochebina at gmail dot com)
For the sequence it is:
RecordBeginOfAcquisiton()
RecordBeginOfRun()
RecordBeginOfEvent()
RecordBeginOfEvent()
RecordEndOfRun()
RecordEndOfAcquisition()
I started to clear m_treesHit in RecordEndOfRun() for the case when one wants to simulate several runs un the same aquisition. I'll check what to do with that
I see a segfault when using a SinglesDigitizer together with ROOT output:
This originates from accessing the first element of
m_treesHit
inGateToRoot::RecordEndOfAcquisition()
.However,
m_treesHit
is cleared inGateToRoot::RecordEndOfRun()
, so the access fails and produces a segfault.Perhaps clearing
m_treesHit
at the end of a run is not good in this case:Gate/source/digits_hits/src/GateToRoot.cc
Line 682 in a1f0a36
I am not sure about the sequence of which methods get called when, but I am reckoning that
RecordBeginOfAcquisiton()
andRecordEndOfAcquisition()
are called on a greater scope compared to the
RecordBeginOfRun()
andRecordEndOfRun()
methods.
This would imply, that when
RecordEndOfAcquisition()
is called,m_treesHit
has been cleared from the last invocation ofRecordEndOfRun()
.Perhaps it is better to call
m_treesHit.clear()
right before the container is filled inRecordBeginOfRun()
.The text was updated successfully, but these errors were encountered: