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
df_set.h
Go to the documentation of this file.
1
10#ifndef df_set_h
11#define df_set_h
12
13#include "ROOT/RDataFrame.hxx"
14#include "ROOT/RVec.hxx"
15#include "Math/Vector4Dfwd.h"
16#include "Math/Vector4D.h"
17#include "TMath.h"
18#include "TFile.h"
19#include <TSystem.h>
20#include "df_set.h"
21#include <filesystem>
22#include "optionParse.h"
23
24using namespace ROOT::VecOps;
25
26
42ROOT::Math::PtEtaPhiMVector computeDiMuonFourVec(RVec<float> &pt, RVec<float> &eta, RVec<float> &phi, RVec<float> &mass,
43 unsigned long &im0, unsigned long &im1);
44
52float computeDiMuonInvariantMass(ROOT::Math::PtEtaPhiMVector &fourvec);
53
54
62float computeDiMuonPT(ROOT::Math::PtEtaPhiMVector &fourvec);
63
64
73float computeDiMuonRapidity(ROOT::Math::PtEtaPhiMVector &fourvec);
74
75
84float computeDiMuonBeta(ROOT::Math::PtEtaPhiMVector &fourvec);
85
86
98ROOT::RDF::RNode df_set();
99
100#endif /* Cuts_h */
Function for creating and setting up dataframe used in the analysis.
ROOT::RDF::RNode df_set()
Define the dataframe used in the analysis or it creates it if it is not found.
ROOT::Math::PtEtaPhiMVector computeDiMuonFourVec(RVec< float > &pt, RVec< float > &eta, RVec< float > &phi, RVec< float > &mass, unsigned long &im0, unsigned long &im1)
Calculate the four vector of a dimuon starting from pt, eta, phi and mass of muon pair.
float computeDiMuonBeta(ROOT::Math::PtEtaPhiMVector &fourvec)
Calculate beta ( ) of a dimuon Four Vector.
float computeDiMuonRapidity(ROOT::Math::PtEtaPhiMVector &fourvec)
Calculate the rapidity of a dimuon Four Vector.
float computeDiMuonPT(ROOT::Math::PtEtaPhiMVector &fourvec)
Calculate the transverse momentum of a dimuon Four Vector.
float computeDiMuonInvariantMass(ROOT::Math::PtEtaPhiMVector &fourvec)
Calculate the invariant mass of a dimuon Four Vector.
Handling flags and option parameters.