1 #ifndef _PSD_CUT_FINDER_H_
2 #define _PSD_CUT_FINDER_H_
38 PSDCutFinder(TFile* a_rootFile, std::string a_psdHistoName);
47 const std::vector<unsigned int> &a_bins);
53 unsigned int a_step=1);
60 std::vector< std::pair<Double_t, Double_t> >
64 static Double_t
totalFit(Double_t *x, Double_t *par);
67 doFit(
unsigned int a_hindex, std::vector< std::pair<Double_t, Double_t> > a_peaks );
70 const std::vector<unsigned int> &
getBins()
const;
81 std::string m_psdHistoName;
83 std::vector<unsigned int> m_bins;
Definition: PSDCutFinder.h:34
PSDCutFinder(TFile *a_rootFile, std::string a_psdHistoName)
Definition: PSDCutFinder.cpp:18
std::vector< Double_t > doFit(unsigned int a_hindex, std::vector< std::pair< Double_t, Double_t > > a_peaks)
Definition: PSDCutFinder.cpp:305
void clear()
Definition: PSDCutFinder.cpp:216
static Double_t totalFit(Double_t *x, Double_t *par)
Total fit function: sum of 2gaussians.
Definition: PSDCutFinder.cpp:285
std::vector< TH1D * > m_projY
1D projection Y histogram
Definition: PSDCutFinder.h:73
~PSDCutFinder()
Definition: PSDCutFinder.cpp:362
void drawPolyCut(std::string a_psdHistoName)
Definition: PSDCutFinder.cpp:133
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.
Definition: PSDCutFinder.cpp:225
const std::vector< unsigned int > & getBins() const
Get bins: start, stop and step vector.
Definition: PSDCutFinder.cpp:73
void setProjections(double a_xmin, double a_xmax, const std::vector< unsigned int > &a_bins)
This function constructs histograms for obtaining psd cuts.
Definition: PSDCutFinder.cpp:43
Definition: PSDCutFinder.h:18
Double_t area2
Definition: PSDCutFinder.h:25
Double_t sigma2
Definition: PSDCutFinder.h:23
Double_t sigma1
Definition: PSDCutFinder.h:22
Double_t mu
Definition: PSDCutFinder.h:20
Double_t area1
Definition: PSDCutFinder.h:24
Double_t D
Definition: PSDCutFinder.h:21