![]() |
Belle II Software release-09-00-04
|
Class to prepare sample for hadron saturation calibration. More...
#include <HadronPrep.h>

Public Member Functions | |
| HadronPrep () | |
| Constructor: Sets the description, the properties and the parameters of the algorithm. | |
| virtual | ~HadronPrep () |
| Destructor. | |
| HadronPrep (int bgbins, double upperbg, double lowerbg, int cosbins, double uppercos, double lowercos, double cut) | |
| Constructor: set the input variables. | |
| void | prepareSample (std::shared_ptr< TTree > hadron, TFile *&outfile, const std::string &suffix, const std::string &pdg, bool ismakePlots, bool correct) |
| function to prepare sample for monitoring plots, bg curve fitting and sigma vs ionz fitting | |
| void | defineHisto (std::vector< TH1F * > &htemp, const std::string &title, const std::string &pdg) |
| function to define histograms | |
| void | plotDist (std::map< int, std::vector< TH1F * > > &hist, const std::string &sname, const std::string &pdg) |
| function to plot the map of histograms | |
| void | plotDist (std::vector< TH2F * > &hist, const std::string &sname, const std::string &pdg) |
| function to plot the 2-D histograms | |
| void | setPars (TFile *&outfile, std::map< int, std::vector< TH1F * > > &hdedx_bgcosth, const std::string &pdg) |
| function to fill the parameters like mean and reso in the tree | |
| void | plotGraph (const std::string &sname, const std::string &pdg) |
| function to make graph dedx vs cos in different bg bins | |
| void | clear () |
| function to clear the variables | |
Private Attributes | |
| std::map< int, std::vector< double > > | m_sumcos |
| variables to add cos values | |
| std::map< int, std::vector< double > > | m_sumbg |
| variables to add bg values | |
| std::map< int, std::vector< double > > | m_means |
| mean variable | |
| std::map< int, std::vector< double > > | m_errors |
| error variable | |
| std::map< int, std::vector< int > > | m_sumsize |
| variables for size | |
| double | m_dedxmax = 0.0 |
| variables to set maximum dedx mean | |
| double | m_dedxmin = 99999999.0 |
| variables to set minimum dedx mean | |
| int | m_bgBins |
| bins for dedx histogram | |
| double | m_bgMin |
| min range of dedx | |
| double | m_bgMax |
| max range of dedx | |
| int | m_cosBins |
| bins for dedx histogram | |
| double | m_cosMin |
| min range of dedx | |
| double | m_cosMax |
| max range of dedx | |
| double | m_cut |
| cut to clean protons | |
Class to prepare sample for hadron saturation calibration.
Definition at line 40 of file HadronPrep.h.
| HadronPrep | ( | ) |
|
inlinevirtual |
| HadronPrep | ( | int | bgbins, |
| double | upperbg, | ||
| double | lowerbg, | ||
| int | cosbins, | ||
| double | uppercos, | ||
| double | lowercos, | ||
| double | cut | ||
| ) |
| void clear | ( | ) |
function to clear the variables
Definition at line 367 of file HadronPrep.cc.
| void defineHisto | ( | std::vector< TH1F * > & | htemp, |
| const std::string & | title, | ||
| const std::string & | pdg | ||
| ) |
function to define histograms
Definition at line 157 of file HadronPrep.cc.
| void plotDist | ( | std::map< int, std::vector< TH1F * > > & | hist, |
| const std::string & | sname, | ||
| const std::string & | pdg | ||
| ) |
function to plot the map of histograms
Definition at line 177 of file HadronPrep.cc.
| void plotDist | ( | std::vector< TH2F * > & | hist, |
| const std::string & | sname, | ||
| const std::string & | pdg | ||
| ) |
function to plot the 2-D histograms
Definition at line 211 of file HadronPrep.cc.
| void plotGraph | ( | const std::string & | sname, |
| const std::string & | pdg | ||
| ) |
function to make graph dedx vs cos in different bg bins
Definition at line 304 of file HadronPrep.cc.
| void prepareSample | ( | std::shared_ptr< TTree > | hadron, |
| TFile *& | outfile, | ||
| const std::string & | suffix, | ||
| const std::string & | pdg, | ||
| bool | ismakePlots, | ||
| bool | correct | ||
| ) |
function to prepare sample for monitoring plots, bg curve fitting and sigma vs ionz fitting
Definition at line 34 of file HadronPrep.cc.
| void setPars | ( | TFile *& | outfile, |
| std::map< int, std::vector< TH1F * > > & | hdedx_bgcosth, | ||
| const std::string & | pdg | ||
| ) |
function to fill the parameters like mean and reso in the tree
Definition at line 247 of file HadronPrep.cc.
|
private |
bins for dedx histogram
Definition at line 107 of file HadronPrep.h.
|
private |
max range of dedx
Definition at line 109 of file HadronPrep.h.
|
private |
min range of dedx
Definition at line 108 of file HadronPrep.h.
|
private |
bins for dedx histogram
Definition at line 111 of file HadronPrep.h.
|
private |
max range of dedx
Definition at line 113 of file HadronPrep.h.
|
private |
min range of dedx
Definition at line 112 of file HadronPrep.h.
|
private |
cut to clean protons
Definition at line 115 of file HadronPrep.h.
|
private |
variables to set maximum dedx mean
Definition at line 104 of file HadronPrep.h.
|
private |
variables to set minimum dedx mean
Definition at line 105 of file HadronPrep.h.
|
private |
error variable
Definition at line 100 of file HadronPrep.h.
|
private |
mean variable
Definition at line 99 of file HadronPrep.h.
|
private |
variables to add bg values
Definition at line 98 of file HadronPrep.h.
|
private |
variables to add cos values
Definition at line 97 of file HadronPrep.h.
|
private |
variables for size
Definition at line 102 of file HadronPrep.h.