![]() |
GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
|
![]() |
#include <string>#include <cstdint>#include "TDirectory.h"#include "TH2.h"
Include dependency graph for GRootCommands.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Enumerations | |
| enum class | EAxis : std::uint8_t { kXAxis = 1 , kYAxis = 2 } |
| enum | GRSIArrowPress : std::uint16_t { kGRSIArrowLeft = 0x1012 , kGRSIArrowUp = 0x1013 , kGRSIArrowRight = 0x1014 , kGRSIArrowDown = 0x1015 } |
Functions | |
| void | AddFileToGUI (TFile *file) |
| TH2 * | AddOffset (TH2 *mat, double offset, EAxis axis=EAxis::kXAxis) |
| TPeak * | AltPhotoPeakFit (TH1 *, double, double, Option_t *opt="") |
| void | Commands () |
| TF1 * | DoubleGausFit (TH1 *, double, double, double, double, Option_t *opt="") |
| GGaus * | GausFit (TH1 *, double, double, Option_t *opt="") |
| bool | GetProjection (GH2D *hist, double low, double high, double bg_low=0, double bg_high=0) |
| TF1 * | GrabFit (int i=0) |
| TH1 * | GrabHist (int i=0) |
| bool | GUIIsRunning () |
| void | Help () |
| int | LabelPeaks (TH1 *, double, double, Option_t *opt="") |
| std::string | MergeStrings (const std::vector< std::string > &strings, char split='\n') |
| bool | Move1DHistogram (const Int_t &key, TH1 *histogram=nullptr) |
| bool | Move2DHistogram (const Int_t &key, TH2 *histogram=nullptr) |
| EAxis | operator& (EAxis lhs, EAxis rhs) |
| GPeak * | PhotoPeakFit (TH1 *, double xlow, double centroid, double xhigh, Option_t *opt="") |
| GPeak * | PhotoPeakFit (TH1 *, double xlow, double xhigh, Option_t *opt="") |
| void | Prompt () |
| bool | RemovePeaks (TH1 **, unsigned int) |
| bool | ShowPeaks (TH1 **, unsigned int, double sigma=2.0, double thresh=0.02) |
| void | StartGUI () |
| void | Version () |
|
strong |
| Enumerator | |
|---|---|
| kXAxis | |
| kYAxis | |
Definition at line 62 of file GRootCommands.h.
| enum GRSIArrowPress : std::uint16_t |
| Enumerator | |
|---|---|
| kGRSIArrowLeft | |
| kGRSIArrowUp | |
| kGRSIArrowRight | |
| kGRSIArrowDown | |
Definition at line 23 of file GRootCommands.h.
| void AddFileToGUI | ( | TFile * | file | ) |
Definition at line 646 of file GRootCommands.cxx.
References GUIIsRunning().
Referenced by TGRSIint::OpenRootFile().
| TH2 * AddOffset | ( | TH2 * | mat, |
| double | offset, | ||
| EAxis | axis = EAxis::kXAxis ) |
Definition at line 660 of file GRootCommands.cxx.
| TPeak * AltPhotoPeakFit | ( | TH1 * | hist, |
| double | xlow, | ||
| double | xhigh, | ||
| Option_t * | opt = "" ) |
Definition at line 526 of file GRootCommands.cxx.
References hist.
Referenced by GCanvas::Process1DKeyboardPress().
| void Commands | ( | ) |
Definition at line 42 of file GRootCommands.cxx.
| TF1 * DoubleGausFit | ( | TH1 * | hist, |
| double | , | ||
| double | , | ||
| double | xlow, | ||
| double | xhigh, | ||
| Option_t * | opt = "" ) |
Definition at line 475 of file GRootCommands.cxx.
References hist.
| GGaus * GausFit | ( | TH1 * | hist, |
| double | xlow, | ||
| double | xhigh, | ||
| Option_t * | opt = "" ) |
Definition at line 451 of file GRootCommands.cxx.
References hist.
Referenced by GCanvas::Process1DKeyboardPress().
| bool GetProjection | ( | GH2D * | hist, |
| double | low, | ||
| double | high, | ||
| double | bg_low = 0, | ||
| double | bg_high = 0 ) |
Definition at line 60 of file GRootCommands.cxx.
References GH1D::Draw(), hist, kRegionBackground, GH1D::Project(), and GH1D::Project_Background().
| TF1 * GrabFit | ( | int | i = 0 | ) |
Definition at line 584 of file GRootCommands.cxx.
References hist.
| TH1 * GrabHist | ( | int | i = 0 | ) |
Definition at line 563 of file GRootCommands.cxx.
References hist.
| bool GUIIsRunning | ( | ) |
Definition at line 640 of file GRootCommands.cxx.
References anonymous_namespace{GRootCommands.cxx}::gui_is_running.
Referenced by AddFileToGUI().
| void Help | ( | ) |
Definition at line 37 of file GRootCommands.cxx.
| int LabelPeaks | ( | TH1 * | hist, |
| double | sigma, | ||
| double | thresh, | ||
| Option_t * | opt = "" ) |
| std::string MergeStrings | ( | const std::vector< std::string > & | strings, |
| char | split = '\n' ) |
Definition at line 548 of file GRootCommands.cxx.
| bool Move1DHistogram | ( | const Int_t & | key, |
| TH1 * | histogram = nullptr ) |
Moves displayed 1D histograms by 50% of the visible range left, right. For "normal" TH1 histograms up/down scales the y-axis up/down by a factor of 2. For GH1D histograms up/down selects the next (up) or previous (down) GH1D histogram.
Definition at line 232 of file GRootCommands.cxx.
References FindHists(), GH1D::GetNext(), GH1D::GetPrevious(), hex(), hist, kGRSIArrowDown, kGRSIArrowLeft, kGRSIArrowRight, and kGRSIArrowUp.
Referenced by GH1D::HandleEvent(), and GCanvas::Process1DArrowKeyPress().
| bool Move2DHistogram | ( | const Int_t & | key, |
| TH2 * | histogram = nullptr ) |
Moves displayed 2D histograms by 50% of the visible range left, right, up, or down
Definition at line 341 of file GRootCommands.cxx.
References FindHists(), hex(), hist, kGRSIArrowDown, kGRSIArrowLeft, kGRSIArrowRight, and kGRSIArrowUp.
Referenced by GCanvas::Process2DArrowKeyPress().
Definition at line 690 of file GRootCommands.cxx.
| GPeak * PhotoPeakFit | ( | TH1 * | hist, |
| double | xlow, | ||
| double | centroid, | ||
| double | xhigh, | ||
| Option_t * | opt = "" ) |
Definition at line 503 of file GRootCommands.cxx.
References hist.
| GPeak * PhotoPeakFit | ( | TH1 * | hist, |
| double | xlow, | ||
| double | xhigh, | ||
| Option_t * | opt = "" ) |
Definition at line 498 of file GRootCommands.cxx.
References hist, and PhotoPeakFit().
Referenced by TCalibrator::AddData(), PhotoPeakFit(), and GCanvas::Process1DKeyboardPress().
| void Prompt | ( | ) |
Definition at line 47 of file GRootCommands.cxx.
Referenced by GCanvas::CycleBackgroundSubtraction().
| bool RemovePeaks | ( | TH1 ** | hists, |
| unsigned int | nhists ) |
Definition at line 205 of file GRootCommands.cxx.
Referenced by GCanvas::Process1DKeyboardPress(), and GCanvas::Process2DKeyboardPress().
| bool ShowPeaks | ( | TH1 ** | hists, |
| unsigned int | nhists, | ||
| double | sigma = 2.0, | ||
| double | thresh = 0.02 ) |
Definition at line 192 of file GRootCommands.cxx.
References LabelPeaks().
Referenced by GCanvas::Process1DKeyboardPress().
| void StartGUI | ( | ) |
Definition at line 617 of file GRootCommands.cxx.
References anonymous_namespace{GRootCommands.cxx}::gui_is_running.
Referenced by TGRSIint::ApplyOptions().
| void Version | ( | ) |
Definition at line 52 of file GRootCommands.cxx.
Referenced by TGRSIOptions::Load().