[Rivet] converting 2D histogram from ROOT to AIDA file

Andy Buckley andy.buckley at ed.ac.uk
Mon Oct 22 17:53:19 BST 2012


Hi Roman,

I'm not sure that Rivet currently supports "autobooking" of analysis
histograms from 2D histos -- we've not yet had an analysis in which a 2D
histo was the main physics result (and would be possible with a single
MC run.) There are also obvious problems with plotting data/MC
comparisons on 2D plots! For that reason, compare-histos knows nothing
about them. I don't think HepData knows anything about how to handle 2D
histograms either, which will presumably be a bit of an issue for this
analysis when it comes to submitting the data.

So to convert a ROOT file of 2D histograms to AIDA you could write a
PyROOT script to dump out the appropriate XML -- this is pretty
straightforward. But I'm not sure how much can usefully be done with the
result. Are the 2D histos absolutely essential? They couldn't be reduced
to e.g. a bunch of 1D slices which can actually be used for visually
straightforward comparison?

I appreciate this is maybe an unpublished analysis that you're talking
about, and hence can't be shown on this open list, but if not can you
point us at it so we can see the problem data? :-)

Patches to improve Rivet are also very welcome! But note that the
histogramming is already being overhauled -- if you want to help out,
get in touch and we'll point you at the development version so you can
improve the 2D histogramming there.

Andy


On 19/10/12 10:32, Roman Lysak wrote:
> 
>   Dear Rivet authors,
> 
> I'm working on Rivet implementation of an analysis which creates 2D
> histogram and need to convert data histograms from .root to .aida file.
> I know one can convert 1D histograms (of graphs) from ROOT file into
> AIDA file by combination of 'root2flat' and 'flat2aida'.
> As far as I understand, root2flat is not working for 2D histograms.
> Do you know about some other tools (even unofficial) which would be able
> to do such conversion for 2D histograms?
> 
> Thanks a lot,
>   Roman
> _______________________________________________
> Rivet mailing list
> Rivet at projects.hepforge.org
> http://www.hepforge.org/lists/listinfo/rivet
> 


-- 
Dr Andy Buckley, SUPA Advanced Research Fellow
Particle Physics Expt Group, University of Edinburgh

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



More information about the Rivet mailing list