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.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Private Attributes | List of all members
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 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
 
- Public Member Functions inherited from HistoManager
 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

- 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, TH1F * >::iterator it1d
 description
 
typedef std::map< std::string, TH2F * >::iterator it2d
 description
 
typedef std::map< std::string, TH3F * >::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, 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
 

Detailed Description

description

more details

Definition at line 27 of file ZBiHistos.h.

Constructor & Destructor Documentation

◆ ZBiHistos() [1/2]

ZBiHistos ( )

Definition at line 5 of file ZBiHistos.cxx.

◆ ~ZBiHistos()

~ZBiHistos ( )

Definition at line 8 of file ZBiHistos.cxx.

◆ ZBiHistos() [2/2]

ZBiHistos ( const std::string &  inputName)

Definition at line 11 of file ZBiHistos.cxx.

Member Function Documentation

◆ addHisto1d()

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

description

Definition at line 15 of file ZBiHistos.cxx.

◆ addHisto2d()

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.

◆ cutFractionOfSignalVariable()

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

description

Definition at line 64 of file ZBiHistos.cxx.

◆ Define2DHistos()

virtual void Define2DHistos ( )
inlinevirtual

description

Reimplemented from HistoManager.

Definition at line 44 of file ZBiHistos.h.

◆ Define3DHistos()

virtual void Define3DHistos ( )
inlinevirtual

description

Reimplemented from HistoManager.

Definition at line 38 of file ZBiHistos.h.

◆ defineImpactParameterCut()

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

description

Definition at line 116 of file ZBiHistos.cxx.

◆ defineZBiCutflowProcessorHistograms()

void defineZBiCutflowProcessorHistograms ( )

description

Definition at line 95 of file ZBiHistos.cxx.

◆ fitExponentialPlusConst()

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

description

Definition at line 612 of file ZBiHistos.cxx.

◆ fitExponentialPlusExp()

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

description

Definition at line 398 of file ZBiHistos.cxx.

◆ fitExponentialTail()

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

description

Definition at line 515 of file ZBiHistos.cxx.

◆ fitZTail()

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

description

Definition at line 1170 of file ZBiHistos.cxx.

◆ getZTailFit()

TF1 * getZTailFit ( std::string  cutname)

description

Definition at line 1045 of file ZBiHistos.cxx.

◆ integrateHistogram1D()

double integrateHistogram1D ( std::string  histoname)

description

Definition at line 37 of file ZBiHistos.cxx.

◆ resetHistograms1d()

void resetHistograms1d ( )

description

Definition at line 23 of file ZBiHistos.cxx.

◆ resetHistograms2d()

void resetHistograms2d ( )

description

Definition at line 30 of file ZBiHistos.cxx.

◆ set2DHistoYlabel()

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

description

Definition at line 112 of file ZBiHistos.cxx.

◆ setDebug()

void setDebug ( bool  value)
inline

Set debug.

Parameters
value

Definition at line 101 of file ZBiHistos.h.

◆ shosFitZTail()

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

description

Definition at line 1108 of file ZBiHistos.cxx.

◆ writeGraphs()

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

description

Definition at line 1197 of file ZBiHistos.cxx.

◆ writeHistos()

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

description

Definition at line 1214 of file ZBiHistos.cxx.

Member Data Documentation

◆ graphs_

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

hold graphs

Definition at line 156 of file ZBiHistos.h.


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