Message: Re: Output data as root file Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Output data as root file 

Forum: Analysis
Re: Question Output data as root file (Zack Snyder)
Re: Question Re: Output data as root file (Zack Snyder)
Re: None Re: Output data as root file (Ivana Hrivnacova)
Re: Question Re: Output data as root file (Zack Snyder)
Date: 14 Jun, 2013
From: Zack Snyder <Zack Snyder>

Good afternoon,

I have tried to implement code to create histograms directly from my data during the simulation but something is wrong. I followed the examples given on page 8 of the following:

http://indico.cern.ch/getFile.py/access?contribId=30&resId=0&materialId=slides&confId=217511

Everything compiles correctly, however, after shooting one particle to test the code, the following message arises at the end of the data:

tools::wroot::to : TH1D_stream failed.

-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : Analysis_W003
      issued by : G4RootAnalysisManager::Write()
      saving histogram 0 failed
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------

and trying to view the root file in TBrowser results in this message:

root [1] Error in <TFile::ReadBuffer>: error reading all requested bytes from file project1.root, got 284 of 300 Error in <TFile::Init>: project1.root failed to read the file type data. (class TFile*)0x16c0fef0

As I said, everything compiles correctly after implementing the code from the above linked website but it seems to have problems writing and saving the root file.

Thanks, Zack

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

1 None: Re: Output data as root file   (Ivana Hrivnacova - 14 Jun, 2013)
1 Question: Re: Output data as root file   (Zack Snyder - 18 Jun, 2013)
2 None: Re: Output data as root file   (Ivana Hrivnacova - 19 Jun, 2013)
 Add Message Add Message
to: "Re: Output data as root file"

 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 ]