Update 'Utils3.py'

Renata Kopecná 2022-02-02 09:31:17 +01:00
parent c7edd75253
commit eacec24d0d

@ -1,10 +1,41 @@
Helper functions originally created for [[the comparison tool|Comparison-tool]]. However, as there are many more smart functions, the file is sourced also by other python scripts. Be sure to always include `Utils3.py` correctly! If it complains, first check the path of your included `Utils3.py`. Helper functions originally created for [[the comparison tool|Comparison-tool]]. However, as there are many more smart functions, the file is sourced also by other python scripts. Be sure to always include `Utils3.py` correctly! If it complains, first check the path of your included `Utils3.py`.
## Table of Contents
* [Classes](#classes)
* [ShowArgumentsParser()](#class-showargumentsparserargparseargumentparser)
* [Global variables](#global-variables)
* [intVarsList](#intvarslist)
* [Functions](#functions)
* [expressionList()](#expressionlist)
* [isInt()](#isint)
* [treeName()](#treename)
* [getOptionsDictionary(y)](#getoptionsdictionaryy)
* [checkYearSample()](#checkyearsample)
* [checkYearSample()](#checkyearsample-1)
* [getTreePath()](#gettreepath)
* [addToTChain()](#addtotchain)
* [addTMathTags()](#addtmathtags)
* [list_of_DTF_vars ()](#list_of_dtf_vars-)
* [replace_variables_to_DTF()](#replace_variables_to_dtf)
* [getListOfUsedVariables(](#getlistofusedvariables)
* [evaluateCut()](#evaluatecut)
* [makeVariablePythonFriendly()](#makevariablepythonfriendly)
* [evaluateVariable()](#evaluatevariable)
* [evaluateWeight()](#evaluateweight)
* [datasetTag()](#datasettag)
* [weightTag()](#weighttag)
* [KshortDecaysInVeloTag()](#kshortdecaysinvelotag)
* [variableTag()](#variabletag)
* [histName()](#histname)
* [def stopWatch()](#def-stopwatch)
* [getTreeWithPairingBranch()](#gettreewithpairingbranch)
* [checkMCyear()](#checkmcyear)
## Classes ## Classes
### class ShowArgumentsParser(argparse.ArgumentParser): ### ShowArgumentsParser(argparse.ArgumentParser)
Class used for pretty parser error printouts Class used for pretty parser error printouts
## Global variables ## Global variables