GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
|
#include "TSourceCalibration.h"
#include <chrono>
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <string>
#include <cstring>
#include "TSystem.h"
#include "TGTableLayout.h"
#include "TCanvas.h"
#include "TLinearFitter.h"
#include "TF1.h"
#include "TSpectrum.h"
#include "TPolyMarker.h"
#include "TObject.h"
#include "TFrame.h"
#include "TVirtualX.h"
#include "TChannel.h"
#include "GRootCommands.h"
#include "combinations.h"
#include "Globals.h"
Go to the source code of this file.
Functions | |
bool | FilledBin (TH2 *matrix, const int &bin) |
std::map< GPeak *, std::tuple< double, double, double, double > > | Match (std::vector< GPeak * > peaks, std::vector< std::tuple< double, double, double, double > > sources, TSourceTab *sourceTab) |
double | Polynomial (double *x, double *par) |
std::map< GPeak *, std::tuple< double, double, double, double > > | SmartMatch (std::vector< GPeak * > peaks, std::vector< std::tuple< double, double, double, double > > sources, TSourceTab *sourceTab) |
bool FilledBin | ( | TH2 * | matrix, |
const int & | bin ) |
Definition at line 300 of file TSourceCalibration.cxx.
Referenced by TSourceCalibration::TSourceCalibration().
std::map< GPeak *, std::tuple< double, double, double, double > > Match | ( | std::vector< GPeak * > | peaks, |
std::vector< std::tuple< double, double, double, double > > | sources, | ||
TSourceTab * | sourceTab ) |
This function tries to match a list of found peaks (channels) to a list of provided peaks (energies). It does so in a brute force fashion where we try all combinations of channels and energies, do a linear fit through them, and keep the one with the best chi square.
Definition at line 29 of file TSourceCalibration.cxx.
References kAll, kBasicFlow, kLoops, kSubroutines, TSourceCalibration::MaxIterations(), RESET_COLOR, TSourceTab::Status(), and TSourceCalibration::VerboseLevel().
Referenced by TSourceTab::FindPeaks(), and TSourceTab::ProjectionStatus().
double Polynomial | ( | double * | x, |
double * | par ) |
Definition at line 291 of file TSourceCalibration.cxx.
Referenced by TChannelTab::Calibrate().
std::map< GPeak *, std::tuple< double, double, double, double > > SmartMatch | ( | std::vector< GPeak * > | peaks, |
std::vector< std::tuple< double, double, double, double > > | sources, | ||
TSourceTab * | sourceTab ) |
This function tries to match a list of found peaks (channels) to a list of provided peaks (energies). It does so in slightly smarter way than the brute force method Match
, by taking the reported intensity of the source peaks into account.
Definition at line 148 of file TSourceCalibration.cxx.
References kAll, kBasicFlow, kLoops, kSubroutines, TSourceCalibration::MaxIterations(), RESET_COLOR, TSourceTab::Status(), and TSourceCalibration::VerboseLevel().
Referenced by TSourceTab::FindPeaks().