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.
|
#include <ClusterHistos.h>
Public Member Functions | |
ClusterHistos (const std::string &inputName) | |
Constructor. | |
~ClusterHistos () | |
virtual void | Define3DHistos () |
description | |
virtual void | Define2DHistos () |
description | |
virtual void | Define1DHistos () |
description | |
void | FillHistograms (TrackerHit *hit, float weight=1.) |
description | |
void | setBaselineFitsDir (const std::string &baselineFits) |
Set the baseline fits directories. | |
bool | LoadBaselineHistos (const std::string &baselineRun) |
Load baseline histograms. | |
bool | LoadOfflineBaselines (const std::string &baselineFits) |
Load offline baseline. | |
![]() | |
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 | 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::vector< std::string > | variables {"charge", "cluSize"} |
std::vector< std::string > | half_module_names {} |
std::map< std::string, int > | cluSizeMap |
std::map< std::string, double > | chargeMap |
std::map< std::string, double > | chargeCorrectedMap |
std::map< std::string, double > | cluPositionMap |
std::string | baselineFits_ {"/nfs/hps3/svtTests/jlabSystem/baselines/fits/"} |
std::string | baselineRun_ {""} |
std::map< std::string, TGraphErrors * > | baselineGraphs |
ModuleMapper * | mmapper_ {nullptr} |
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 | |
Definition at line 18 of file ClusterHistos.h.
ClusterHistos | ( | const std::string & | inputName | ) |
~ClusterHistos | ( | ) |
Definition at line 10 of file ClusterHistos.cxx.
|
virtual |
|
virtual |
|
inlinevirtual |
void FillHistograms | ( | TrackerHit * | hit, |
float | weight = 1. |
||
) |
bool LoadBaselineHistos | ( | const std::string & | baselineRun | ) |
Load baseline histograms.
baselineRun |
Definition at line 185 of file ClusterHistos.cxx.
bool LoadOfflineBaselines | ( | const std::string & | baselineFits | ) |
Load offline baseline.
baselineFits |
Definition at line 156 of file ClusterHistos.cxx.
|
inline |
Set the baseline fits directories.
baselineFits |
Definition at line 63 of file ClusterHistos.h.
|
private |
description
Definition at line 107 of file ClusterHistos.h.
|
private |
description
Definition at line 113 of file ClusterHistos.h.
|
private |
description
Definition at line 110 of file ClusterHistos.h.
|
private |
description
Definition at line 101 of file ClusterHistos.h.
|
private |
description
Definition at line 98 of file ClusterHistos.h.
|
private |
description
Definition at line 104 of file ClusterHistos.h.
|
private |
description
Definition at line 95 of file ClusterHistos.h.
|
private |
description
Definition at line 92 of file ClusterHistos.h.
|
private |
|
private |
description
Definition at line 89 of file ClusterHistos.h.