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

Question histogram 

Forum: Analysis
Date: 11 Jul, 2013
From: Dipanwita Banerjee <Dipanwita Banerjee>

Hello,
  I am trying to create 1D histograms. The value that will fill the histograms varies from 0 to 5*mm with a probable mean of 0.1*mm. I was using the example B4. I set the histogram parameters as 

analysismanager-> CreateH1("1","deltaX",200,0,5*mm)

My problem is its compiling fine and showing me the values as well. It is also creating the root file. I have root installed and running but when I try to view the histogram root file with TBrowser it says

Error in <TFile::ReadBuffer>: error reading all requested bytes from file annhisto.root, got 168 of 300
Error in <TFile::Init>: annhisto.root failed to read the file type data.

I have not used root before and am new to Geant so I am not sure if I am compiling it right.

I am compiling the same way i was without root under my build directory of the example in my terminal using "make". To start root I then type

root

then

new TBrowser

I then open the file from that browser when I get that error message.

Please tell me what the problem is. Any help is appreciated.

Thanks, Dipanwita

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

1 None: Re: histogram   (Ivana Hrivnacova - 12 Jul, 2013)
(_ None: Re: histogram   (Dipanwita Banerjee - 12 Jul, 2013)
(_ Question: Re: histogram   (Dipanwita Banerjee - 16 Jul, 2013)
(_ None: Re: histogram   (Ivana Hrivnacova - 16 Jul, 2013)
(_ None: Re: histogram   (Dipanwita Banerjee - 16 Jul, 2013)
 Add Message Add Message
to: "histogram"

 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 ]