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

#include <RawSvtHitHistos.h>

Inheritance diagram for RawSvtHitHistos:
HistoManager

Public Member Functions

 RawSvtHitHistos (const std::string &inputName, ModuleMapper *mmapper_)
 
 ~RawSvtHitHistos ()
 
void DefineHistos ()
 Definition of histograms from json config.
 
void FillHistograms (RawSvtHit *rawSvtHit, float weight=1., int Ireg=0, unsigned int nhit=0, Float_t TimeDiff=-42069.0, Float_t AmpDiff=-42069.0)
 
void saveHistosSVT (TFile *outF, std::string folder)
 
- 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 (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
 
int debug_ = 1
 
int adcs_ [6]
 
TH1F * svtCondHisto {nullptr}
 
ModuleMappermmapper_
 
float baseErr1_ [2][4][512][12]
 
float baseErr2_ [8][4][640][12]
 
std::vector< std::string > regions_
 
std::vector< std::string > hybridNames
 
std::vector< std::string > hybridNames2
 
std::string swTag
 

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

Definition at line 22 of file RawSvtHitHistos.h.

Constructor & Destructor Documentation

◆ RawSvtHitHistos()

RawSvtHitHistos ( const std::string &  inputName,
ModuleMapper mmapper_ 
)

Definition at line 6 of file RawSvtHitHistos.cxx.

◆ ~RawSvtHitHistos()

Definition at line 11 of file RawSvtHitHistos.cxx.

Member Function Documentation

◆ DefineHistos()

void DefineHistos ( )
virtual

Definition of histograms from json config.

Reimplemented from HistoManager.

Definition at line 14 of file RawSvtHitHistos.cxx.

◆ FillHistograms()

void FillHistograms ( RawSvtHit rawSvtHit,
float  weight = 1.,
int  Ireg = 0,
unsigned int  nhit = 0,
Float_t  TimeDiff = -42069.0,
Float_t  AmpDiff = -42069.0 
)

Definition at line 25 of file RawSvtHitHistos.cxx.

◆ saveHistosSVT()

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

Member Data Documentation

◆ adcs_

int adcs_[6]
private

Definition at line 36 of file RawSvtHitHistos.h.

◆ baseErr1_

float baseErr1_[2][4][512][12]
private

Definition at line 45 of file RawSvtHitHistos.h.

◆ baseErr2_

float baseErr2_[8][4][640][12]
private

Definition at line 46 of file RawSvtHitHistos.h.

◆ debug_

int debug_ = 1
private

Definition at line 35 of file RawSvtHitHistos.h.

◆ Event_number

int Event_number =0
private

Definition at line 33 of file RawSvtHitHistos.h.

◆ hybridNames

std::vector<std::string> hybridNames
private

Definition at line 48 of file RawSvtHitHistos.h.

◆ hybridNames2

std::vector<std::string> hybridNames2
private

Definition at line 49 of file RawSvtHitHistos.h.

◆ mmapper_

ModuleMapper* mmapper_
private

Definition at line 41 of file RawSvtHitHistos.h.

◆ regions_

std::vector<std::string> regions_
private

Definition at line 47 of file RawSvtHitHistos.h.

◆ svtCondHisto

TH1F* svtCondHisto {nullptr}
private

Definition at line 38 of file RawSvtHitHistos.h.

◆ swTag

std::string swTag
private

Definition at line 50 of file RawSvtHitHistos.h.


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