GRSISort
Created by P.C. Bender
Developement Team: P.C. Bender, R. Dunlop, V. Bildstein
An extension of the ROOT analysis Framework
TSourceTab Class Reference

Definition at line 90 of file TSourceCalibration.h.

Public Member Functions

 TSourceTab (TSourceCalibration *parent, TNucleus *nucleus, TH2 *matrix, TGCompositeFrame *frame, const double &sigma, const double &threshold, const int &degree, const std::vector< std::tuple< double, double, double, double > > &sourceEnergy, TGHProgressBar *progressBar)
 
 ~TSourceTab ()
 
void Calibrate (const int &degree, const bool &force=false)
 
TGTab * ChannelTab ()
 
void CreateChannelTab (int bin)
 
TGraphErrors * Data (int channelId)
 
void Disconnect ()
 
TGraphErrors * Efficiency (int channelId)
 
void FindPeaks (const double &sigma, const double &threshold, const bool &force=false, const bool &fast=true)
 
void MakeConnections ()
 
size_t NumberOfChannels ()
 
void VerboseLevel (int val)
 

Private Attributes

std::vector< TChannelTab * > fChannel
 
TGTab * fChannelTab {nullptr}
 
int fDegree {false}
 
TGCompositeFrame * fFrame {nullptr}
 
TH2 * fMatrix {nullptr}
 
TNucleusfNucleus
 
TSourceCalibrationfParent
 
TGHProgressBar * fProgressBar {nullptr}
 
std::vector< TH1 * > fProjections
 
double fSigma {2.}
 
std::vector< std::tuple< double, double, double, double > > fSourceEnergy
 
double fThreshold {0.05}
 
int fVerboseLevel {0}
 

#include <TSourceCalibration.h>

+ Collaboration diagram for TSourceTab:

Constructor & Destructor Documentation

◆ TSourceTab()

TSourceTab::TSourceTab ( TSourceCalibration parent,
TNucleus nucleus,
TH2 *  matrix,
TGCompositeFrame *  frame,
const double &  sigma,
const double &  threshold,
const int &  degree,
const std::vector< std::tuple< double, double, double, double > > &  sourceEnergy,
TGHProgressBar *  progressBar 
)

◆ ~TSourceTab()

TSourceTab::~TSourceTab ( )

Definition at line 565 of file TSourceCalibration.cxx.

References fChannel, and fChannelTab.

Member Function Documentation

◆ Calibrate()

void TSourceTab::Calibrate ( const int &  degree,
const bool &  force = false 
)
inline

Definition at line 100 of file TSourceCalibration.h.

References fChannel, and fChannelTab.

◆ ChannelTab()

TGTab* TSourceTab::ChannelTab ( )
inline

Definition at line 102 of file TSourceCalibration.h.

References fChannelTab.

◆ CreateChannelTab()

void TSourceTab::CreateChannelTab ( int  bin)

◆ Data()

TGraphErrors* TSourceTab::Data ( int  channelId)
inline

Definition at line 103 of file TSourceCalibration.h.

References fChannel.

◆ Disconnect()

void TSourceTab::Disconnect ( )

Definition at line 600 of file TSourceCalibration.cxx.

References fChannel, fChannelTab, and fParent.

◆ Efficiency()

TGraphErrors* TSourceTab::Efficiency ( int  channelId)
inline

Definition at line 104 of file TSourceCalibration.h.

References fChannel.

◆ FindPeaks()

void TSourceTab::FindPeaks ( const double &  sigma,
const double &  threshold,
const bool &  force = false,
const bool &  fast = true 
)
inline

Definition at line 101 of file TSourceCalibration.h.

References fChannel, fChannelTab, and fSourceEnergy.

◆ MakeConnections()

void TSourceTab::MakeConnections ( )

Definition at line 592 of file TSourceCalibration.cxx.

References fChannel, fChannelTab, and fParent.

◆ NumberOfChannels()

size_t TSourceTab::NumberOfChannels ( )
inline

Definition at line 105 of file TSourceCalibration.h.

References fChannel.

◆ VerboseLevel()

void TSourceTab::VerboseLevel ( int  val)
inline

Definition at line 107 of file TSourceCalibration.h.

References fChannel, and fVerboseLevel.

Member Data Documentation

◆ fChannel

std::vector<TChannelTab*> TSourceTab::fChannel
private

◆ fChannelTab

TGTab* TSourceTab::fChannelTab {nullptr}
private

◆ fDegree

int TSourceTab::fDegree {false}
private

degree of polynomial function used to calibrate

Definition at line 123 of file TSourceCalibration.h.

Referenced by CreateChannelTab().

◆ fFrame

TGCompositeFrame* TSourceTab::fFrame {nullptr}
private

main frame of this tab

Definition at line 111 of file TSourceCalibration.h.

Referenced by TSourceTab().

◆ fMatrix

TH2* TSourceTab::fMatrix {nullptr}
private

the matrix we're using

Definition at line 120 of file TSourceCalibration.h.

Referenced by CreateChannelTab(), and TSourceTab().

◆ fNucleus

TNucleus* TSourceTab::fNucleus
private

the source nucleus

Definition at line 118 of file TSourceCalibration.h.

Referenced by CreateChannelTab().

◆ fParent

TSourceCalibration* TSourceTab::fParent
private

the parent of this tab

Definition at line 119 of file TSourceCalibration.h.

Referenced by Disconnect(), and MakeConnections().

◆ fProgressBar

TGHProgressBar* TSourceTab::fProgressBar {nullptr}
private

Definition at line 114 of file TSourceCalibration.h.

Referenced by CreateChannelTab().

◆ fProjections

std::vector<TH1*> TSourceTab::fProjections
private

vector of all projections

Definition at line 117 of file TSourceCalibration.h.

◆ fSigma

double TSourceTab::fSigma {2.}
private

the sigma used in the peak finder

Definition at line 121 of file TSourceCalibration.h.

Referenced by CreateChannelTab().

◆ fSourceEnergy

std::vector<std::tuple<double, double, double, double> > TSourceTab::fSourceEnergy
private

vector with source energies and uncertainties

Definition at line 124 of file TSourceCalibration.h.

Referenced by CreateChannelTab(), and FindPeaks().

◆ fThreshold

double TSourceTab::fThreshold {0.05}
private

the threshold (relative to the largest peak) used in the peak finder

Definition at line 122 of file TSourceCalibration.h.

Referenced by CreateChannelTab().

◆ fVerboseLevel

int TSourceTab::fVerboseLevel {0}
private

Changes verbosity from 0 (quiet) to 4 (very verbose)

Definition at line 125 of file TSourceCalibration.h.

Referenced by CreateChannelTab(), TSourceTab(), and VerboseLevel().