[Gate-users] sine movement
Marc Chamberland
MarcChamberland at cmail.carleton.ca
Mon Jul 16 16:17:05 CEST 2012
Hi again, Regina!
I had a quick look at the source code for the sine motion in Gate and I think it would be easy to make it a sine to the fourth power.
Look at the file GateOscTranslationMove.cc which you will find under [your Gate installation folder]/source/geometry/src/
On line 53 of that file, you see the following:
m_currentTranslation = m_amplitude * sin ( 2. * M_PI * m_frequency * aTime + m_phase);
I think you could simply change it to the following:
m_currentTranslation = m_amplitude * pow( sin ( 2. * M_PI * m_frequency * aTime + m_phase), 4);
After you make the change, you will need to save the file, then re-compile Gate.
I hope this helps!
Marc
__________________________
Marc Chamberland, MSc
PhD candidate
Department of Physics
Carleton University
Ottawa (ON)
Le 2012-07-16 à 3:11 AM, Regina Eichner a écrit :
> Hi Gate-users,
>
> I am using GATE for PET simulations. And I wanted to know if anybody
> knows if there is a way to simulate a sine function or for example the
> sin-to-the-fourth-function for phantom or source movement, respectively,
> in GATE?
>
> Thanks a lot,
> Regina Eichner
>
>
> ==============================================================================================================
> Disclaimer MAASTRO clinic:
>
> Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van het bericht te vernietigen.
>
> This message shall not constitute any obligations. This message is intended solely for the addressee. If you have received this message in error, please inform us immediately and delete its contents.
> ==============================================================================================================
> _______________________________________________
> 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