hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
|
description More...
#include <ZBiHistos.h>
Public Member Functions | |
ZBiHistos () | |
~ZBiHistos () | |
ZBiHistos (const std::string &inputName) | |
virtual void | Define3DHistos () |
description | |
virtual void | Define2DHistos () |
description | |
void | writeHistos (TFile *outF, std::string folder) |
description | |
void | resetHistograms1d () |
description | |
void | resetHistograms2d () |
description | |
void | addHisto1d (std::string histoname, std::string xtitle, int nbinsX, float xmin, float xmax) |
description | |
void | addHisto2d (std::string histoname, std::string xtitle, int nbinsX, float xmin, float xmax, std::string ytitle, int nbinsY, float ymin, float ymax) |
description | |
void | set2DHistoYlabel (std::string histoName, int ybin, std::string ylabel) |
description | |
std::vector< double > | defineImpactParameterCut (double alpha=0.15) |
description | |
void | defineZBiCutflowProcessorHistograms () |
description | |
void | setDebug (bool value) |
Set debug. | |
double | cutFractionOfSignalVariable (std::string cutvariable, bool isCutGreaterThan, double cutFraction, double initialIntegral) |
description | |
double | integrateHistogram1D (std::string histoname) |
description | |
TF1 * | fitExponentialTail (std::string histogramName, double start_nevents) |
description | |
TF1 * | fitExponentialPlusConst (std::string histogramName, double starnt_nevents) |
description | |
TF1 * | fitExponentialPlusExp (std::string histogramName, double starnt_nevents) |
description | |
double | fitZTail (std::string zVtxHistoname, double max_tail_events) |
description | |
double | shosFitZTail (std::string cutname, double max_tail_events) |
description | |
TF1 * | getZTailFit (std::string cutname) |
description | |
void | writeGraphs (TFile *outF, std::string folder) |
description | |
![]() | |
HistoManager () | |
default constructor | |
HistoManager (const std::string &inputName) | |
Constructor. | |
virtual | ~HistoManager () |
TH3F * | get3dHisto (const std::string &str) |
description | |
TH2F * | get2dHisto (const std::string &str) |
description | |
TH1F * | get1dHisto (const std::string &str) |
description | |
TH1F * | plot1D (const std::string &name, const std::string &xtitle, int nbinsX, float xmin, float xmax) |
description | |
TH1F * | plot1D (const std::string &name, const std::string &xtitle, int nbinsX, double *axisX) |
description | |
TH2F * | plot2D (std::string name, std::string xtitle, int nbinsX, float xmin, float xmax, std::string ytitle, int nbinsY, float ymin, float ymax) |
description | |
TH2F * | plot2D (std::string name, std::string xtitle, int nbinsX, double *axisX, std::string ytitle, int nbinsY, double *axisY) |
description | |
TH2F * | plot2D (std::string name, std::string xtitle, int nbinsX, const double *axisX, std::string ytitle, int nbinsY, const double *axisY) |
description | |
TH2F * | plot2D (std::string name, std::string xtitle, int nbinsX, double *axisX, std::string ytitle, int nbinsY, float ymin, float ymax) |
description | |
TH3F * | plot3D (std::string name, std::string xtitle, int nbinsX, float xmin, float xmax, std::string ytitle, int nbinsY, float ymin, float ymax, std::string ztitle, int nbinsZ, float zmin, float zmax) |
description | |
TH3F * | plot3D (std::string name, std::string xtitle, int nbinsX, double *axisX, std::string ytitle, int nbinsY, double *axisY, std::string ztitle, int nbinsZ, double *axisZ) |
description | |
virtual void | Define1DHistos () |
define additional 1D histo by hand | |
virtual void | DefineHistos () |
Definition of histograms from json config. | |
virtual void | DefineHistos (std::vector< std::string > histoCopyNames, std::string makeCopyJsonTag="default=single_copy") |
Definition of histograms from json config. | |
void | Fill1DHisto (const std::string &histoName, float value, float weight=1.) |
description | |
void | Fill2DHisto (const std::string &histoName, float valuex, float valuey, float weight=1.) |
description | |
void | Fill3DHisto (const std::string &histoName, float valuex, float valuey, float valuez, float weight=1.) |
description | |
virtual void | GetHistosFromFile (TFile *inFile, const std::string &name, const std::string &folder="") |
Get histograms from input file. | |
virtual void | saveHistos (TFile *outF=nullptr, std::string folder="") |
save histograms | |
virtual void | loadHistoConfig (const std::string histoConfigFile) |
load histogram config | |
virtual void | sumw2 () |
description | |
virtual void | Clear () |
description | |
virtual std::string | getName () |
get name | |
void | debugMode (bool debug) |
set debug | |
Private Attributes | |
std::map< std::string, TGraph * > | graphs_ |
hold graphs | |
Additional Inherited Members | |
![]() | |
std::vector< std::string > | histos1dNamesfromTFile |
description | |
std::vector< std::string > | histos2dNamesfromTFile |
description | |
std::vector< std::string > | histos1dNamesfromJson |
description | |
![]() | |
typedef std::map< std::string, TH1F * >::iterator | it1d |
description | |
typedef std::map< std::string, TH2F * >::iterator | it2d |
description | |
typedef std::map< std::string, TH3F * >::iterator | it3d |
description | |
![]() | |
std::string | m_name |
description | |
std::map< std::string, std::vector< double > > | Axes |
description | |
std::map< std::string, TH1F * > | histos1d |
description | |
std::map< std::string, TH2F * > | histos2d |
description | |
std::map< std::string, TH3F * > | histos3d |
description | |
bool | debug_ {false} |
description | |
json | _h_configs |
description | |
int | maxWarnings_ {10} |
description | |
int | printWarnings_ {0} |
description | |
bool | doPrintWarnings_ {true} |
description | |
ZBiHistos | ( | ) |
Definition at line 5 of file ZBiHistos.cxx.
~ZBiHistos | ( | ) |
Definition at line 8 of file ZBiHistos.cxx.
ZBiHistos | ( | const std::string & | inputName | ) |
Definition at line 11 of file ZBiHistos.cxx.
void addHisto1d | ( | std::string | histoname, |
std::string | xtitle, | ||
int | nbinsX, | ||
float | xmin, | ||
float | xmax | ||
) |
description
Definition at line 15 of file ZBiHistos.cxx.
void addHisto2d | ( | std::string | histoname, |
std::string | xtitle, | ||
int | nbinsX, | ||
float | xmin, | ||
float | xmax, | ||
std::string | ytitle, | ||
int | nbinsY, | ||
float | ymin, | ||
float | ymax | ||
) |
description
Definition at line 19 of file ZBiHistos.cxx.
double cutFractionOfSignalVariable | ( | std::string | cutvariable, |
bool | isCutGreaterThan, | ||
double | cutFraction, | ||
double | initialIntegral | ||
) |
description
Definition at line 64 of file ZBiHistos.cxx.
|
inlinevirtual |
|
inlinevirtual |
std::vector< double > defineImpactParameterCut | ( | double | alpha = 0.15 | ) |
description
Definition at line 116 of file ZBiHistos.cxx.
void defineZBiCutflowProcessorHistograms | ( | ) |
description
Definition at line 95 of file ZBiHistos.cxx.
TF1 * fitExponentialPlusConst | ( | std::string | histogramName, |
double | starnt_nevents | ||
) |
description
Definition at line 612 of file ZBiHistos.cxx.
TF1 * fitExponentialPlusExp | ( | std::string | histogramName, |
double | starnt_nevents | ||
) |
description
Definition at line 398 of file ZBiHistos.cxx.
TF1 * fitExponentialTail | ( | std::string | histogramName, |
double | start_nevents | ||
) |
description
Definition at line 515 of file ZBiHistos.cxx.
double fitZTail | ( | std::string | zVtxHistoname, |
double | max_tail_events | ||
) |
description
Definition at line 1170 of file ZBiHistos.cxx.
TF1 * getZTailFit | ( | std::string | cutname | ) |
description
Definition at line 1045 of file ZBiHistos.cxx.
double integrateHistogram1D | ( | std::string | histoname | ) |
description
Definition at line 37 of file ZBiHistos.cxx.
void resetHistograms1d | ( | ) |
description
Definition at line 23 of file ZBiHistos.cxx.
void resetHistograms2d | ( | ) |
description
Definition at line 30 of file ZBiHistos.cxx.
void set2DHistoYlabel | ( | std::string | histoName, |
int | ybin, | ||
std::string | ylabel | ||
) |
description
Definition at line 112 of file ZBiHistos.cxx.
|
inline |
double shosFitZTail | ( | std::string | cutname, |
double | max_tail_events | ||
) |
description
Definition at line 1108 of file ZBiHistos.cxx.
void writeGraphs | ( | TFile * | outF, |
std::string | folder | ||
) |
description
Definition at line 1197 of file ZBiHistos.cxx.
void writeHistos | ( | TFile * | outF, |
std::string | folder | ||
) |
description
Definition at line 1214 of file ZBiHistos.cxx.
|
private |
hold graphs
Definition at line 156 of file ZBiHistos.h.