A TSimpleAnalysis object creates histograms from a TChain.
These histograms are stored to an output file. The histogrammed (TTreeFormula) expressions, their cuts, the input and output files are configured through a simple config file that allows comments starting with '#'. Here an example of configuration file:
# This is an example of configuration file
file_output.root #the
output file in which histograms are stored
# The next line has the name of the tree of the input data. It is
# optional if there is exactly one tree in the first input file.
# The lines of the next block correspond to .root input files that
# contain the tree
# The next block is composed by lines that allow to configure the
# histograms. They have the following syntax:
# NAME = EXPRESSION if CUT
# which corresponds to chain->Draw("EXPRESSION >> NAME", "CUT")
# i.e. it will create a histogram called NAME and store it in
# file_output.root.
# "if CUT" is optional
hpx=px
if px<-3 #
first histogram
# End of the configuration file
static constexpr double second
static void output(int code)
It is possible to use the script rootdrawtree that allows to use the class just in command line through the bash shell.
Definition at line 33 of file TSimpleAnalysis.h.