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 | List of all members
MCAnaHistos Class Reference

description More...

#include <MCAnaHistos.h>

Inheritance diagram for MCAnaHistos:
HistoManager

Public Member Functions

 MCAnaHistos (const std::string &inputName)
 Constructor.
 
virtual void Define3DHistos ()
 description
 
virtual void Define2DHistos ()
 description
 
virtual void Define1DHistos ()
 description
 
void FillMCParticles (std::vector< MCParticle * > *mcParts, std::string analysis, float weight=1.)
 description
 
void FillMCTrackerHits (std::vector< MCTrackerHit * > *mcTrkrHits, float weight=1.)
 description
 
void FillMCEcalHits (std::vector< MCEcalHit * > *mcEcalHits, float weight=1.)
 description
 
void FillAllFindableTracks (MCParticle *eleRad, MCParticle *eleRec, MCParticle *pos, double weight)
 
void FillMCParticleHistos (MCParticle *mcpart, std::string label, double weight)
 
void FillMCPairHistos (MCParticle *ele, MCParticle *pos, std::string label, double weight)
 
- 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 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, 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

description

details

Definition at line 20 of file MCAnaHistos.h.

Constructor & Destructor Documentation

◆ MCAnaHistos()

MCAnaHistos ( const std::string &  inputName)
inline

Constructor.

Parameters
inputName

Definition at line 28 of file MCAnaHistos.h.

Member Function Documentation

◆ Define1DHistos()

virtual void Define1DHistos ( )
inlinevirtual

description

Reimplemented from HistoManager.

Definition at line 46 of file MCAnaHistos.h.

◆ Define2DHistos()

void Define2DHistos ( )
virtual

description

Reimplemented from HistoManager.

Definition at line 4 of file MCAnaHistos.cxx.

◆ Define3DHistos()

virtual void Define3DHistos ( )
inlinevirtual

description

Reimplemented from HistoManager.

Definition at line 34 of file MCAnaHistos.h.

◆ FillAllFindableTracks()

void FillAllFindableTracks ( MCParticle eleRad,
MCParticle eleRec,
MCParticle pos,
double  weight 
)

◆ FillMCEcalHits()

void FillMCEcalHits ( std::vector< MCEcalHit * > *  mcEcalHits,
float  weight = 1. 
)

description

Parameters
mcEcalHits
weight

Definition at line 201 of file MCAnaHistos.cxx.

◆ FillMCPairHistos()

void FillMCPairHistos ( MCParticle ele,
MCParticle pos,
std::string  label,
double  weight 
)

Definition at line 231 of file MCAnaHistos.cxx.

◆ FillMCParticleHistos()

void FillMCParticleHistos ( MCParticle mcpart,
std::string  label,
double  weight 
)

Definition at line 211 of file MCAnaHistos.cxx.

◆ FillMCParticles()

void FillMCParticles ( std::vector< MCParticle * > *  mcParts,
std::string  analysis,
float  weight = 1. 
)

description

Parameters
mcParts
analysis
weight

Definition at line 38 of file MCAnaHistos.cxx.

◆ FillMCTrackerHits()

void FillMCTrackerHits ( std::vector< MCTrackerHit * > *  mcTrkrHits,
float  weight = 1. 
)

description

Parameters
mcTrkrHits
weight

Definition at line 189 of file MCAnaHistos.cxx.


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