CbmRoot
|
#include <LmvmDraw.h>
Public Member Functions | |
LmvmDraw () | |
virtual | ~LmvmDraw () |
void | DrawHistFromFile (const std::string &fileName, const std::string &outputDir="", bool useMvd=true) |
Implement functionality of drawing histograms in the macro from the specified file, this function should be called from macro. | |
Private Member Functions | |
void | RebinMinvHist () |
Rebin minv histograms for better drawing. Should be called after calculation of S/BG ratios. | |
void | SaveCanvasToImage () |
Save all created canvases to images. | |
void | DrawCutEffH1 (const std::string &hist, const std::string &option) |
void | DrawAnaStepMany (const std::string &cName, std::function< void(ELmvmAnaStep)> drawFunc) |
void | DrawPtY (const std::string &hist, ELmvmAnaStep step) |
void | DrawRapidity (ELmvmAnaStep step) |
void | DrawPtYEfficiency (ELmvmAnaStep step) |
void | DrawMinvSBg (ELmvmAnaStep step) |
void | DrawMinvBgPairSrc (ELmvmAnaStep step) |
void | DrawMinvMatching (ELmvmAnaStep step) |
void | DrawSrcAnaStepEpEmH1 (const std::string &cName, ELmvmAnaStep step) |
void | DrawMisc () |
void | DrawSrcH1 (const std::string &hist, ELmvmAnaStep step=ELmvmAnaStep::Undefined, bool doScale=true) |
void | DrawAnaStepH1 (const std::string &hist, bool logy=false) |
void | Draw1DCut (const std::string &hist, const std::string &sigOption, double cut=-999999.) |
void | Draw2DCut (const std::string &hist, double cutCrossX=-999999., double cutCrossY=-999999.) |
void | DrawTofM2Cut () |
void | DrawElPurity () |
void | DrawCuts () |
void | DrawCombinatorialPairs () |
void | DrawBgSourcePairs (ELmvmAnaStep step, bool inPercent, bool drawAnaStep=true) |
void | DrawBgSourcePairsAll () |
void | DrawAccRecVsMom () |
void | DrawBetaMomSpectra () |
void | Draw2DCutTriangle (double xCr, double yCr) |
void | DrawMismatchesAndGhosts () |
void | DrawGammaVertex () |
void | DrawMinvAll () |
void | DrawMinvBg () |
void | DrawSource2D (const std::string &cName, const std::string &hName, const std::vector< std::string > &yLabels, double scale, const std::string &zTitle) |
void | DrawBgSourceTracks () |
void | SetAnalysisStepAxis (TH1 *h) |
void | DrawMinvPt (ELmvmAnaStep step) |
void | DrawSrcAnaStepH1 (const std::string &hName, ELmvmAnaStep step) |
void | DrawMvdCutQa () |
void | DrawMvdAndStsHist () |
void | DrawPmtXY () |
bool | SkipMvd (ELmvmAnaStep step) |
LmvmDraw (const LmvmDraw &) | |
LmvmDraw & | operator= (const LmvmDraw &) |
ClassDef (LmvmDraw, 1) | |
Private Attributes | |
Int_t | fNofEvents = 0 |
bool | fUseMvd = false |
LmvmCuts | fCuts |
LmvmHist | fH |
std::string | fOutputDir = "" |
Definition at line 28 of file LmvmDraw.h.
LmvmDraw::LmvmDraw | ( | ) |
Definition at line 38 of file LmvmDraw.cxx.
|
inlinevirtual |
Definition at line 33 of file LmvmDraw.h.
|
private |
|
private |
|
private |
Definition at line 374 of file LmvmDraw.cxx.
References Bg, CbmHistManager::CreateCanvas(), LmvmHist::CreateSignificanceH1(), DrawCutEffH1(), DrawH1(), DrawSrcH1(), fH, LmvmHist::fHM, LmvmHist::H1(), kLinear, and Signal.
Referenced by DrawCuts().
|
private |
Definition at line 612 of file LmvmDraw.cxx.
References Bg, CbmHistManager::CreateCanvas(), Draw2DCutTriangle(), DrawH1(), DrawH2(), DrawTextOnPad(), fH, LmvmHist::fHM, fNofEvents, LmvmHist::fSrcLatex, Gamma, LmvmHist::H2(), kLinear, kLog, Cbm::NumberToString(), Pi0, and Signal.
Referenced by DrawCuts(), and DrawMvdAndStsHist().
|
private |
Definition at line 479 of file LmvmDraw.cxx.
Referenced by Draw2DCut().
|
private |
Definition at line 797 of file LmvmDraw.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), DrawTextOnPad(), fH, LmvmHist::fHM, fNofEvents, LmvmHist::fSrcLatex, Gamma, LmvmHist::H1(), kLinear, kLog, Cbm::NumberToString(), Pi0, and Signal.
Referenced by DrawHistFromFile().
|
private |
Definition at line 686 of file LmvmDraw.cxx.
References DrawH1(), LmvmHist::fAnaStepColors, LmvmHist::fAnaStepLatex, LmvmHist::fAnaSteps, fH, LmvmHist::H1(), kLinear, and SkipMvd().
Referenced by DrawCombinatorialPairs(), DrawMinvAll(), and DrawMisc().
|
private |
Definition at line 162 of file LmvmDraw.cxx.
References CbmHistManager::CreateCanvas(), LmvmHist::fAnaStepNames, LmvmHist::fAnaSteps, fH, LmvmHist::fHM, and SkipMvd().
Referenced by DrawHistFromFile().
|
private |
Definition at line 125 of file LmvmDraw.cxx.
References CbmHistManager::CreateCanvas(), DrawH2(), fH, LmvmHist::fHM, LmvmHist::H2Clone(), kLinear, and kLog.
Referenced by DrawHistFromFile().
|
private |
Definition at line 425 of file LmvmDraw.cxx.
References LmvmHist::DrawAnaStepOnPad(), DrawH2(), fH, LmvmHist::H2Clone(), and kLinear.
Referenced by DrawBgSourcePairsAll().
|
private |
Definition at line 449 of file LmvmDraw.cxx.
References Acc, CbmHistManager::CreateCanvas(), DrawBgSourcePairs(), DrawSource2D(), ElId, LmvmHist::fAnaStepNames, LmvmHist::fAnaSteps, LmvmHist::fBgPairSrcLatex, fH, LmvmHist::fHM, Mc, and SkipMvd().
Referenced by DrawHistFromFile().
|
private |
Definition at line 894 of file LmvmDraw.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), DrawSource2D(), fH, LmvmHist::fHM, LmvmHist::fNofAnaSteps, LmvmHist::H1(), LmvmHist::H1Clone(), kLinear, kLog, and SetAnalysisStepAxis().
Referenced by DrawHistFromFile().
|
private |
Definition at line 250 of file LmvmDraw.cxx.
References CbmHistManager::CreateCanvas(), DrawAnaStepH1(), LmvmHist::DrawAnaStepOnPad(), DrawH1(), DrawTextOnPad(), ElId, LmvmHist::fAnaSteps, fH, LmvmHist::fHM, LmvmHist::H1(), LmvmHist::H1Clone(), kLinear, and kLog.
Referenced by DrawHistFromFile().
|
private |
Definition at line 137 of file LmvmDraw.cxx.
References DrawH1(), fH, LmvmHist::fSrcLatex, LmvmHist::fSrcs, LmvmHist::H1(), LmvmHist::H1Clone(), and kLinear.
Referenced by Draw1DCut().
|
private |
Definition at line 398 of file LmvmDraw.cxx.
References Draw1DCut(), Draw2DCut(), LmvmCuts::fChi2PrimCut, fCuts, LmvmCuts::fMvd1CutD, LmvmCuts::fMvd1CutP, LmvmCuts::fMvd2CutD, LmvmCuts::fMvd2CutP, LmvmCuts::fRtCutAngle, LmvmCuts::fRtCutPP, LmvmCuts::fStCutAngle, LmvmCuts::fStCutPP, LmvmCuts::fTtCutAngle, LmvmCuts::fTtCutPP, and fUseMvd.
Referenced by DrawHistFromFile().
|
private |
Definition at line 535 of file LmvmDraw.cxx.
References Acc, CbmHistManager::CreateCanvas(), DrawH1(), DrawH2(), DrawSource2D(), DrawTextOnPad(), ElId, LmvmHist::fAnaStepNames, LmvmHist::fAnaSteps, fH, LmvmHist::fHM, LmvmHist::H1(), LmvmHist::H1Clone(), LmvmHist::H2(), LmvmHist::H2Clone(), kLinear, kLog, Mc, Cbm::NumberToString(), and y.
Referenced by DrawHistFromFile().
|
private |
Definition at line 641 of file LmvmDraw.cxx.
References counter, CbmHistManager::CreateCanvas(), LmvmHist::DrawAnaStepOnPad(), DrawH1(), DrawH2(), fH, LmvmHist::fHM, LmvmHist::GetName(), LmvmHist::H2(), kLinear, Mc, and PtCut.
Referenced by DrawHistFromFile().
void LmvmDraw::DrawHistFromFile | ( | const std::string & | fileName, |
const std::string & | outputDir = "", | ||
bool | useMvd = true ) |
Implement functionality of drawing histograms in the macro from the specified file, this function should be called from macro.
[in] | fileName | Name of the input file with histograms. |
[in] | outputDir | Path to the output directory (if it does not exist, it will be created automatically). |
[in] | useMvd | draw histograms related to the MVD detector? |
[in] | drawSig | Do you want to draw significance histograms? |
Save old global file and folder pointer to avoid messing with FairRoot
Restore old global file and folder pointer to avoid messing with FairRoot
Definition at line 40 of file LmvmDraw.cxx.
References DrawAccRecVsMom(), DrawAnaStepMany(), DrawBetaMomSpectra(), DrawBgSourcePairsAll(), DrawBgSourceTracks(), DrawCombinatorialPairs(), DrawCuts(), DrawElPurity(), DrawGammaVertex(), DrawMinvAll(), DrawMinvBg(), DrawMinvPt(), DrawMinvSBg(), DrawMisc(), DrawMismatchesAndGhosts(), DrawMvdAndStsHist(), DrawMvdCutQa(), DrawPmtXY(), DrawPtY(), DrawRapidity(), DrawSrcAnaStepEpEmH1(), DrawSrcAnaStepH1(), LmvmHist::fCandNames, fH, LmvmHist::fHM, fNofEvents, fOutputDir, fUseMvd, CbmHistManager::H1(), CbmHistManager::ReadFromFile(), RebinMinvHist(), SaveCanvasToImage(), CbmHistManager::ScaleByPattern(), and SetDefaultDrawStyle().
|
private |
Definition at line 716 of file LmvmDraw.cxx.
References Bg, CbmHistManager::CreateCanvas(), DrawAnaStepH1(), Eta, fH, LmvmHist::fHM, Gamma, LmvmHist::GetName(), Pi0, and Signal.
Referenced by DrawHistFromFile().
|
private |
Definition at line 489 of file LmvmDraw.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), fH, LmvmHist::fHM, LmvmHist::H1Clone(), kLinear, and kLog.
Referenced by DrawHistFromFile().
|
private |
Definition at line 763 of file LmvmDraw.cxx.
References Bg, LmvmHist::DrawAnaStepOnPad(), DrawH1(), LmvmHist::fAnaStepNames, LmvmHist::fBgPairSrcLatex, LmvmHist::fBgPairSrcNames, fH, LmvmHist::fNofBgPairSrc, LmvmHist::H1(), kLinear, and Cbm::NumberToString().
|
private |
Definition at line 781 of file LmvmDraw.cxx.
References Bg, LmvmHist::DrawAnaStepOnPad(), DrawH1(), fH, LmvmHist::H1(), kLinear, and Cbm::NumberToString().
|
private |
Definition at line 210 of file LmvmDraw.cxx.
References LmvmHist::DrawAnaStepOnPad(), DrawH2(), fH, LmvmHist::H2(), kLinear, and Signal.
Referenced by DrawHistFromFile().
|
private |
Definition at line 735 of file LmvmDraw.cxx.
References Bg, LmvmHist::DrawAnaStepOnPad(), DrawH1(), fH, LmvmHist::H1Clone(), kLinear, kLog, CbmDrawingOptions::MarkerStyle(), and Signal.
Referenced by DrawHistFromFile().
|
private |
Definition at line 237 of file LmvmDraw.cxx.
References CbmHistManager::CreateCanvas(), DrawAnaStepH1(), DrawH1(), DrawH2(), fH, LmvmHist::fHM, LmvmHist::H1(), LmvmHist::H2(), kLinear, and kLog.
Referenced by DrawHistFromFile().
|
private |
Definition at line 935 of file LmvmDraw.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), fH, LmvmHist::fHM, LmvmHist::H1(), LmvmHist::H1Clone(), kLinear, kLog, and SetAnalysisStepAxis().
Referenced by DrawHistFromFile().
|
private |
Definition at line 1002 of file LmvmDraw.cxx.
References CbmHistManager::CreateCanvas(), Draw2DCut(), DrawSrcH1(), fH, LmvmHist::fHM, and fUseMvd.
Referenced by DrawHistFromFile().
|
private |
Definition at line 984 of file LmvmDraw.cxx.
References CbmHistManager::CreateCanvas(), DrawSrcH1(), DrawTextOnPad(), fH, LmvmHist::fHM, LmvmHist::fSrcNames, fUseMvd, and LmvmHist::H1().
Referenced by DrawHistFromFile().
|
private |
Definition at line 348 of file LmvmDraw.cxx.
References CbmHistManager::CreateCanvas(), DrawH2(), DrawTextOnPad(), fH, LmvmHist::fHM, LmvmHist::fSrcLatex, Gamma, LmvmHist::H2(), Pi0, and Signal.
Referenced by DrawHistFromFile().
|
private |
Definition at line 182 of file LmvmDraw.cxx.
References LmvmHist::DrawAnaStepOnPad(), LmvmHist::DrawEfficiency(), DrawH2(), fH, LmvmHist::H2(), kLinear, and Mc.
Referenced by DrawHistFromFile().
|
private |
Definition at line 198 of file LmvmDraw.cxx.
References Cbm::DivideH2(), LmvmHist::DrawAnaStepOnPad(), LmvmHist::DrawEfficiency(), DrawH2(), fH, LmvmHist::H2(), and Mc.
|
private |
Definition at line 192 of file LmvmDraw.cxx.
References LmvmHist::DrawAnaStepOnPad(), DrawH1(), fH, LmvmHist::H2(), and kLinear.
Referenced by DrawHistFromFile().
|
private |
Definition at line 852 of file LmvmDraw.cxx.
References CbmHistManager::CreateCanvas(), DrawH2(), fH, LmvmHist::fHM, LmvmHist::H2Clone(), kLinear, kLog, SetAnalysisStepAxis(), x, and y.
Referenced by DrawBgSourcePairsAll(), DrawBgSourceTracks(), and DrawElPurity().
|
private |
Definition at line 223 of file LmvmDraw.cxx.
References LmvmHist::DrawAnaStepOnPad(), DrawH1(), fH, LmvmHist::fSrcLatex, Gamma, LmvmHist::H1(), kLinear, kLog, Pi0, and Signal.
Referenced by DrawHistFromFile().
|
private |
Definition at line 217 of file LmvmDraw.cxx.
References LmvmHist::DrawAnaStepOnPad(), DrawSrcH1(), and fH.
Referenced by DrawHistFromFile().
|
private |
Definition at line 361 of file LmvmDraw.cxx.
References DrawH1(), fH, LmvmHist::fSrcColors, LmvmHist::fSrcLatex, LmvmHist::fSrcs, LmvmHist::H1(), kLinear, kLog, and Undefined.
Referenced by Draw1DCut(), DrawMvdAndStsHist(), DrawMvdCutQa(), and DrawSrcAnaStepH1().
|
private |
|
private |
Rebin minv histograms for better drawing. Should be called after calculation of S/BG ratios.
Definition at line 105 of file LmvmDraw.cxx.
References LmvmHist::fAnaStepNames, LmvmHist::fBgPairSrcNames, fH, LmvmHist::fSrcNames, and LmvmHist::Rebin().
Referenced by DrawHistFromFile().
|
private |
Save all created canvases to images.
Definition at line 1021 of file LmvmDraw.cxx.
References fH, LmvmHist::fHM, fOutputDir, and CbmHistManager::SaveCanvasToImage().
Referenced by DrawHistFromFile().
|
private |
Definition at line 956 of file LmvmDraw.cxx.
References LmvmHist::fAnaStepLatex, LmvmHist::fAnaSteps, fH, LmvmHist::fNofAnaSteps, fUseMvd, Mvd1Cut, Reco, SkipMvd(), x, and y.
Referenced by DrawBgSourceTracks(), DrawMismatchesAndGhosts(), and DrawSource2D().
|
private |
Definition at line 100 of file LmvmDraw.cxx.
References fUseMvd, Mvd1Cut, and Mvd2Cut.
Referenced by DrawAnaStepH1(), DrawAnaStepMany(), DrawBgSourcePairsAll(), and SetAnalysisStepAxis().
|
private |
Definition at line 50 of file LmvmDraw.h.
Referenced by DrawCuts().
|
private |
Definition at line 52 of file LmvmDraw.h.
Referenced by Draw1DCut(), Draw2DCut(), DrawAccRecVsMom(), DrawAnaStepH1(), DrawAnaStepMany(), DrawBetaMomSpectra(), DrawBgSourcePairs(), DrawBgSourcePairsAll(), DrawBgSourceTracks(), DrawCombinatorialPairs(), DrawCutEffH1(), DrawElPurity(), DrawGammaVertex(), DrawHistFromFile(), DrawMinvAll(), DrawMinvBg(), DrawMinvBgPairSrc(), DrawMinvMatching(), DrawMinvPt(), DrawMinvSBg(), DrawMisc(), DrawMismatchesAndGhosts(), DrawMvdAndStsHist(), DrawMvdCutQa(), DrawPmtXY(), DrawPtY(), DrawPtYEfficiency(), DrawRapidity(), DrawSource2D(), DrawSrcAnaStepEpEmH1(), DrawSrcAnaStepH1(), DrawSrcH1(), RebinMinvHist(), SaveCanvasToImage(), and SetAnalysisStepAxis().
|
private |
Definition at line 46 of file LmvmDraw.h.
Referenced by Draw2DCut(), DrawAccRecVsMom(), and DrawHistFromFile().
|
private |
Definition at line 53 of file LmvmDraw.h.
Referenced by DrawHistFromFile(), and SaveCanvasToImage().
|
private |
Definition at line 48 of file LmvmDraw.h.
Referenced by DrawCuts(), DrawHistFromFile(), DrawMvdAndStsHist(), DrawMvdCutQa(), SetAnalysisStepAxis(), and SkipMvd().