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

description More...

#include <Svt2DBlHistos.h>

Inheritance diagram for Svt2DBlHistos:
HistoManager

Public Member Functions

 Svt2DBlHistos (const std::string &inputName, ModuleMapper *mmapper_)
 Constructor.
 ~Svt2DBlHistos ()
void DefineHistos ()
 description
void FillHistograms (std::vector< RawSvtHit * > *rawSvtHits_, 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 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 (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

int Event_number =0
 description
int debug_ = 1
 description
TH1F * svtCondHisto {nullptr}
 description
ModuleMapper * mmapper_
 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, 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 22 of file Svt2DBlHistos.h.

Constructor & Destructor Documentation

◆ Svt2DBlHistos()

Svt2DBlHistos ( const std::string & inputName,
ModuleMapper * mmapper_ )

Constructor.

Parameters
inputName
mmapper_

Definition at line 5 of file Svt2DBlHistos.cxx.

◆ ~Svt2DBlHistos()

Definition at line 10 of file Svt2DBlHistos.cxx.

Member Function Documentation

◆ DefineHistos()

void DefineHistos ( )
virtual

description

Reimplemented from HistoManager.

Definition at line 13 of file Svt2DBlHistos.cxx.

◆ FillHistograms()

void FillHistograms ( std::vector< RawSvtHit * > * rawSvtHits_,
float weight = 1. )

description

Parameters
rawSvtHits_
weight

Definition at line 29 of file Svt2DBlHistos.cxx.

Member Data Documentation

◆ debug_

int debug_ = 1
private

description

Definition at line 52 of file Svt2DBlHistos.h.

◆ Event_number

int Event_number =0
private

description

Definition at line 51 of file Svt2DBlHistos.h.

◆ mmapper_

ModuleMapper* mmapper_
private

description

Definition at line 56 of file Svt2DBlHistos.h.

◆ svtCondHisto

TH1F* svtCondHisto {nullptr}
private

description

Definition at line 54 of file Svt2DBlHistos.h.


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