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.
Loading...
Searching...
No Matches
ZBiHistos Class Reference

description More...

#include <ZBiHistos.h>

Inheritance diagram for ZBiHistos:
HistoManager

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

Detailed Description

description

more details

Definition at line 30 of file ZBiHistos.h.

Constructor & Destructor Documentation

◆ ZBiHistos() [1/2]

ZBiHistos ( )

Definition at line 7 of file ZBiHistos.cxx.

◆ ~ZBiHistos()

~ZBiHistos ( )

Definition at line 9 of file ZBiHistos.cxx.

◆ ZBiHistos() [2/2]

ZBiHistos ( const std::string & inputName)

Definition at line 11 of file ZBiHistos.cxx.

Member Function Documentation

◆ addGraph()

void addGraph ( TGraphErrors * graph)

Definition at line 25 of file ZBiHistos.cxx.

◆ addHisto1d() [1/2]

void addHisto1d ( std::string histoname,
std::string xtitle,
int nbinsX,
float xmin,
float xmax )

description

Definition at line 13 of file ZBiHistos.cxx.

◆ addHisto1d() [2/2]

void addHisto1d ( TH1 * histo)

Definition at line 17 of file ZBiHistos.cxx.

◆ addHisto2d() [1/2]

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.

◆ addHisto2d() [2/2]

void addHisto2d ( TH2 * histo)

Definition at line 39 of file ZBiHistos.cxx.

◆ configureGraph()

TGraphErrors * configureGraph ( std::string name,
std::string xlabel,
std::string ylabel )

Definition at line 1265 of file ZBiHistos.cxx.

◆ cutFractionOfSignalVariable()

double cutFractionOfSignalVariable ( std::string cutvariable,
bool isCutGreaterThan,
double cutFraction,
double initialIntegral )

description

Definition at line 85 of file ZBiHistos.cxx.

◆ Define2DHistos()

virtual void Define2DHistos ( )
inlinevirtual

description

Reimplemented from HistoManager.

Definition at line 46 of file ZBiHistos.h.

◆ Define3DHistos()

virtual void Define3DHistos ( )
inlinevirtual

description

Reimplemented from HistoManager.

Definition at line 40 of file ZBiHistos.h.

◆ defineImpactParameterCut()

std::vector< double > defineImpactParameterCut ( double alpha = 0.15)

description

Definition at line 136 of file ZBiHistos.cxx.

◆ defineZBiCutflowProcessorHistograms()

void defineZBiCutflowProcessorHistograms ( )

description

Definition at line 115 of file ZBiHistos.cxx.

◆ fitExponentialPlusConst()

TF1 * fitExponentialPlusConst ( std::string histogramName,
double starnt_nevents )

description

Definition at line 618 of file ZBiHistos.cxx.

◆ fitExponentialPlusExp()

TF1 * fitExponentialPlusExp ( std::string histogramName,
double starnt_nevents )

description

Definition at line 417 of file ZBiHistos.cxx.

◆ fitExponentialTail()

TF1 * fitExponentialTail ( std::string histogramName,
double start_nevents )

description

Definition at line 530 of file ZBiHistos.cxx.

◆ fitZTail()

double fitZTail ( std::string zVtxHistoname,
double max_tail_events )

description

Definition at line 1174 of file ZBiHistos.cxx.

◆ getConfig()

json getConfig ( )
inline

Definition at line 164 of file ZBiHistos.h.

◆ getGraph()

TGraphErrors * getGraph ( std::string graphname)
inline

Definition at line 166 of file ZBiHistos.h.

◆ getPDF()

TH1 * getPDF ( std::string histoname)

Definition at line 1255 of file ZBiHistos.cxx.

◆ getZTailFit()

TF1 * getZTailFit ( std::string cutname)

description

Definition at line 1046 of file ZBiHistos.cxx.

◆ integrateHistogram1D()

double integrateHistogram1D ( std::string histoname)

description

Definition at line 59 of file ZBiHistos.cxx.

◆ resetHistograms1d()

void resetHistograms1d ( )

description

Definition at line 47 of file ZBiHistos.cxx.

◆ resetHistograms2d()

void resetHistograms2d ( )

description

Definition at line 53 of file ZBiHistos.cxx.

◆ set2DHistoYlabel()

void set2DHistoYlabel ( std::string histoName,
int ybin,
std::string ylabel )

description

Definition at line 132 of file ZBiHistos.cxx.

◆ setDebug()

void setDebug ( bool value)
inline

Set debug.

Parameters
value

Definition at line 107 of file ZBiHistos.h.

◆ shosFitZTail()

double shosFitZTail ( std::string cutname,
double max_tail_events )

description

Definition at line 1111 of file ZBiHistos.cxx.

◆ writeGraphs()

void writeGraphs ( TFile * outF,
std::string folder )

description

Definition at line 1204 of file ZBiHistos.cxx.

◆ writeHistos()

void writeHistos ( TFile * outF,
std::string folder )

description

Definition at line 1224 of file ZBiHistos.cxx.

Member Data Documentation

◆ graphs_

std::map<std::string, TGraphErrors*> graphs_
private

hold graphs

Definition at line 178 of file ZBiHistos.h.


The documentation for this class was generated from the following files: