GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
GRootCommands.h File Reference
#include <string>
#include "TDirectory.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 { kXAxis = 1 , kYAxis = 2 }
 
enum  GRSIArrowPress { kGRSIArrowLeft = 0x1012 , kGRSIArrowUp = 0x1013 , kGRSIArrowRight = 0x1014 , kGRSIArrowDown = 0x1015 }
 

Functions

void AddFileToGUI (TFile *file)
 
TH2 * AddOffset (TH2 *mat, double offset, EAxis axis=EAxis::kXAxis)
 
TPeakAltPhotoPeakFit (TH1 *, double, double, Option_t *opt="")
 
void Commands ()
 
TF1 * DoubleGausFit (TH1 *, double, double, double, double, Option_t *opt="")
 
GGausGausFit (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)
 
GPeakPhotoPeakFit (TH1 *, double, double, 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 ()
 

Enumeration Type Documentation

◆ EAxis

enum class EAxis
strong
Enumerator
kXAxis 
kYAxis 

Definition at line 58 of file GRootCommands.h.

◆ GRSIArrowPress

Enumerator
kGRSIArrowLeft 
kGRSIArrowUp 
kGRSIArrowRight 
kGRSIArrowDown 

Definition at line 20 of file GRootCommands.h.

Function Documentation

◆ AddFileToGUI()

void AddFileToGUI ( TFile * file)

Definition at line 638 of file GRootCommands.cxx.

References GUIIsRunning().

Referenced by TGRSIint::OpenRootFile().

◆ AddOffset()

TH2 * AddOffset ( TH2 * mat,
double offset,
EAxis axis = EAxis::kXAxis )

Definition at line 652 of file GRootCommands.cxx.

References kXAxis, kYAxis, and mat.

◆ AltPhotoPeakFit()

TPeak * AltPhotoPeakFit ( TH1 * hist,
double xlow,
double xhigh,
Option_t * opt = "" )

Definition at line 518 of file GRootCommands.cxx.

References hist.

Referenced by GCanvas::Process1DKeyboardPress().

◆ Commands()

void Commands ( )

Definition at line 42 of file GRootCommands.cxx.

◆ DoubleGausFit()

TF1 * DoubleGausFit ( TH1 * hist,
double ,
double ,
double xlow,
double xhigh,
Option_t * opt = "" )

Definition at line 475 of file GRootCommands.cxx.

References hist.

◆ GausFit()

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().

◆ GetProjection()

bool GetProjection ( GH2D * hist,
double low,
double high,
double bg_low = 0,
double bg_high = 0 )

◆ GrabFit()

TF1 * GrabFit ( int i = 0)

Definition at line 576 of file GRootCommands.cxx.

References hist.

◆ GrabHist()

TH1 * GrabHist ( int i = 0)

Definition at line 555 of file GRootCommands.cxx.

References hist.

◆ GUIIsRunning()

bool GUIIsRunning ( )

Definition at line 632 of file GRootCommands.cxx.

References anonymous_namespace{GRootCommands.cxx}::gui_is_running.

Referenced by AddFileToGUI().

◆ Help()

void Help ( )

Definition at line 37 of file GRootCommands.cxx.

◆ LabelPeaks()

int LabelPeaks ( TH1 * hist,
double sigma,
double thresh,
Option_t * opt = "" )

Definition at line 150 of file GRootCommands.cxx.

References hist.

Referenced by ShowPeaks().

◆ MergeStrings()

std::string MergeStrings ( const std::vector< std::string > & strings,
char split = '\n' )

Definition at line 540 of file GRootCommands.cxx.

◆ Move1DHistogram()

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().

◆ Move2DHistogram()

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().

◆ operator&()

EAxis operator& ( EAxis lhs,
EAxis rhs )

Definition at line 682 of file GRootCommands.cxx.

◆ PhotoPeakFit()

GPeak * PhotoPeakFit ( TH1 * hist,
double xlow,
double xhigh,
Option_t * opt = "" )

◆ Prompt()

void Prompt ( )

Definition at line 47 of file GRootCommands.cxx.

Referenced by GCanvas::CycleBackgroundSubtraction().

◆ RemovePeaks()

bool RemovePeaks ( TH1 ** hists,
unsigned int nhists )

◆ ShowPeaks()

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().

◆ StartGUI()

void StartGUI ( )

◆ Version()

void Version ( )

Definition at line 52 of file GRootCommands.cxx.

Referenced by TGRSIOptions::Load().