![]() |
GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
|
![]() |
Definition at line 105 of file TSourceCalibration.h.
Public Member Functions | |
TChannelTab (const TChannelTab &)=default | |
TChannelTab (TChannelTab &&) noexcept=default | |
TChannelTab (TSourceCalibration *parent, std::vector< TNucleus * > nuclei, std::vector< GH1D * > projections, std::string name, TGCompositeFrame *frame, double sigma, double threshold, int degree, std::vector< std::vector< std::tuple< double, double, double, double > > > sourceEnergies, TGHProgressBar *progressBar) | |
~TChannelTab () | |
int | ActiveSourceTab () const |
void | Calibrate () |
void | Calibrate (const int °ree, const bool &force=false) |
void | CalibrationStatus (Int_t event, Int_t px, Int_t py, TObject *selected) |
void | CreateSourceTab (size_t source) |
TGraphErrors * | Data (int channelId) const |
void | Disconnect () |
void | FindPeaks (const double &sigma, const double &threshold, const double &peakRatio, const bool &force=false, const bool &fast=true) |
void | MakeConnections () |
std::string | Name () const |
size_t | NumberOfSources () const |
TChannelTab & | operator= (const TChannelTab &)=default |
TChannelTab & | operator= (TChannelTab &&) noexcept=default |
void | PrintLayout () const |
void | SelectCanvas (Event_t *event) |
TSourceTab * | SelectedSourceTab () const |
void | SelectedTab (Int_t id) |
TGTab * | SourceTab () const |
void | UpdateChannel () |
void | UpdateData () |
void | UpdateFwhm () |
void | Write (TFile *output) |
Static Public Member Functions | |
static void | ZoomX () |
static void | ZoomY () |
Private Attributes | |
int | fActiveSourceTab {0} |
TRootEmbeddedCanvas * | fCalibrationCanvas {nullptr} |
TGCompositeFrame * | fCalibrationFrame {nullptr} |
TPad * | fCalibrationPad {nullptr} |
TGTab * | fCanvasTab {nullptr} |
TGCompositeFrame * | fChannelFrame {nullptr} |
TGStatusBar * | fChannelStatusBar {nullptr} |
TPaveText * | fChi2Label {nullptr} |
TCalibrationGraphSet * | fData {nullptr} |
int | fDegree {1} |
TCalibrationGraphSet * | fFwhm {nullptr} |
TRootEmbeddedCanvas * | fFwhmCanvas {nullptr} |
TGCompositeFrame * | fFwhmFrame {nullptr} |
TLegend * | fLegend {nullptr} |
std::string | fName |
std::vector< TNucleus * > | fNuclei |
TSourceCalibration * | fParent |
TGHProgressBar * | fProgressBar {nullptr} |
std::vector< GH1D * > | fProjections |
TPad * | fResidualPad {nullptr} |
double | fSigma {2.} |
std::vector< std::vector< std::tuple< double, double, double, double > > > | fSourceEnergies |
std::vector< TSourceTab * > | fSources |
TGTab * | fSourceTab {nullptr} |
double | fThreshold {0.05} |
TChannelTab::TChannelTab | ( | TSourceCalibration * | parent, |
std::vector< TNucleus * > | nuclei, | ||
std::vector< GH1D * > | projections, | ||
std::string | name, | ||
TGCompositeFrame * | frame, | ||
double | sigma, | ||
double | threshold, | ||
int | degree, | ||
std::vector< std::vector< std::tuple< double, double, double, double > > > | sourceEnergies, | ||
TGHProgressBar * | progressBar ) |
Definition at line 856 of file TSourceCalibration.cxx.
References DYELLOW, fChannelFrame, fData, fName, fNuclei, fSources, kBasicFlow, and TSourceCalibration::VerboseLevel().
|
default |
|
defaultnoexcept |
TChannelTab::~TChannelTab | ( | ) |
Definition at line 928 of file TSourceCalibration.cxx.
References fCalibrationCanvas, fCalibrationFrame, fCalibrationPad, fCanvasTab, fChannelStatusBar, fChi2Label, fData, fFwhm, fFwhmCanvas, fFwhmFrame, fLegend, fProgressBar, fResidualPad, fSources, and fSourceTab.
|
inline |
Definition at line 134 of file TSourceCalibration.h.
References fActiveSourceTab.
void TChannelTab::Calibrate | ( | ) |
This function fit's the final data of the given channel. It requires all other elements to have been created already.
Definition at line 1150 of file TSourceCalibration.cxx.
References TCalibrationGraphSet::DrawCalibration(), TCalibrationGraphSet::DrawResidual(), DYELLOW, fCalibrationCanvas, fCalibrationPad, fChannelStatusBar, fChi2Label, fData, fDegree, TCalibrationGraphSet::Fit(), fLegend, fResidualPad, TCalibrationGraphSet::GetMaximumX(), TCalibrationGraphSet::GetMaximumY(), TCalibrationGraphSet::GetMinimumX(), TCalibrationGraphSet::GetMinimumY(), TCalibrationGraphSet::GetN(), kBasicFlow, kSubroutines, Polynomial(), TCalibrationGraphSet::Print(), TCalibrationGraphSet::SetResidual(), and TSourceCalibration::VerboseLevel().
Referenced by Calibrate(), and TSourceTab::ProjectionStatus().
void TChannelTab::Calibrate | ( | const int & | degree, |
const bool & | force = false ) |
Definition at line 1132 of file TSourceCalibration.cxx.
References Calibrate(), DYELLOW, fDegree, fName, kSubroutines, and TSourceCalibration::VerboseLevel().
void TChannelTab::CalibrationStatus | ( | Int_t | event, |
Int_t | px, | ||
Int_t | py, | ||
TObject * | selected ) |
Definition at line 1033 of file TSourceCalibration.cxx.
References fCalibrationCanvas, and fChannelStatusBar.
void TChannelTab::CreateSourceTab | ( | size_t | source | ) |
Definition at line 949 of file TSourceCalibration.cxx.
References DYELLOW, fName, fNuclei, fParent, fProgressBar, fProjections, fSigma, fSourceEnergies, fSources, fSourceTab, fThreshold, kBasicFlow, TSourceCalibration::PeakRatio(), and TSourceCalibration::VerboseLevel().
|
inline |
Definition at line 131 of file TSourceCalibration.h.
References fSources.
Referenced by UpdateData().
void TChannelTab::Disconnect | ( | ) |
Definition at line 985 of file TSourceCalibration.cxx.
References fCalibrationCanvas, fData, fSources, and fSourceTab.
void TChannelTab::FindPeaks | ( | const double & | sigma, |
const double & | threshold, | ||
const double & | peakRatio, | ||
const bool & | force = false, | ||
const bool & | fast = true ) |
Definition at line 1246 of file TSourceCalibration.cxx.
References DYELLOW, fActiveSourceTab, fSources, fSourceTab, kSubroutines, UpdateData(), UpdateFwhm(), and TSourceCalibration::VerboseLevel().
void TChannelTab::MakeConnections | ( | ) |
Definition at line 973 of file TSourceCalibration.cxx.
References fCalibrationCanvas, fData, fSources, and fSourceTab.
|
inline |
Definition at line 133 of file TSourceCalibration.h.
References fName.
|
inline |
Definition at line 132 of file TSourceCalibration.h.
References fSources.
|
default |
|
defaultnoexcept |
void TChannelTab::PrintLayout | ( | ) | const |
Definition at line 1412 of file TSourceCalibration.cxx.
References fCalibrationCanvas, fChannelFrame, and fSources.
void TChannelTab::SelectCanvas | ( | Event_t * | event | ) |
Definition at line 1020 of file TSourceCalibration.cxx.
References fCalibrationCanvas, kBasicFlow, and TSourceCalibration::VerboseLevel().
|
inline |
Definition at line 135 of file TSourceCalibration.h.
References fActiveSourceTab, and fSources.
void TChannelTab::SelectedTab | ( | Int_t | id | ) |
Simple function that enables and disables the previous and next buttons depending on which tab was selected.
Definition at line 996 of file TSourceCalibration.cxx.
References DGREEN, DYELLOW, fActiveSourceTab, fSources, kBasicFlow, RESET_COLOR, and TSourceCalibration::VerboseLevel().
|
inline |
Definition at line 130 of file TSourceCalibration.h.
References fSourceTab.
void TChannelTab::UpdateChannel | ( | ) |
Definition at line 1206 of file TSourceCalibration.cxx.
References TChannel::AddEnergyNonlinearityPoint(), TChannel::DestroyEnergyNonlinearity(), DYELLOW, fData, TCalibrationGraphSet::FitFunction(), fName, fParent, TChannel::GetChannel(), TChannel::GetEnergyNonlinearity(), TCalibrationGraphSet::GetN(), TCalibrationGraphSet::GetX(), TCalibrationGraphSet::GetY(), hex(), kBasicFlow, kLoops, kSubroutines, TChannel::SetENGCoefficients(), TCalibrationGraphSet::TotalGraph(), TSourceCalibration::VerboseLevel(), and TSourceCalibration::WriteNonlinearities().
void TChannelTab::UpdateData | ( | ) |
Copy data from all sources into one graph (which we use for the calib && source < fSources.size()ration).
Definition at line 1070 of file TSourceCalibration.cxx.
References TCalibrationGraphSet::Add(), TCalibrationGraphSet::Clear(), Data(), DYELLOW, fData, fName, fNuclei, fSources, TCalibrationGraphSet::GetN(), kBasicFlow, kSubroutines, TCalibrationGraphSet::Print(), TCalibrationGraphSet::SetLineColor(), TCalibrationGraphSet::SetMarkerColor(), and TSourceCalibration::VerboseLevel().
Referenced by FindPeaks(), and TSourceTab::ProjectionStatus().
void TChannelTab::UpdateFwhm | ( | ) |
Copy data from all sources into one graph (which we use for the calib && source < fSources.size()ration).
Definition at line 1101 of file TSourceCalibration.cxx.
References TCalibrationGraphSet::Add(), TCalibrationGraphSet::Clear(), DYELLOW, fFwhm, fName, fNuclei, fSources, TCalibrationGraphSet::GetN(), kBasicFlow, kSubroutines, TCalibrationGraphSet::Print(), TCalibrationGraphSet::SetLineColor(), TCalibrationGraphSet::SetMarkerColor(), and TSourceCalibration::VerboseLevel().
Referenced by FindPeaks(), and TSourceTab::ProjectionStatus().
void TChannelTab::Write | ( | TFile * | output | ) |
Write graphs to output.
Definition at line 1260 of file TSourceCalibration.cxx.
References DYELLOW, fData, fFwhm, fName, kSubroutines, and TSourceCalibration::VerboseLevel().
|
static |
finds corresponding graph (res_xxx for cal_xxx and vice versa) and sets it's x-axis range to be the same as the selected graphs
Definition at line 1270 of file TSourceCalibration.cxx.
References kLoops, and TSourceCalibration::VerboseLevel().
|
static |
finds corresponding graph (res_xxx for cal_xxx and vice versa) and sets it's y-axis range to be the same as the selected graphs
Definition at line 1344 of file TSourceCalibration.cxx.
References kLoops, and TSourceCalibration::VerboseLevel().
|
private |
id of the currently active source tab
Definition at line 170 of file TSourceCalibration.h.
Referenced by ActiveSourceTab(), FindPeaks(), SelectedSourceTab(), and SelectedTab().
|
private |
Definition at line 149 of file TSourceCalibration.h.
Referenced by ~TChannelTab(), Calibrate(), CalibrationStatus(), Disconnect(), MakeConnections(), PrintLayout(), and SelectCanvas().
|
private |
frame of tab with calibration
Definition at line 148 of file TSourceCalibration.h.
Referenced by ~TChannelTab().
|
private |
Definition at line 151 of file TSourceCalibration.h.
Referenced by ~TChannelTab(), and Calibrate().
|
private |
tab for canvases (calibration with residuals, and FWHM)
Definition at line 147 of file TSourceCalibration.h.
Referenced by ~TChannelTab().
|
private |
main frame of this tab
Definition at line 144 of file TSourceCalibration.h.
Referenced by TChannelTab(), and PrintLayout().
|
private |
Definition at line 152 of file TSourceCalibration.h.
Referenced by ~TChannelTab(), Calibrate(), and CalibrationStatus().
|
private |
Definition at line 154 of file TSourceCalibration.h.
Referenced by ~TChannelTab(), and Calibrate().
|
private |
combined data from all sources
Definition at line 168 of file TSourceCalibration.h.
Referenced by TChannelTab(), ~TChannelTab(), Calibrate(), Disconnect(), MakeConnections(), UpdateChannel(), UpdateData(), and Write().
|
private |
degree of polynomial function used to calibrate
Definition at line 166 of file TSourceCalibration.h.
Referenced by Calibrate(), and Calibrate().
|
private |
combined fwhm from all sources
Definition at line 169 of file TSourceCalibration.h.
Referenced by ~TChannelTab(), UpdateFwhm(), and Write().
|
private |
Definition at line 156 of file TSourceCalibration.h.
Referenced by ~TChannelTab().
|
private |
frame of tab with fwhm
Definition at line 155 of file TSourceCalibration.h.
Referenced by ~TChannelTab().
|
private |
Definition at line 153 of file TSourceCalibration.h.
Referenced by ~TChannelTab(), and Calibrate().
|
private |
name of this tab
Definition at line 163 of file TSourceCalibration.h.
Referenced by TChannelTab(), Calibrate(), CreateSourceTab(), Name(), UpdateChannel(), UpdateData(), UpdateFwhm(), and Write().
|
private |
the source nucleus
Definition at line 161 of file TSourceCalibration.h.
Referenced by TChannelTab(), CreateSourceTab(), UpdateData(), and UpdateFwhm().
|
private |
the parent of this tab
Definition at line 160 of file TSourceCalibration.h.
Referenced by CreateSourceTab(), and UpdateChannel().
|
private |
Definition at line 157 of file TSourceCalibration.h.
Referenced by ~TChannelTab(), and CreateSourceTab().
|
private |
vector of all projections
Definition at line 162 of file TSourceCalibration.h.
Referenced by CreateSourceTab().
|
private |
Definition at line 150 of file TSourceCalibration.h.
Referenced by ~TChannelTab(), and Calibrate().
|
private |
the sigma used in the peak finder
Definition at line 164 of file TSourceCalibration.h.
Referenced by CreateSourceTab().
|
private |
vector with source energies and uncertainties
Definition at line 167 of file TSourceCalibration.h.
Referenced by CreateSourceTab().
|
private |
tabs for all sources
Definition at line 146 of file TSourceCalibration.h.
Referenced by TChannelTab(), ~TChannelTab(), CreateSourceTab(), Data(), Disconnect(), FindPeaks(), MakeConnections(), NumberOfSources(), PrintLayout(), SelectedSourceTab(), SelectedTab(), UpdateData(), and UpdateFwhm().
|
private |
tab for sources
Definition at line 145 of file TSourceCalibration.h.
Referenced by ~TChannelTab(), CreateSourceTab(), Disconnect(), FindPeaks(), MakeConnections(), and SourceTab().
|
private |
the threshold (relative to the largest peak) used in the peak finder
Definition at line 165 of file TSourceCalibration.h.
Referenced by CreateSourceTab().