Berkeley Nuclear Data Software
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
PSDCutFinder Class Reference

#include <PSDCutFinder.h>

Public Member Functions

 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 Public Member Functions

static Double_t totalFit (Double_t *x, Double_t *par)
 Total fit function: sum of 2gaussians. More...
 

Public Attributes

std::vector< TH1D * > m_projY
 1D projection Y histogram More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ 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 ( )

Member Function Documentation

◆ clear()

void PSDCutFinder::clear ( )
Here is the caller graph for this function:

◆ doFit()

std::vector< Double_t > PSDCutFinder::doFit ( unsigned int  a_hindex,
std::vector< std::pair< Double_t, Double_t > >  a_peaks 
)
Here is the call graph for this function:

◆ 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.

Here is the call graph for this function:

◆ 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 
)
Here is the call graph for this function:

◆ totalFit()

Double_t PSDCutFinder::totalFit ( Double_t *  x,
Double_t *  par 
)
static

Total fit function: sum of 2gaussians.

Here is the caller graph for this function:

Member Data Documentation

◆ m_projY

std::vector<TH1D*> PSDCutFinder::m_projY

1D projection Y histogram


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