CbmRoot
Loading...
Searching...
No Matches
LmvmDrawAll.h
Go to the documentation of this file.
1/* Copyright (C) 2011-2021 UGiessen, JINR-LIT
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Elena Lebedeva, Andrey Lebedev, Semen Lebedev [committer], Florian Uhlig */
4
5#ifndef LMVM_DRAW_ALL
6#define LMVM_DRAW_ALL
7
8#include "TObject.h"
9
10#include <map>
11#include <string>
12#include <vector>
13
14#include "LmvmHist.h"
15
16class TH1;
17class TH2D;
18class TH1D;
19class TFile;
20class TCanvas;
21class CbmHistManager;
22
23class LmvmDrawAll : public TObject {
24
25public:
27 virtual ~LmvmDrawAll() { ; }
28
29
30 void DrawHistFromFile(const std::string& fileInmed, const std::string& fileQgp, const std::string& fileOmega,
31 const std::string& filePhi, const std::string& fileOmegaD, const std::string& outputDir = "",
32 bool useMvd = false);
33
34private:
35 bool fUseMvd; // do you want to draw histograms related to the MVD detector?
36
37 std::vector<LmvmHist*> fH;
39
40 int fRebMinv = 5; // Rebin for minv histograms (binSize in Task.cxx is 10 MeV)
41
42 std::string fOutputDir; // output directory for figures
43
44 LmvmHist* H(ELmvmSignal signal);
45
47
48
49 template<class T>
50 T* GetCocktailMinv(const std::string& name, ELmvmAnaStep step);
51
52 TH1D* GetCocktailMinvH1(const std::string& name, ELmvmAnaStep step);
53
57 void DrawSBgVsMinv();
58 void DrawMinvAll();
59 void DrawMinv(ELmvmAnaStep step);
60 void DrawMinvPtAll();
63
68
73
74 template<class T>
75 void CreateMeanHist(const std::string& name, int nofEvents, int nofRebins = -1); // if nRebin = -1, no rebin
76 void CreateMeanHistAll();
77
81 void SaveHist();
82
88 void CalcCutEffRange(double minMinv, double maxMinv);
89
93 void CalcCombBGHistos();
94
100 TH1D* SBgRange(double minMinv, double maxMinv);
101
105 void SBgRangeAll();
106
110 void InvestigateMisid();
111
112 void DrawBetaMomSpectra();
113
114 void DrawMomPluto();
115
116 void DrawTofM2();
117
118 void DrawGTrackVertex();
119
121 void DrawSignificance(TH2D* hEl, TH2D* hBg, const std::string& name, double minZ, double maxZ,
122 const std::string& option);
123
124 void DrawCutEffSignal();
125
126 void DrawPionSuppression();
127
128 // investigate misidentifications
129 void DrawMomentum();
130 void DrawPtYAndTofM2Elid();
131 void DrawTofPilePids();
132 void DrawTofHitXY();
133 void DrawPurity();
134 void DrawPurityHistText(TH2D* h);
135 void DrawChi2();
136
137 void DrawMinvScaleValues();
138
143 void DrawSBgResults();
144
146
150 void SaveCanvasToImage();
151
152 double fZ = -44.; // z-position of target
153
156
158};
159
160#endif
ELmvmSignal
Definition LmvmDef.h:62
ELmvmAnaStep
Definition LmvmDef.h:34
Histogram manager.
Data class with information on a STS local track.
LmvmHist * H(ELmvmSignal signal)
void DrawMinv(ELmvmAnaStep step)
void DrawMinvOfficialStyle()
Draw invariant mass spectra in official style.
void SBgRangeAll()
Draw S/BG vs plots for different mass ranges.
void DrawMinvBgSourcesAll()
void DrawHistFromFile(const std::string &fileInmed, const std::string &fileQgp, const std::string &fileOmega, const std::string &filePhi, const std::string &fileOmegaD, const std::string &outputDir="", bool useMvd=false)
TH1D * SBgRange(double minMinv, double maxMinv)
Create S/BG vs cuts for specified invariant mass range.
void DrawBetaMomSpectra()
void DrawSBgResults()
Draw properties of misidentified particles in comparison with not-misidentified.
void DrawMinvCombBgAndSignal()
Draw invariant mass spectra for all signal types for specified analysis step with BG reduced by combi...
void DrawSBgVsMinv()
Draw S/Bg vs minv.
void CalcCombBGHistos()
Calculate combinatorial BG contribution.
int GetNofTotalEvents()
void CreateMeanHist(const std::string &name, int nofEvents, int nofRebins=-1)
LmvmDrawAll(const LmvmDrawAll &)
void DrawMomentum()
void DrawPionSuppression()
void DrawSignificancesAll()
void DrawMomRecoPrecision()
T * GetCocktailMinv(const std::string &name, ELmvmAnaStep step)
void DrawPtYAndTofM2Elid()
std::vector< LmvmHist * > fH
Definition LmvmDrawAll.h:37
void DrawSignificance(TH2D *hEl, TH2D *hBg, const std::string &name, double minZ, double maxZ, const std::string &option)
std::string fOutputDir
Definition LmvmDrawAll.h:42
virtual ~LmvmDrawAll()
Definition LmvmDrawAll.h:27
void DrawTofHitXY()
void DrawMomPluto()
void DrawPurityHistText(TH2D *h)
void DrawMinvPtAll()
LmvmDrawAll operator=(const LmvmDrawAll &)
void SaveCanvasToImage()
Save all created canvases to images.
TH1D * GetCocktailMinvH1(const std::string &name, ELmvmAnaStep step)
void DrawCutEffSignal()
LmvmHist fHMean
Definition LmvmDrawAll.h:38
void InvestigateMisid()
Draw properties of misidentified particles.
ClassDef(LmvmDrawAll, 1)
void DrawPurity()
void CreateMeanHistAll()
void SaveHist()
Save histograms for the study report.
void DrawTofPilePids()
void CalcCutEffRange(double minMinv, double maxMinv)
Calculate cut efficiency in specified invariant mass region.
void DrawGTrackVertex()
LmvmSBgResultData CalculateSBgResult(ELmvmSignal signal, ELmvmAnaStep step)
void DrawMinvScaleValues()