![]() |
GamR
0.0.0
GammaROOT
|
#include <TimeWalk.hh>
Collaboration diagram for GamR::Processor::TimeWalk:Classes | |
| class | GlobalChiSquare |
Public Member Functions | |
| TimeWalk (std::vector< Int_t > ids) | |
| TimeWalk Calibration Processor. | |
| ~TimeWalk () | |
| Int_t | AddPeak (std::string dataset, GamR::Nucleus::Photon photon, Double_t time) |
| Add a calibration peak to be used to create a data point in the time walk curve. | |
| void | MakeGraphs (Int_t ntoys, Bool_t showmc=kTRUE) |
| Iterating through calibration peaks for each detector pair: calculate the time difference spectrum (with full background subtraction), monte-carlo the first order moment, correct for any early/delay shifts due to lifetimes, to create one data point on the graph. | |
| void | Draw (TCanvas *c, Bool_t fits=kFALSE, std::string saveas="") |
| Draws Time Walk graphs. | |
| void | Fit () |
| Conducts a global \( \Chi^2 \) fit to solve for an absolute time calibration for each detector. | |
Definition at line 21 of file TimeWalk.hh.
| GamR::Processor::TimeWalk::TimeWalk | ( | std::vector< Int_t > | ids | ) |
TimeWalk Calibration Processor.
| [in] | ids | Detector IDs. |
Definition at line 26 of file TimeWalk.cc.
Referenced by GamR::Processor::TimeWalk::GlobalChiSquare::GlobalChiSquare().
Here is the caller graph for this function:| GamR::Processor::TimeWalk::~TimeWalk | ( | ) |
Definition at line 47 of file TimeWalk.cc.
| Int_t GamR::Processor::TimeWalk::AddPeak | ( | std::string | dataset, |
| GamR::Nucleus::Photon | photon, | ||
| Double_t | time ) |
Add a calibration peak to be used to create a data point in the time walk curve.
| [in] | dataset | Filename of Data Set, expects output from GamR::Sort::Type::TimeWalkCal |
| [in] | photon | Calibration peak to measure time relative to reference photon. |
| [in] | time | Early/Delay time correction of this peak. Positive corrects for delayed transitions, negative for early. |
Definition at line 188 of file TimeWalk.cc.
| void GamR::Processor::TimeWalk::Draw | ( | TCanvas * | c, |
| Bool_t | fits = kFALSE, | ||
| std::string | saveas = "" ) |
Draws Time Walk graphs.
| [in] | c | Canvas to draw on. |
| [in] | fits | Draw fits behind graphs |
| [in] | saveas | (optional) save to file |
Definition at line 83 of file TimeWalk.cc.
References ss().
Referenced by Fit(), and MakeGraphs().
Here is the call graph for this function:
Here is the caller graph for this function:| void GamR::Processor::TimeWalk::Fit | ( | ) |
Conducts a global \( \Chi^2 \) fit to solve for an absolute time calibration for each detector.
Definition at line 389 of file TimeWalk.cc.
References Draw(), GamR::Processor::TimeWalk::GlobalChiSquare::minuit(), and ss().
Here is the call graph for this function:| void GamR::Processor::TimeWalk::MakeGraphs | ( | Int_t | ntoys, |
| Bool_t | showmc = kTRUE ) |
Iterating through calibration peaks for each detector pair: calculate the time difference spectrum (with full background subtraction), monte-carlo the first order moment, correct for any early/delay shifts due to lifetimes, to create one data point on the graph.
| ntoys | Number of toy experiments to conduct during the Monte-Carlo simulation. |
| showmc | Shows visualisation of Monte Carlo simulation |
Definition at line 211 of file TimeWalk.cc.
References bp(), Draw(), GamR::TK::MonteCarlo(), and ss().
Here is the call graph for this function: