Skip to content
pequegnot edited this page Feb 13, 2014 · 2 revisions

Presentation

Extractor2Histo> cd ../

At this step, you make plots of the histograms created in step 2. Note that plotIt is a standalone sub-repository that can works independently of the Mtt tools. plotIt_mtt is a repository using plotIt adapted to Mtt tools.

How to use it

To be able to use plotIt_mtt, you first have to compile plotIt repository.

MttTools> cd plotIt
plotIt> source setup_lyoserv_env.sh
plotIt> cd external
external> ./build-external.sh
external> cd ../
plotIt> make
plotIt> cd ../

The script used in plotIt_mtt runs on the root files generated in step 2 thanks to Extracted2Histo, so you need to create symbolic links to these files. To do this, follow the instructions below:

MttTools> cd Extractor2Histo/plots
plots> ln -s <aDate> Latest
plots> cd ../../plotIt_mtt
plotIt_mtt> mkdir inputs
plotIt_mtt> cd inputs
inputs> ln -s ../../Extractor2Histo/plots/Latest .
inputs> cd ../

The .yml files are configurations files for plotIt. They are all built following 3 blocs:

  1. configuration: Specify here the size of your plots, the title, the total luminosity (if it is always the same in your different datasets) and its error etc. ...

  2. files: Precise here the name of the root files you want to run on. The name is given from the path specify in "root" in the configuration bloc. The files can be of 3 types that you have to specify: mc, signal or data. If the file is mc type, you have to precize the cross-section and the number of generated events in order to normalize the MC plots to the data ones.

  3. plots: Specify here the histograms plots you want to draw.

The command to run the script is:

plotIt_mtt> ../plotIt/plotIt -o myOutputPlotsFolder myConfig.yml

where:

  • myOutputPlotsFolder is the name of the folder where you want to store your plots ;
  • myConfig.yml is your configuration file.

You have to run plotIt for "requiring exactly 1 b-tagged jet" and for "requiring at least 2 b-tagged" selections, and for each of those, for both semi-electronic and semi-muonic channels. Actually, the plotAll.sh script does it automatically for you. It saves the plots in the plots/<aDate>, classified into 1-btag or 2-btag, and then semie or semimu (the directories are created automatically by the script).

Finally, type the following command to run the plotAll.sh script:

plotIt_mtt> ./plotAll.sh

Clone this wiki locally