[Gate-users] Time of flight

Tahereh Niknejad tahereh.nik at gmail.com
Wed Jan 15 19:29:04 CET 2014


Thank you Marc.
It works.

Cheers,
Tahereh


On Wed, Jan 15, 2014 at 6:17 PM, Marc Chamberland <
MarcChamberland at cmail.carleton.ca> wrote:

> Then, I believe (someone correct me), that you could do the following:
>
> std::cout << setprecision(9) << time1;
>
> or whatever precision you want (up to however many digits a 'double' can
> have... I'm not sure).
>
> Marc
>
>
>
> __________________________
>
> Marc Chamberland, MSc
> PhD candidate
> Department of Physics
> Carleton University
> Ottawa (ON)
>
> On Jan 15, 2014, at 12:52, Tahereh Niknejad <tahereh.nik at gmail.com> wrote:
>
> > Dear Marc,
> >
> > Thank you for your reply.
> > Yes, now I can see the time difference between two photons.
> > But, my question was that when I cout the time1 and time2, both times
> are the same because there is a limitation in the number of digits.
> >
> > Is there any way to handle it?
> >
> > Best
> > Tahereh
> >
> >
> > On Tue, Jan 14, 2014 at 8:05 PM, Marc Chamberland <
> MarcChamberland at cmail.carleton.ca> wrote:
> > Hi Tahereh,
> >
> > I'm not sure how you are looking at the time, if you see 6 digits after
> the decimal point...
> >
> > I use TOF from my Root output and I get numbers that make sense. They
> are stored as "double" precision.
> >
> > Try the following Root script, attached to this message. If the list
> rejects my attachment, just send me another email and I'll resend the
> script to you.
> >
> > Cheers,
> > Marc
> >
> >
> >
> > __________________________
> >
> > Marc Chamberland, MSc
> > PhD candidate
> > Department of Physics
> > Carleton University
> > Ottawa (ON)
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20140115/4bc2dbe3/attachment.html>


More information about the Gate-users mailing list