YCrossFit 1.0
A C++/ROOT Library for the analysis of the differential cross section of the Y(1S,2S,3S) resonances in two muons
Cuts.h File Reference

Selection of the data. The data are selected to be two muons of opposite charge with an invariant mass round the mass of the Y resonances. Also it is possible to choose other cuts on the trasverse momentum and the rapidity of the dimuon state. More...

#include "ROOT/RDataFrame.hxx"
#include "TMath.h"
#include "Cuts.h"
#include <filesystem>
#include "TSystem.h"
#include "optionParse.h"

Go to the source code of this file.

Functions

ROOT::RDF::RNode applyFilter (ROOT::RDF::RNode &df_custom_cut, std::string_view filter, std::string_view name)
 Apply custom cuts on a variable given string containing the filter. Print a warning if there are less than 800 events in the cutted dataframe. More...
 
ROOT::RDF::RNode Cuts (ROOT::RDF::RNode &df, float pmr=std::nanf("1"), float pMr=std::nanf("1"), float ymr=std::nanf("1"), float yMr=std::nanf("1"))
 Apply custom cuts with the function applyFilter() and print a cutt report. More...
 

Detailed Description

Selection of the data. The data are selected to be two muons of opposite charge with an invariant mass round the mass of the Y resonances. Also it is possible to choose other cuts on the trasverse momentum and the rapidity of the dimuon state.

Function Documentation

◆ applyFilter()

ROOT::RDF::RNode applyFilter ( ROOT::RDF::RNode &  df_custom_cut,
std::string_view  filter,
std::string_view  name 
)

Apply custom cuts on a variable given string containing the filter. Print a warning if there are less than 800 events in the cutted dataframe.

Parameters
df_custom_cutdataframe to be cutted
filterstring containing the definition of the filter to apply
namestring containing the name of the filter
Returns
Cutted Dataframe

◆ Cuts()

ROOT::RDF::RNode Cuts ( ROOT::RDF::RNode &  df,
float  pmr = std::nanf("1"),
float  pMr = std::nanf("1"),
float  ymr = std::nanf("1"),
float  yMr = std::nanf("1") 
)

Apply custom cuts with the function applyFilter() and print a cutt report.

Parameters
dfdataframe to be cutted
pmrlower extreme for the cut on the dimuon trasverse momentum
pMrupper extreme for the cut on the dimuon trasverse momentum
ymrlower extreme for the cut on the dimuon rapidity (in abs values)
yMrupper extreme for the cut on the dimuon rapidity (in abs values)
Returns
DataFrame with the selection decided by the cuts