Example mca (samples file), cut file and plot file for xtracks using the TTHAnalysis framework
Usage:
python mcPlots.py -l 41.37 -P /data1/gpetrucc/XTracks_SR_MC xtracks/mca.txt xtracks/cuts-SR.txt xtracks/plots-SR.txt --pdir plots/94X/xtracks/test/SR -f -j 8
-P is the path to the files (works also from eos, but it's slower)
-l is the luminosity
-f (=final) means to do the plots after all cuts, and not for each entry of the cut flow
--pdir is the directory where to save the plots (will be created if missing, and the index.php is added automatically)
the cut file has "cut name : cut string" (where the cut name is useful to modify the cuts from the command line, see the options in tree2yields.py)
the mca file has "proces name : directory : xsec : extra weight ; options" ; the process name is useful to select (-p) or exclude (--xp) processes from command line (see mcAnalysis.py)
the plot file has "name : expression : bins ; options"; the name again can be used to select/exclude plots (-sP/--xP) from the command line; mcPlots.py has also several other options to define the plots (e.g. whether to stack, not stack, or normalize the contributions; whether to show the signal in the stack or as outline, to add data/mc ratio, ...)
Example mca (samples file), cut file and plot file for xtracks using the TTHAnalysis framework Usage:
python mcPlots.py -l 41.37 -P /data1/gpetrucc/XTracks_SR_MC xtracks/mca.txt xtracks/cuts-SR.txt xtracks/plots-SR.txt --pdir plots/94X/xtracks/test/SR -f -j 8
-P
is the path to the files (works also from eos, but it's slower)-l
is the luminosity-f
(=final) means to do the plots after all cuts, and not for each entry of the cut flow--pdir
is the directory where to save the plots (will be created if missing, and the index.php is added automatically)-p
) or exclude (--xp
) processes from command line (see mcAnalysis.py)-sP/--xP
) from the command line; mcPlots.py has also several other options to define the plots (e.g. whether to stack, not stack, or normalize the contributions; whether to show the signal in the stack or as outline, to add data/mc ratio, ...)