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

#include <TrackEfficHistos.h>

Inheritance diagram for TrackEfficHistos:
HistoManager

Public Member Functions

 TrackEfficHistos (const std::string &inputName, std::shared_ptr< AnaHelpers > ah)
virtual void Define3DHistos ()
 define additional 3D histo by hand
virtual void Define2DHistos ()
 define additional 2D histo by hand
void BuildAxes ()
void FillEffPlots (std::pair< CalCluster *, Track * > ele, std::pair< CalCluster *, Track * > pos, float weight=1.)
void FillPreSelectionPlots (CalCluster *, float weight=1.)
void FillPairSelectionPlots (CalCluster *eleClu, CalCluster *posClu, float weight)
std::pair< CalCluster *, Track * > getClusterTrackPair (CalCluster *cluster, std::vector< Track * > &tracks, float weight=1.0)
void FillEffPlots (Particle *ele, Particle *pos, float weight=1.0)
void SetCalTimeOffset (double offset)
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 Define1DHistos ()
 define additional 1D histo by hand
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::shared_ptr< AnaHelpers > _ah
double timeOffset_ {0.0}

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

Definition at line 13 of file TrackEfficHistos.h.

Constructor & Destructor Documentation

◆ TrackEfficHistos()

TrackEfficHistos ( const std::string & inputName,
std::shared_ptr< AnaHelpers > ah )
inline

Definition at line 17 of file TrackEfficHistos.h.

Member Function Documentation

◆ BuildAxes()

void BuildAxes ( )
inline

Definition at line 30 of file TrackEfficHistos.h.

◆ Define2DHistos()

virtual void Define2DHistos ( )
inlinevirtual

define additional 2D histo by hand

Reimplemented from HistoManager.

Definition at line 27 of file TrackEfficHistos.h.

◆ Define3DHistos()

virtual void Define3DHistos ( )
inlinevirtual

define additional 3D histo by hand

Reimplemented from HistoManager.

Definition at line 26 of file TrackEfficHistos.h.

◆ FillEffPlots() [1/2]

void FillEffPlots ( Particle * ele,
Particle * pos,
float weight = 1.0 )

Definition at line 16 of file TrackEfficHistos.cxx.

◆ FillEffPlots() [2/2]

void FillEffPlots ( std::pair< CalCluster *, Track * > ele,
std::pair< CalCluster *, Track * > pos,
float weight = 1. )

◆ FillPairSelectionPlots()

void FillPairSelectionPlots ( CalCluster * eleClu,
CalCluster * posClu,
float weight )

Definition at line 174 of file TrackEfficHistos.cxx.

◆ FillPreSelectionPlots()

void FillPreSelectionPlots ( CalCluster * clu,
float weight = 1. )

Definition at line 158 of file TrackEfficHistos.cxx.

◆ getClusterTrackPair()

std::pair< CalCluster *, Track * > getClusterTrackPair ( CalCluster * cluster,
std::vector< Track * > & tracks,
float weight = 1.0 )

Definition at line 205 of file TrackEfficHistos.cxx.

◆ SetCalTimeOffset()

void SetCalTimeOffset ( double offset)
inline

Definition at line 38 of file TrackEfficHistos.h.

Member Data Documentation

◆ _ah

std::shared_ptr<AnaHelpers> _ah
private

Definition at line 45 of file TrackEfficHistos.h.

◆ timeOffset_

double timeOffset_ {0.0}
private

Definition at line 46 of file TrackEfficHistos.h.


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