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 | Protected Attributes | Private Attributes | List of all members
BlFitHistos Class Reference

description More...

#include <BlFitHistos.h>

Inheritance diagram for BlFitHistos:
HistoManager

Public Member Functions

 BlFitHistos (int year)
 
 ~BlFitHistos ()
 
std::map< std::string, TH1F * > get1dHistos ()
 description
 
std::map< std::string, TH2F * > get2dHistos ()
 description
 
void getHistosFromFile (TFile *inFile, std::string layer="")
 Get the Histos From File object.
 
void fit2DHistoChannelBaselines (std::map< std::string, TH2F * > histos2d, int rebin_, int minStats_, int deadRMS_, std::string thresholdsFileIn_, FlatTupleMaker *flat_tuple_)
 description
 
void iterativeGausFit (TH1D *hist, double min, double max, double sigmaRange, double hardminimum, double hardmaximum)
 description
 
void setDebug (bool value)
 Set debug.
 
void backwardsIterChi2Fit (TH1D *hist, double xmin, double xmax)
 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 Define3DHistos ()
 define additional 3D histo by hand
 
virtual void Define2DHistos ()
 define additional 2D histo by hand
 
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
 

Protected Attributes

std::map< std::string, TH2F * > histos2d
 description
 
std::map< std::string, TH1F * > histos1d
 description
 
std::map< std::string, std::map< int, int > > svtIDMap
 description
 
std::map< std::string, std::map< std::string, std::vector< int > > > threshMap_
 description
 
ModuleMappermmapper_
 description
 
bool debug_ {false}
 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
 

Private Attributes

TH1F * fitHistos {nullptr}
 description
 

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
 

Detailed Description

description

more details

Definition at line 30 of file BlFitHistos.h.

Constructor & Destructor Documentation

◆ BlFitHistos()

BlFitHistos ( int  year)

Definition at line 8 of file BlFitHistos.cxx.

◆ ~BlFitHistos()

Definition at line 16 of file BlFitHistos.cxx.

Member Function Documentation

◆ backwardsIterChi2Fit()

void backwardsIterChi2Fit ( TH1D *  hist,
double  xmin,
double  xmax 
)

description

Parameters
hist
xmin
xmax

Definition at line 55 of file BlFitHistos.cxx.

◆ fit2DHistoChannelBaselines()

void fit2DHistoChannelBaselines ( std::map< std::string, TH2F * >  histos2d,
int  rebin_,
int  minStats_,
int  deadRMS_,
std::string  thresholdsFileIn_,
FlatTupleMaker flat_tuple_ 
)

description

Parameters
histos2d
rebin_
minStats_
deadRMS_
thresholdsFileIn_
flat_tuple_

Definition at line 197 of file BlFitHistos.cxx.

◆ get1dHistos()

std::map< std::string, TH1F * > get1dHistos ( )
inline

description

Returns
std::map<std::string,TH1F*>

Definition at line 41 of file BlFitHistos.h.

◆ get2dHistos()

std::map< std::string, TH2F * > get2dHistos ( )
inline

description

Returns
std::map<std::string,TH2F*>

Definition at line 50 of file BlFitHistos.h.

◆ getHistosFromFile()

void getHistosFromFile ( TFile *  inFile,
std::string  layer = "" 
)

Get the Histos From File object.

Parameters
inFile
layer

Definition at line 19 of file BlFitHistos.cxx.

◆ iterativeGausFit()

void iterativeGausFit ( TH1D *  hist,
double  min,
double  max,
double  sigmaRange,
double  hardminimum,
double  hardmaximum 
)

description

Parameters
hist
min
max
sigmaRange
hardminimum
hardmaximum

Definition at line 115 of file BlFitHistos.cxx.

◆ setDebug()

void setDebug ( bool  value)
inline

Set debug.

Parameters
value

Definition at line 91 of file BlFitHistos.h.

Member Data Documentation

◆ debug_

bool debug_ {false}
protected

description

Definition at line 112 of file BlFitHistos.h.

◆ fitHistos

TH1F* fitHistos {nullptr}
private

description

Definition at line 104 of file BlFitHistos.h.

◆ histos1d

std::map<std::string, TH1F*> histos1d
protected

description

Definition at line 108 of file BlFitHistos.h.

◆ histos2d

std::map<std::string, TH2F*> histos2d
protected

description

Definition at line 107 of file BlFitHistos.h.

◆ mmapper_

ModuleMapper* mmapper_
protected

description

Definition at line 111 of file BlFitHistos.h.

◆ svtIDMap

std::map<std::string,std::map<int,int> > svtIDMap
protected

description

Definition at line 109 of file BlFitHistos.h.

◆ threshMap_

std::map<std::string,std::map<std::string,std::vector<int> > > threshMap_
protected

description

Definition at line 110 of file BlFitHistos.h.


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