|
BmnRoot
|
#include <TObjArray.h>#include <TFile.h>#include <TChain.h>#include <TObjString.h>#include <TH1.h>#include <TH2.h>#include <TF1.h>#include <TROOT.h>#include <TSystem.h>#include <TSystemDirectory.h>#include <TSystemFile.h>#include <TList.h>#include <TCollection.h>#include <TMath.h>#include <TDirectory.h>#include <TStopwatch.h>#include <TGraph.h>#include <TBrowser.h>#include <TCanvas.h>#include <TProfile.h>#include <TStyle.h>#include <TVectorD.h>#include <iostream>#include <fstream>Go to the source code of this file.
Macros | |
| #define | OUTINFILE 0 |
| #define | uVERBOSE 1 |
| #define | fit_funk_name "fitFunction" |
Functions | |
| Int_t | FilesListFromDir (const TString filespath, TObjArray *const collection, Int_t max_num, TString content) |
| Int_t | SaveArrayStructInFile (TCollection *array, TFile *file, TString start_path="") |
| Int_t | SaveArrayOfObjectsArraysInFile (TObjArray *ObjectsArray=0, const TString filename="data", const TString path="./", const Int_t deleteArrays=0) |
| Int_t | FitHistogramm (TH1 *histogramm, Double_t &mean, Double_t &sigma, Double_t RangeXmin=0., Double_t RangeXmax=0., TString fit_formula="gaus") |
| Int_t | FitHistogrammInFirstMaxPeak (TH1 *histogramm, Double_t &Mean, Double_t &Sigma, Double_t peaksRangeMin, Double_t peaksRangeMax, Double_t peakRange, Double_t peakRMSRange=1.5) |
| Int_t | FitHistogrammInRMSRange (TH1 *histogramm, Double_t &mean, Double_t &sigma, Double_t RMSrange, Double_t RangeXmin=0, Double_t RangeXmax=0) |
| Int_t | FitHistogrammInMaxPeak (TH1 *histogramm, Double_t &mean, Double_t &sigma, Double_t PeakWidth, Double_t RangeXmin=0., Double_t RangeXmax=0.) |
| Int_t | ArrayStat (const Int_t nElements, const Double_t *Array, Double_t &maxElement, Double_t &minElement, Double_t &Amplitude, Double_t &Mean, Double_t &RMS) |
| void | ResetArray (TObjArray **array, const TString option) |
| Int_t | ConstructFilesListFromDirectory (const TString &Directory, TCollection *const collection) |
| Int_t | RUNnumberInString (const TString &str) |
| TObject * | CreateXprofile (const TH1 *sourcehist) |
| Int_t | CollectRAWfilesInChain (TChain *rawTree, const TString dirname, const Int_t maxNfiles=50) |
| Int_t | FitHistogrammSmartInMaxPeak (TH1 *histogramm, Double_t &mean, Double_t &sigma, Double_t nRMSfit=2., Double_t RangeXmin=0., Double_t RangeXmax=0.) |
| Int_t | ArrayStat (Int_t nElements, Double_t *Array, Double_t &maxElement, Double_t &minElement, Double_t &Amplitude, Double_t &Mean, Double_t &RMS) |
| TH1 * | CreateSmartPojection (TH2 *sourcehist, TString option="n", const Float_t minbinevX=1, const Float_t minbinevedge=0.001, const Int_t rebinX=1, const Int_t rebinY=1, Int_t ProjectionRebin=5, Float_t projWidth=1.5, TObjArray *monitor_slices_array=NULL) |
| TObjArray * | HDraw (const TObjArray *Histogramms_arr, TString name="", int Hr=4, int Vt=4, const int Pair=1, int min=0, int max=100, int Log=0, int Leg=0, const TString param="", int Norm=0) |
Variables | |
| std::ostream & | current_out = std::cout |
| #define fit_funk_name "fitFunction" |
Definition at line 49 of file utilites.h.
| #define OUTINFILE 0 |
Definition at line 40 of file utilites.h.
| #define uVERBOSE 1 |
Definition at line 48 of file utilites.h.
| Int_t ArrayStat | ( | const Int_t | nElements, |
| const Double_t * | Array, | ||
| Double_t & | maxElement, | ||
| Double_t & | minElement, | ||
| Double_t & | Amplitude, | ||
| Double_t & | Mean, | ||
| Double_t & | RMS | ||
| ) |
| Int_t ArrayStat | ( | Int_t | nElements, |
| Double_t * | Array, | ||
| Double_t & | maxElement, | ||
| Double_t & | minElement, | ||
| Double_t & | Amplitude, | ||
| Double_t & | Mean, | ||
| Double_t & | RMS | ||
| ) |
Definition at line 583 of file utilites.h.
References i.
| Int_t CollectRAWfilesInChain | ( | TChain * | rawTree, |
| const TString | dirname, | ||
| const Int_t | maxNfiles = 50 |
||
| ) |
Definition at line 128 of file utilites.h.
References current_out, and uVERBOSE.
| Int_t ConstructFilesListFromDirectory | ( | const TString & | Directory, |
| TCollection *const | collection | ||
| ) |
Definition at line 67 of file utilites.h.
References current_out, and uVERBOSE.
| TH1 * CreateSmartPojection | ( | TH2 * | sourcehist, |
| TString | option = "n", |
||
| const Float_t | minbinevX = 1, |
||
| const Float_t | minbinevedge = 0.001, |
||
| const Int_t | rebinX = 1, |
||
| const Int_t | rebinY = 1, |
||
| Int_t | ProjectionRebin = 5, |
||
| Float_t | projWidth = 1.5, |
||
| TObjArray * | monitor_slices_array = NULL |
||
| ) |
Definition at line 612 of file utilites.h.
References fit_funk_name, FitHistogrammSmartInMaxPeak(), and uVERBOSE.
| TObject * CreateXprofile | ( | const TH1 * | sourcehist | ) |
Definition at line 118 of file utilites.h.
References current_out, and uVERBOSE.
| Int_t FilesListFromDir | ( | const TString | filespath, |
| TObjArray *const | collection, | ||
| Int_t | max_num, | ||
| TString | content | ||
| ) |
Definition at line 163 of file utilites.h.
References current_out.
| Int_t FitHistogramm | ( | TH1 * | histogramm, |
| Double_t & | mean, | ||
| Double_t & | sigma, | ||
| Double_t | RangeXmin = 0., |
||
| Double_t | RangeXmax = 0., |
||
| TString | fit_formula = "gaus" |
||
| ) |
Definition at line 451 of file utilites.h.
References current_out, fit_funk_name, and uVERBOSE.
Referenced by FitHistogrammInFirstMaxPeak(), FitHistogrammInMaxPeak(), FitHistogrammInRMSRange(), and FitHistogrammSmartInMaxPeak().
| Int_t FitHistogrammInFirstMaxPeak | ( | TH1 * | histogramm, |
| Double_t & | Mean, | ||
| Double_t & | Sigma, | ||
| Double_t | peaksRangeMin, | ||
| Double_t | peaksRangeMax, | ||
| Double_t | peakRange, | ||
| Double_t | peakRMSRange = 1.5 |
||
| ) |
Definition at line 313 of file utilites.h.
References FitHistogramm(), and Sigma().
| Int_t FitHistogrammInMaxPeak | ( | TH1 * | histogramm, |
| Double_t & | mean, | ||
| Double_t & | sigma, | ||
| Double_t | PeakWidth, | ||
| Double_t | RangeXmin = 0., |
||
| Double_t | RangeXmax = 0. |
||
| ) |
Definition at line 361 of file utilites.h.
References current_out, FitHistogramm(), and uVERBOSE.
| Int_t FitHistogrammInRMSRange | ( | TH1 * | histogramm, |
| Double_t & | mean, | ||
| Double_t & | sigma, | ||
| Double_t | RMSrange, | ||
| Double_t | RangeXmin = 0, |
||
| Double_t | RangeXmax = 0 |
||
| ) |
Definition at line 333 of file utilites.h.
References current_out, FitHistogramm(), and uVERBOSE.
| Int_t FitHistogrammSmartInMaxPeak | ( | TH1 * | histogramm, |
| Double_t & | mean, | ||
| Double_t & | sigma, | ||
| Double_t | nRMSfit = 2., |
||
| Double_t | RangeXmin = 0., |
||
| Double_t | RangeXmax = 0. |
||
| ) |
Definition at line 395 of file utilites.h.
References current_out, FitHistogramm(), and uVERBOSE.
Referenced by CreateSmartPojection(), and simple_analysis().
| TObjArray * HDraw | ( | const TObjArray * | Histogramms_arr, |
| TString | name = "", |
||
| int | Hr = 4, |
||
| int | Vt = 4, |
||
| const int | Pair = 1, |
||
| int | min = 0, |
||
| int | max = 100, |
||
| int | Log = 0, |
||
| int | Leg = 0, |
||
| const TString | param = "", |
||
| int | Norm = 0 |
||
| ) |
Definition at line 773 of file utilites.h.
| void ResetArray | ( | TObjArray ** | array, |
| const TString | option | ||
| ) |
Definition at line 549 of file utilites.h.
References current_out, and uVERBOSE.
Referenced by SaveArrayOfObjectsArraysInFile().
| Int_t RUNnumberInString | ( | const TString & | str | ) |
Definition at line 101 of file utilites.h.
| Int_t SaveArrayOfObjectsArraysInFile | ( | TObjArray * | ObjectsArray = 0, |
| const TString | filename = "data", |
||
| const TString | path = "./", |
||
| const Int_t | deleteArrays = 0 |
||
| ) |
Definition at line 242 of file utilites.h.
References current_out, ResetArray(), and uVERBOSE.
| Int_t SaveArrayStructInFile | ( | TCollection * | array, |
| TFile * | file, | ||
| TString | start_path = "" |
||
| ) |
Definition at line 198 of file utilites.h.
References current_out, SaveArrayStructInFile(), and uVERBOSE.
Referenced by SaveArrayStructInFile().
| std::ostream& current_out = std::cout |
Definition at line 45 of file utilites.h.
Referenced by CollectRAWfilesInChain(), ConstructFilesListFromDirectory(), CreateXprofile(), FilesListFromDir(), FitHistogramm(), FitHistogrammInMaxPeak(), FitHistogrammInRMSRange(), FitHistogrammSmartInMaxPeak(), ResetArray(), SaveArrayOfObjectsArraysInFile(), and SaveArrayStructInFile().