parser.add_argument('-hs','--histo',default=[],nargs='*',dest='histoName',help='Expression to build histograms in the form "histoName=histo if histoCut"')
description=textwrap.dedent('''\
Python script that loops over a chain to create histograms.
There are two ways to do it: one is parsing the name of the configuration file as argument,
that must have a proper syntax as shown in the class documentation of TSimpleAnalysis.
Example:
user@users-desktop:~$ rootdrawtree input_file.txt # input_file.txt is the configuration file
The other way is to pass as arguments the name of the output file, the name of the .root input
files, the expressions (that will be shown in the histograms) and the name of the tree (that
is optional if there is only one tree inside the first .root input file).
parser.add_argument('-t','--tree',default='',action='store',dest='tree',help='Name of the tree')
parser.add_argument('-hs','--histo',default=[],nargs='*',dest='histoExpr',help='Expressions to build the histograms in the form "NAME = EXPRESSION if CUT"')
args=parser.parse_args()
args=parser.parse_args()
if (args.inputFile!=''andargs.output==''orargs.root==[]orargs.ntupla==''orargs.histoName==[]):