Using edmEventSize
Complete:
Goal of the page
This page documents the use a tool to measure the average size per event of each edm::Product present in an output file of a cmsRun job
Contacts
- Based on the original tool and algorithm by Luca Lista
- Author: Vincenzo Innocente
- Current Maintainer: Vincenzo Innocente
Introduction
edmEventSize is an executable command line tool that measures the compressed and plain size of each branch in a root tree.
Given the one-to-one mapping between edm::Products and root-branches it is a rather trivial task to compute the per-event average size (compressed and plain) of each
edm::Product.
The tool reports these sizes either on the screen or save them in a file that can be then post-processed to produce a graphics output.
Usage
edmEventSize is built with each CMSSW release and therefore available in the CMSSW running environment.
The most common use its to invoke it from the command line either as
edmEventSize -v file.root
or as
edmEventSize -o file.txt file.root
.
In the first case it will dump the content of
file.root
to the screen (mixed with various error messages from root), in the second to the
file.txt
file.
file.txt
can then be post-processed using the
PerfReport tool to provide a more user friendly output in form of a web-page.
Options exist to sort the output in alphabetic order, format the product name in a more easy to read form and to output the result as root histograms
in a root file or as plot in pgn format
The tool can actually be used to measure the size of any root tree (even if in case of an arbitrary tree some of the option may make no sense): just invoke it as
edmEventSize -v --tree-name nameOfTheTree file.root
Documentation
Online help can be obtained with the command
edmEventSize --help
.
Examples
Review status
Responsible:
VincenzoInnocente
Last reviewed by: Most recent reviewer