BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
filtrator.C File Reference
#include "TCanvas.h"
#include "TF1.h"
#include "TH1.h"
#include "TLegend.h"
#include "TMath.h"
#include <TFile.h>
#include <TKey.h>
#include <TStyle.h>
Include dependency graph for filtrator.C:

Go to the source code of this file.

Functions

Double_t backgroundChe (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 backgroundChe6 (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 DrawNicePlot (TH1F *h, Int_t S, Float_t B)
void fitator (TH1F *h, Double_t &Tout, Double_t &Bout, Double_t &sigmaOut)
void filtrator (TString inFileName="/home/merz/data/h3l/h3l_plots_25090_A_withKplus/h3l_plots.root")

Variables

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

Function Documentation

◆ backgroundChe()

Double_t backgroundChe ( Double_t * xx,
Double_t * p )

Definition at line 27 of file filtrator.C.

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

◆ backgroundChe3()

Double_t backgroundChe3 ( Double_t * xx,
Double_t * p )

Definition at line 54 of file filtrator.C.

References maxBound, minBound, and x.

◆ backgroundChe4()

Double_t backgroundChe4 ( Double_t * xx,
Double_t * p )

Definition at line 69 of file filtrator.C.

References maxBound, minBound, and x.

Referenced by fitFunction().

Here is the caller graph for this function:

◆ backgroundChe6()

Double_t backgroundChe6 ( Double_t * xx,
Double_t * p )

Definition at line 85 of file filtrator.C.

References maxBound, minBound, and x.

◆ DrawNicePlot()

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

Definition at line 117 of file filtrator.C.

References TMath::Abs(), TH1::Draw(), TH1::GetFunction(), TNamed::GetName(), TAxis::GetNbins(), TF1::GetParameter(), TF1::GetParError(), TH1::GetXaxis(), TH1::GetYaxis(), 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 filtrator().

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

◆ filtrator()

void filtrator ( TString inFileName = "/home/merz/data/h3l/h3l_plots_25090_A_withKplus/h3l_plots.root")

Definition at line 243 of file filtrator.C.

References DrawNicePlot(), f, fitator(), fOut, TNamed::GetName(), TFile::Open(), TH1::Rebin(), TH1::SetTitle(), TMath::Sqrt(), and TObject::Write().

Here is the call graph for this function:

◆ fitator()

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

Definition at line 181 of file filtrator.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 filtrator().

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 112 of file filtrator.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 104 of file filtrator.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:

Variable Documentation

◆ massTheor

const Float_t massTheor = 2.992

Definition at line 18 of file filtrator.C.

◆ maxBound

const Float_t maxBound = 3.02

Definition at line 25 of file filtrator.C.

◆ minBound

const Float_t minBound = 2.96

Definition at line 24 of file filtrator.C.