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
|
Creating filtered dataframes. More...
#include <ROOT/RDataFrame.hxx>
#include <cmath>
#include <string>
#include <TFile.h>
#include <iostream>
#include <filesystem>
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... | |
Creating filtered dataframes.
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".
filepath_MC | file path of the dataframe of the MC datas |
filepath_datas | file path of the dataframe of the Run datas |
filename_MC_fil | file name of the dataframe of the MC datas filtered |
filename_datas_fil | file name of the dataframe of the Run datas filtered |