#include <PSDCutFinder.h>
|
| PSDCutFinder (TFile *a_rootFile, std::string a_psdHistoName) |
|
| PSDCutFinder (TH2F *a_psdHisto) |
|
| ~PSDCutFinder () |
|
void | setProjections (double a_xmin, double a_xmax, const std::vector< unsigned int > &a_bins) |
| This function constructs histograms for obtaining psd cuts. More...
|
|
void | setProjections (double a_xmin, double a_xmax, unsigned int a_start, unsigned int a_stop, unsigned int a_step=1) |
|
void | drawPolyCut (std::string a_psdHistoName) |
|
void | clear () |
|
std::vector< std::pair< Double_t, Double_t > > | findPeaks (unsigned int a_hindex) |
| Finds the peaks in the 1D histogram and stores it to pair. More...
|
|
std::vector< Double_t > | doFit (unsigned int a_hindex, std::vector< std::pair< Double_t, Double_t > > a_peaks) |
|
const std::vector< unsigned int > & | getBins () const |
| Get bins: start, stop and step vector. More...
|
|
|
static Double_t | totalFit (Double_t *x, Double_t *par) |
| Total fit function: sum of 2gaussians. More...
|
|
This class is intended to provide fit parameters to be used as cut parameters of a PSD histogram using GenesisEvent_hist.root histograms. instantiations of this class
◆ PSDCutFinder() [1/2]
PSDCutFinder::PSDCutFinder |
( |
TFile * |
a_rootFile, |
|
|
std::string |
a_psdHistoName |
|
) |
| |
Default constructor puts the class into a working state with dummy parameters. It won't do much without loading file or histo
◆ PSDCutFinder() [2/2]
PSDCutFinder::PSDCutFinder |
( |
TH2F * |
a_psdHisto | ) |
|
◆ ~PSDCutFinder()
PSDCutFinder::~PSDCutFinder |
( |
| ) |
|
◆ clear()
void PSDCutFinder::clear |
( |
| ) |
|
◆ doFit()
std::vector< Double_t > PSDCutFinder::doFit |
( |
unsigned int |
a_hindex, |
|
|
std::vector< std::pair< Double_t, Double_t > > |
a_peaks |
|
) |
| |
◆ drawPolyCut()
void PSDCutFinder::drawPolyCut |
( |
std::string |
a_psdHistoName | ) |
|
◆ findPeaks()
std::vector< std::pair< Double_t, Double_t > > PSDCutFinder::findPeaks |
( |
unsigned int |
a_hindex | ) |
|
Finds the peaks in the 1D histogram and stores it to pair.
◆ getBins()
const std::vector< unsigned int > & PSDCutFinder::getBins |
( |
| ) |
const |
Get bins: start, stop and step vector.
◆ setProjections() [1/2]
void PSDCutFinder::setProjections |
( |
double |
a_xmin, |
|
|
double |
a_xmax, |
|
|
const std::vector< unsigned int > & |
a_bins |
|
) |
| |
This function constructs histograms for obtaining psd cuts.
◆ setProjections() [2/2]
void PSDCutFinder::setProjections |
( |
double |
a_xmin, |
|
|
double |
a_xmax, |
|
|
unsigned int |
a_start, |
|
|
unsigned int |
a_stop, |
|
|
unsigned int |
a_step = 1 |
|
) |
| |
◆ totalFit()
Double_t PSDCutFinder::totalFit |
( |
Double_t * |
x, |
|
|
Double_t * |
par |
|
) |
| |
|
static |
Total fit function: sum of 2gaussians.
◆ m_projY
std::vector<TH1D*> PSDCutFinder::m_projY |
1D projection Y histogram
The documentation for this class was generated from the following files: