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
RecoHitAnaHistos Class Reference

description More...

#include <RecoHitAnaHistos.h>

Inheritance diagram for RecoHitAnaHistos:
HistoManager

Public Member Functions

 RecoHitAnaHistos (const std::string &inputName)
 constructor
virtual void Define3DHistos ()
 description
virtual void Define2DHistos ()
 description
virtual void Define1DHistos ()
 description
void FillTrackerHits (std::vector< TrackerHit * > *trkrHits, float weight=1.)
 description
void FillTracks (std::vector< Track * > *tracks, float weight=1.)
 description
void FillEcalHits (std::vector< CalHit * > *ecalHits, float weight=1.)
 description
void FillEcalClusters (std::vector< CalCluster * > *ecalClusters, float weight=1.)
 description
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 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

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

details

Definition at line 18 of file RecoHitAnaHistos.h.

Constructor & Destructor Documentation

◆ RecoHitAnaHistos()

RecoHitAnaHistos ( const std::string & inputName)
inline

constructor

Parameters
inputName

Definition at line 26 of file RecoHitAnaHistos.h.

Member Function Documentation

◆ Define1DHistos()

void Define1DHistos ( )
virtual

description

Reimplemented from HistoManager.

Definition at line 4 of file RecoHitAnaHistos.cxx.

◆ Define2DHistos()

virtual void Define2DHistos ( )
inlinevirtual

description

Reimplemented from HistoManager.

Definition at line 38 of file RecoHitAnaHistos.h.

◆ Define3DHistos()

virtual void Define3DHistos ( )
inlinevirtual

description

Reimplemented from HistoManager.

Definition at line 32 of file RecoHitAnaHistos.h.

◆ FillEcalClusters()

void FillEcalClusters ( std::vector< CalCluster * > * ecalClusters,
float weight = 1. )

description

Parameters
ecalClusters
weight

Definition at line 33 of file RecoHitAnaHistos.cxx.

◆ FillEcalHits()

void FillEcalHits ( std::vector< CalHit * > * ecalHits,
float weight = 1. )

description

Parameters
ecalHits
weight

Definition at line 23 of file RecoHitAnaHistos.cxx.

◆ FillTrackerHits()

void FillTrackerHits ( std::vector< TrackerHit * > * trkrHits,
float weight = 1. )

description

Parameters
trkrHits
weight

Definition at line 8 of file RecoHitAnaHistos.cxx.

◆ FillTracks()

void FillTracks ( std::vector< Track * > * tracks,
float weight = 1. )

description

Parameters
tracks
weight

Definition at line 18 of file RecoHitAnaHistos.cxx.


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