Study of the CMS Monte Carlo and Run open data for the dimuon system  1.0
A C++ software for the measurement of the Z resonance, the angle of the negative muon in the Collins–Soper frame of the dimuon system and the forward-backward asymmetry of Drell–Yan events in pp collisions at 8 TeV
filterDf.h File Reference

Creating filtered dataframes. More...

#include <ROOT/RDataFrame.hxx>
#include <cmath>
#include <string>
#include <TFile.h>
#include <iostream>
#include <filesystem>
Include dependency graph for filterDf.h:

Go to the source code of this file.

Functions

int filterDf (std::string filepath_MC, std::string filepath_datas, std::string filename_MC_fil, std::string filename_datas_fil)
 This function creates filtered dataframes of MC datas and Run datas with a snapshot function with columns "Muon_pt" , "Muon_mass" , "Muon_phi" , "Muon_eta". This will be saved in the folder "datas". If it doesn't exist, the program will create it. The filter is based on the following columns: "Muon_pt" , "Muon_eta", "nMuon", "Muon_dxy", "Muon_charge", "Muon_pfRelIso03_chg". More...
 

Detailed Description

Creating filtered dataframes.

Function Documentation

◆ filterDf()

int filterDf ( std::string  filepath_MC,
std::string  filepath_datas,
std::string  filename_MC_fil,
std::string  filename_datas_fil 
)

This function creates filtered dataframes of MC datas and Run datas with a snapshot function with columns "Muon_pt" , "Muon_mass" , "Muon_phi" , "Muon_eta". This will be saved in the folder "datas". If it doesn't exist, the program will create it. The filter is based on the following columns: "Muon_pt" , "Muon_eta", "nMuon", "Muon_dxy", "Muon_charge", "Muon_pfRelIso03_chg".

Parameters
filepath_MCfile path of the dataframe of the MC datas
filepath_datasfile path of the dataframe of the Run datas
filename_MC_filfile name of the dataframe of the MC datas filtered
filename_datas_filfile name of the dataframe of the Run datas filtered
Returns
0: filtered dataframes have been created, 1: Doesn't exist the path of the files, 2: files with few columns, 3: files with few datas