BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
h3l_phys.C File Reference
#include "TCanvas.h"
#include "TF1.h"
#include "TFile.h"
#include "TGraph.h"
#include "TGraphErrors.h"
#include "TH1F.h"
#include "TLegend.h"
#include "TLorentzVector.h"
#include "TStyle.h"
#include "TSystem.h"
#include "TTreeReader.h"
#include "TTreeReaderArray.h"
#include "TTreeReaderValue.h"
Include dependency graph for h3l_phys.C:

Go to the source code of this file.

Functions

void DrawNicePlot (TH1F *h, Int_t S, Float_t B)
Double_t backgroundChe (Double_t *xx, Double_t *p)
Double_t backgroundChe2 (Double_t *xx, Double_t *p)
Double_t backgroundChe3 (Double_t *xx, Double_t *p)
Double_t backgroundChe4 (Double_t *xx, Double_t *p)
Double_t gausPeak (Double_t *x, Double_t *par)
Double_t fitFunction (Double_t *x, Double_t *par)
void fitator (TH1F *h, Double_t &Tout, Double_t &Bout)
void h3l_phys (TString inputFileName="/home/merz/data/h3l_sim/h3lSelect_XeCsI_3.8AGeV_mb_4mln.root", TString outputFileName="/home/merz/data/h3l_sim/h3lPhys_XeCsI_3.8AGeV_mb_4mln.root")

Variables

const Float_t minBound = 2.96
const Float_t maxBound = 3.02
const Float_t massTheor = 2.992

Function Documentation

◆ backgroundChe()

Double_t backgroundChe ( Double_t * xx,
Double_t * p )

Definition at line 92 of file h3l_phys.C.

References i, maxBound, minBound, order, and x.

◆ backgroundChe2()

Double_t backgroundChe2 ( Double_t * xx,
Double_t * p )

Definition at line 119 of file h3l_phys.C.

References maxBound, minBound, and x.

◆ backgroundChe3()

Double_t backgroundChe3 ( Double_t * xx,
Double_t * p )

Definition at line 133 of file h3l_phys.C.

References maxBound, minBound, and x.

◆ backgroundChe4()

Double_t backgroundChe4 ( Double_t * xx,
Double_t * p )

Definition at line 148 of file h3l_phys.C.

References maxBound, minBound, and x.

Referenced by fitFunction().

Here is the caller graph for this function:

◆ DrawNicePlot()

void DrawNicePlot ( TH1F * h,
Int_t S,
Float_t B )

Definition at line 28 of file h3l_phys.C.

References TMath::Abs(), TH1::Draw(), TH1::GetFunction(), TNamed::GetName(), TAxis::GetNbins(), TF1::GetParameter(), TF1::GetParError(), TH1::GetXaxis(), TH1::GetYaxis(), maxBound, minBound, TAttAxis::SetLabelFont(), TAttLine::SetLineColor(), TAttLine::SetLineStyle(), TAttMarker::SetMarkerColor(), TAttMarker::SetMarkerSize(), TAttMarker::SetMarkerStyle(), TH1::SetMinimum(), TF1::SetNpx(), TH1::SetTitle(), TNamed::SetTitle(), TAttAxis::SetTitleFont(), TAttAxis::SetTitleOffset(), TAttAxis::SetTitleSize(), and TMath::Sqrt().

Referenced by h3l_phys().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fitator()

void fitator ( TH1F * h,
Double_t & Tout,
Double_t & Bout )

Definition at line 178 of file h3l_phys.C.

References backgroundChe4(), TF1::Eval(), TH1::Fit(), fitFunction(), TF1::FixParameter(), TH1::GetBinCenter(), TH1::GetBinContent(), TH1::GetBinError(), TH1::GetEntries(), TF1::GetParameter(), i, massTheor, maxBound, minBound, TH1::SetBinContent(), TH1::SetBinError(), TAttLine::SetLineColor(), TF1::SetParameter(), and TF1::SetParLimits().

Referenced by h3l_phys().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fitFunction()

Double_t fitFunction ( Double_t * x,
Double_t * par )

Definition at line 173 of file h3l_phys.C.

References backgroundChe4(), gausPeak(), and x.

Here is the call graph for this function:

◆ gausPeak()

Double_t gausPeak ( Double_t * x,
Double_t * par )

Definition at line 165 of file h3l_phys.C.

References TMath::Exp(), and x.

Referenced by fitFunction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ h3l_phys()

void h3l_phys ( TString inputFileName = "/home/merz/data/h3l_sim/h3lSelect_XeCsI_3.8AGeV_mb_4mln.root",
TString outputFileName = "/home/merz/data/h3l_sim/h3lPhys_XeCsI_3.8AGeV_mb_4mln.root" )

Variable Documentation

◆ massTheor

const Float_t massTheor = 2.992

Definition at line 22 of file h3l_phys.C.

◆ maxBound

const Float_t maxBound = 3.02

Definition at line 20 of file h3l_phys.C.

◆ minBound

const Float_t minBound = 2.96

Definition at line 19 of file h3l_phys.C.