|
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 | addHisto1d (TH1 *histo) |
| void | addGraph (TGraphErrors *graph) |
| 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 | addHisto2d (TH2 *histo) |
| 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 | |
| TH1 * | getPDF (std::string histoname) |
| json | getConfig () |
| TGraphErrors * | getGraph (std::string graphname) |
| TGraphErrors * | configureGraph (std::string name, std::string xlabel, std::string ylabel) |
| Public Member Functions inherited from HistoManager | |
| HistoManager () | |
| default constructor | |
| HistoManager (const std::string &inputName) | |
| Constructor. | |
| virtual | ~HistoManager () |
| TH3 * | get3dHisto (const std::string &str) |
| description | |
| TH2 * | get2dHisto (const std::string &str) |
| description | |
| TH1 * | 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, TGraphErrors * > | graphs_ |
| hold graphs | |
Additional Inherited Members | |
| Public Attributes inherited from HistoManager | |
| std::vector< std::string > | histos1dNamesfromTFile |
| description | |
| std::vector< std::string > | histos2dNamesfromTFile |
| description | |
| std::vector< std::string > | histos1dNamesfromJson |
| description | |
| Protected Types inherited from HistoManager | |
| typedef std::map< std::string, TH1 * >::iterator | it1d |
| description | |
| typedef std::map< std::string, TH2 * >::iterator | it2d |
| description | |
| typedef std::map< std::string, TH3 * >::iterator | it3d |
| description | |
| Protected Attributes inherited from HistoManager | |
| std::string | m_name |
| description | |
| std::map< std::string, std::vector< double > > | Axes |
| description | |
| std::map< std::string, TH1 * > | histos1d |
| description | |
| std::map< std::string, TH2 * > | histos2d |
| description | |
| std::map< std::string, TH3 * > | 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 7 of file ZBiHistos.cxx.
| ~ZBiHistos | ( | ) |
Definition at line 9 of file ZBiHistos.cxx.
| ZBiHistos | ( | const std::string & | inputName | ) |
Definition at line 11 of file ZBiHistos.cxx.
| void addGraph | ( | TGraphErrors * | graph | ) |
Definition at line 25 of file ZBiHistos.cxx.
| void addHisto1d | ( | std::string | histoname, |
| std::string | xtitle, | ||
| int | nbinsX, | ||
| float | xmin, | ||
| float | xmax ) |
description
Definition at line 13 of file ZBiHistos.cxx.
| void addHisto1d | ( | TH1 * | histo | ) |
Definition at line 17 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 33 of file ZBiHistos.cxx.
| void addHisto2d | ( | TH2 * | histo | ) |
Definition at line 39 of file ZBiHistos.cxx.
| TGraphErrors * configureGraph | ( | std::string | name, |
| std::string | xlabel, | ||
| std::string | ylabel ) |
Definition at line 1265 of file ZBiHistos.cxx.
| double cutFractionOfSignalVariable | ( | std::string | cutvariable, |
| bool | isCutGreaterThan, | ||
| double | cutFraction, | ||
| double | initialIntegral ) |
description
Definition at line 85 of file ZBiHistos.cxx.
|
inlinevirtual |
|
inlinevirtual |
| std::vector< double > defineImpactParameterCut | ( | double | alpha = 0.15 | ) |
description
Definition at line 136 of file ZBiHistos.cxx.
| void defineZBiCutflowProcessorHistograms | ( | ) |
description
Definition at line 115 of file ZBiHistos.cxx.
| TF1 * fitExponentialPlusConst | ( | std::string | histogramName, |
| double | starnt_nevents ) |
description
Definition at line 618 of file ZBiHistos.cxx.
| TF1 * fitExponentialPlusExp | ( | std::string | histogramName, |
| double | starnt_nevents ) |
description
Definition at line 417 of file ZBiHistos.cxx.
| TF1 * fitExponentialTail | ( | std::string | histogramName, |
| double | start_nevents ) |
description
Definition at line 530 of file ZBiHistos.cxx.
| double fitZTail | ( | std::string | zVtxHistoname, |
| double | max_tail_events ) |
description
Definition at line 1174 of file ZBiHistos.cxx.
|
inline |
Definition at line 164 of file ZBiHistos.h.
|
inline |
Definition at line 166 of file ZBiHistos.h.
| TH1 * getPDF | ( | std::string | histoname | ) |
Definition at line 1255 of file ZBiHistos.cxx.
| TF1 * getZTailFit | ( | std::string | cutname | ) |
description
Definition at line 1046 of file ZBiHistos.cxx.
| double integrateHistogram1D | ( | std::string | histoname | ) |
description
Definition at line 59 of file ZBiHistos.cxx.
| void resetHistograms1d | ( | ) |
description
Definition at line 47 of file ZBiHistos.cxx.
| void resetHistograms2d | ( | ) |
description
Definition at line 53 of file ZBiHistos.cxx.
| void set2DHistoYlabel | ( | std::string | histoName, |
| int | ybin, | ||
| std::string | ylabel ) |
description
Definition at line 132 of file ZBiHistos.cxx.
|
inline |
| double shosFitZTail | ( | std::string | cutname, |
| double | max_tail_events ) |
description
Definition at line 1111 of file ZBiHistos.cxx.
| void writeGraphs | ( | TFile * | outF, |
| std::string | folder ) |
description
Definition at line 1204 of file ZBiHistos.cxx.
| void writeHistos | ( | TFile * | outF, |
| std::string | folder ) |
description
Definition at line 1224 of file ZBiHistos.cxx.
|
private |
hold graphs
Definition at line 178 of file ZBiHistos.h.