storing basic variables

From: Mario Kadastik <mario.kadastik_at_cern.ch>
Date: Wed, 12 Jan 2005 02:18:10 +0200


Hello,

how do I store a Float_t variable in a root file? I thought on saving it in a tree, but that didn't quite work as it will have a copy of the value in every new row. What I basically want to do is that from pythia I store my interesting information in a histogram which I dump at the end to a .dat file which I then read in with root to create a root tree for pT, Eta, Phi and so on. What I would like to save in addition is the cross section of that process which is just one float per datafile.

Ideas are welcome...

Mario

PS! any chance of filling data to root files directly from pythia? Received on Wed Jan 12 2005 - 01:19:16 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET