Message: Histogram starting from -0.5 x-axis Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Histogram starting from -0.5 x-axis 

Forum: Analysis
Date: 21 Aug, 2016
From: <jeonyboy@gmail.com>

Hello, geant4 users.

When I use hadr06 example to find energy deposit on neutron I put 0 as valMin in the macro file like so "/analysis/h1/set 1 100 0. 100 MeV #Edep"

However, when I extract the data from the created rootfile using this command: "TFile *f = TFile::Open("run2.root"); TH1D *h2 = (TH1D *)f->Get("1"); h2->Print("all"); > h2.txt"

I get value starting from -0.5 instead of 0.

If I change the valMin to 0.5, the x-axis starts from 0.0025.

I don't understand what is the correlation between the command and the result. Can someone help me understand?

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2016/08/21/23.57-5094-h3.txt
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2016/08/21/23.57-37708-h2.txt

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

1 None: Re: Histogram starting from -0.5 x-axis   (Ivana Hrivnacova - 24 Aug, 2016)
(_ None: Re: Histogram starting from -0.5 x-axis   (jeonyboy@gmail.com - 25 Aug, 2016)
(_ None: Re: Histogram starting from -0.5 x-axis   (Ivana Hrivnacova - 25 Aug, 2016)
(_ None: Re: Histogram starting from -0.5 x-axis   (jeonyboy@gmail.com - 28 Aug, 2016)
(_ None: Re: Histogram starting from -0.5 x-axis   (Michael H. Kelsey - 29 Aug, 2016)
(_ None: Re: Histogram starting from -0.5 x-axis   (jeonyboy@gmail.com - 30 Aug, 2016)
 Add Message Add Message
to: "Histogram starting from -0.5 x-axis"

 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 ]