1#ifndef GROOTCOMMANDS__H
2#define GROOTCOMMANDS__H
18#include "TDirectory.h"
25int LabelPeaks(TH1*,
double,
double, Option_t* opt =
"");
26bool ShowPeaks(TH1**,
unsigned int,
double sigma = 2.0,
double thresh = 0.02);
35TF1*
DoubleGausFit(TH1*,
double,
double,
double,
double, Option_t* opt =
"");
37std::string
MergeStrings(
const std::vector<std::string>& strings,
char split =
'\n');
bool Move2DHistogram(const Int_t &key, TH2 *histogram=nullptr)
bool ShowPeaks(TH1 **, unsigned int, double sigma=2.0, double thresh=0.02)
void AddFileToGUI(TFile *file)
EAxis operator&(EAxis lhs, EAxis rhs)
bool Move1DHistogram(const Int_t &key, TH1 *histogram=nullptr)
TF1 * DoubleGausFit(TH1 *, double, double, double, double, Option_t *opt="")
TH2 * AddOffset(TH2 *mat, double offset, EAxis axis=EAxis::kXAxis)
GGaus * GausFit(TH1 *, double, double, Option_t *opt="")
GPeak * PhotoPeakFit(TH1 *, double, double, Option_t *opt="")
TPeak * AltPhotoPeakFit(TH1 *, double, double, Option_t *opt="")
std::string MergeStrings(const std::vector< std::string > &strings, char split='\n')
bool GetProjection(GH2D *hist, double low, double high, double bg_low=0, double bg_high=0)
int LabelPeaks(TH1 *, double, double, Option_t *opt="")
bool RemovePeaks(TH1 **, unsigned int)