Message: Tracking resolution Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Tracking resolution 

Forum: Event and Track Management
Date: 14 Oct, 2013
From: <matt_b>

I am using my own SteppingVerbose file to get an x location of the particle track output. I use the following:

<< std::setw(6) << G4BestUnit(fTrack->GetPosition().x(),"x")

However I would like the value to 2 decimal places when I go over 10 cm. I changed the code to:

<< std::setw(6) << fTrack->GetPosition().x()

But my value that comes back is still only equivalent to 1 D.P. when the value is over 10 cm.

Is there a way to get this value to 2 decimal places? Or is this buried deep in the Geant4 code and not possible to change?

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Tracking resolution   (matt_b - 14 Oct, 2013)
2 None: Re: Tracking resolution   (michel maire - 14 Oct, 2013)
 Add Message Add Message
to: "Tracking resolution"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]