Tag & probe efficiency fitting method
This project was developed using ROOT, made available by CERN and the following Datasets:
From these two datasets, a .root
file was generated for each MuonId (i.e Standalone, Tracker or Global) using the get_root.C
and then stored on the \Data
folder, following the respective hierarchy.
The fitting method consists in dividing the quantity we want to use to calculate the efficiency into a certain amout of bins and then fitting the invariant mass of the muons (All and Passing) on the specified region. To compute the efficiency we simply divide the yield from the fit of the Passing muons by the yield of the fit of All the muons. The following image tries to illustrate this idea.
Efficiency.C
is given as an example of how to use the fitting method to calculate an efficiency. It follows as such:
- The user has to manually define the bins in which the quantity being studied (i.e. pT, Eta, Phi) will be divided;
- Generate conditions (that divide the dataset into the defined binned intervals) using
get_conditions
; - Create a loop that fits the invariant mass for each bin using
doFit
when the dataset consists of real data andMcYield
for the Monte Carlo dataset.
On this repository, do:
root -l -b -q Efficiency.C
Output images are stored in the /result
folder.