CbmRoot
Loading...
Searching...
No Matches
LmvmDraw Class Reference

#include <LmvmDraw.h>

Inheritance diagram for LmvmDraw:
[legend]
Collaboration diagram for LmvmDraw:
[legend]

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 &)
 
LmvmDrawoperator= (const LmvmDraw &)
 
 ClassDef (LmvmDraw, 1)
 

Private Attributes

Int_t fNofEvents = 0
 
bool fUseMvd = false
 
LmvmCuts fCuts
 
LmvmHist fH
 
std::string fOutputDir = ""
 

Detailed Description

Definition at line 28 of file LmvmDraw.h.

Constructor & Destructor Documentation

◆ LmvmDraw() [1/2]

LmvmDraw::LmvmDraw ( )

Definition at line 38 of file LmvmDraw.cxx.

◆ ~LmvmDraw()

virtual LmvmDraw::~LmvmDraw ( )
inlinevirtual

Definition at line 33 of file LmvmDraw.h.

◆ LmvmDraw() [2/2]

LmvmDraw::LmvmDraw ( const LmvmDraw & )
private

Member Function Documentation

◆ ClassDef()

LmvmDraw::ClassDef ( LmvmDraw ,
1  )
private

◆ Draw1DCut()

void LmvmDraw::Draw1DCut ( const std::string & hist,
const std::string & sigOption,
double cut = -999999. )
private

◆ Draw2DCut()

void LmvmDraw::Draw2DCut ( const std::string & hist,
double cutCrossX = -999999.,
double cutCrossY = -999999. )
private

◆ Draw2DCutTriangle()

void LmvmDraw::Draw2DCutTriangle ( double xCr,
double yCr )
private

Definition at line 479 of file LmvmDraw.cxx.

Referenced by Draw2DCut().

◆ DrawAccRecVsMom()

void LmvmDraw::DrawAccRecVsMom ( )
private

◆ DrawAnaStepH1()

void LmvmDraw::DrawAnaStepH1 ( const std::string & hist,
bool logy = false )
private

◆ DrawAnaStepMany()

void LmvmDraw::DrawAnaStepMany ( const std::string & cName,
std::function< void(ELmvmAnaStep)> drawFunc )
private

◆ DrawBetaMomSpectra()

void LmvmDraw::DrawBetaMomSpectra ( )
private

◆ DrawBgSourcePairs()

void LmvmDraw::DrawBgSourcePairs ( ELmvmAnaStep step,
bool inPercent,
bool drawAnaStep = true )
private

Definition at line 425 of file LmvmDraw.cxx.

References LmvmHist::DrawAnaStepOnPad(), DrawH2(), fH, LmvmHist::H2Clone(), and kLinear.

Referenced by DrawBgSourcePairsAll().

◆ DrawBgSourcePairsAll()

void LmvmDraw::DrawBgSourcePairsAll ( )
private

◆ DrawBgSourceTracks()

void LmvmDraw::DrawBgSourceTracks ( )
private

◆ DrawCombinatorialPairs()

◆ DrawCutEffH1()

void LmvmDraw::DrawCutEffH1 ( const std::string & hist,
const std::string & option )
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().

◆ DrawCuts()

◆ DrawElPurity()

◆ DrawGammaVertex()

void LmvmDraw::DrawGammaVertex ( )
private

◆ 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.

Parameters
[in]fileNameName of the input file with histograms.
[in]outputDirPath to the output directory (if it does not exist, it will be created automatically).
[in]useMvddraw histograms related to the MVD detector?
[in]drawSigDo 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().

◆ DrawMinvAll()

void LmvmDraw::DrawMinvAll ( )
private

◆ DrawMinvBg()

void LmvmDraw::DrawMinvBg ( )
private

◆ DrawMinvBgPairSrc()

◆ DrawMinvMatching()

void LmvmDraw::DrawMinvMatching ( ELmvmAnaStep step)
private

◆ DrawMinvPt()

void LmvmDraw::DrawMinvPt ( ELmvmAnaStep step)
private

Definition at line 210 of file LmvmDraw.cxx.

References LmvmHist::DrawAnaStepOnPad(), DrawH2(), fH, LmvmHist::H2(), kLinear, and Signal.

Referenced by DrawHistFromFile().

◆ DrawMinvSBg()

void LmvmDraw::DrawMinvSBg ( ELmvmAnaStep step)
private

◆ DrawMisc()

void LmvmDraw::DrawMisc ( )
private

◆ DrawMismatchesAndGhosts()

void LmvmDraw::DrawMismatchesAndGhosts ( )
private

◆ DrawMvdAndStsHist()

void LmvmDraw::DrawMvdAndStsHist ( )
private

Definition at line 1002 of file LmvmDraw.cxx.

References CbmHistManager::CreateCanvas(), Draw2DCut(), DrawSrcH1(), fH, LmvmHist::fHM, and fUseMvd.

Referenced by DrawHistFromFile().

◆ DrawMvdCutQa()

void LmvmDraw::DrawMvdCutQa ( )
private

◆ DrawPmtXY()

void LmvmDraw::DrawPmtXY ( )
private

◆ DrawPtY()

void LmvmDraw::DrawPtY ( const std::string & hist,
ELmvmAnaStep step )
private

◆ DrawPtYEfficiency()

void LmvmDraw::DrawPtYEfficiency ( ELmvmAnaStep step)
private

◆ DrawRapidity()

void LmvmDraw::DrawRapidity ( ELmvmAnaStep step)
private

Definition at line 192 of file LmvmDraw.cxx.

References LmvmHist::DrawAnaStepOnPad(), DrawH1(), fH, LmvmHist::H2(), and kLinear.

Referenced by DrawHistFromFile().

◆ DrawSource2D()

void LmvmDraw::DrawSource2D ( const std::string & cName,
const std::string & hName,
const std::vector< std::string > & yLabels,
double scale,
const std::string & zTitle )
private

◆ DrawSrcAnaStepEpEmH1()

void LmvmDraw::DrawSrcAnaStepEpEmH1 ( const std::string & cName,
ELmvmAnaStep step )
private

◆ DrawSrcAnaStepH1()

void LmvmDraw::DrawSrcAnaStepH1 ( const std::string & hName,
ELmvmAnaStep step )
private

Definition at line 217 of file LmvmDraw.cxx.

References LmvmHist::DrawAnaStepOnPad(), DrawSrcH1(), and fH.

Referenced by DrawHistFromFile().

◆ DrawSrcH1()

void LmvmDraw::DrawSrcH1 ( const std::string & hist,
ELmvmAnaStep step = ELmvmAnaStep::Undefined,
bool doScale = true )
private

◆ DrawTofM2Cut()

void LmvmDraw::DrawTofM2Cut ( )
private

◆ operator=()

LmvmDraw & LmvmDraw::operator= ( const LmvmDraw & )
private

◆ RebinMinvHist()

void LmvmDraw::RebinMinvHist ( )
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().

◆ SaveCanvasToImage()

void LmvmDraw::SaveCanvasToImage ( )
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().

◆ SetAnalysisStepAxis()

void LmvmDraw::SetAnalysisStepAxis ( TH1 * h)
private

◆ SkipMvd()

bool LmvmDraw::SkipMvd ( ELmvmAnaStep step)
private

Definition at line 100 of file LmvmDraw.cxx.

References fUseMvd, Mvd1Cut, and Mvd2Cut.

Referenced by DrawAnaStepH1(), DrawAnaStepMany(), DrawBgSourcePairsAll(), and SetAnalysisStepAxis().

Member Data Documentation

◆ fCuts

LmvmCuts LmvmDraw::fCuts
private

Definition at line 50 of file LmvmDraw.h.

Referenced by DrawCuts().

◆ fH

◆ fNofEvents

Int_t LmvmDraw::fNofEvents = 0
private

Definition at line 46 of file LmvmDraw.h.

Referenced by Draw2DCut(), DrawAccRecVsMom(), and DrawHistFromFile().

◆ fOutputDir

std::string LmvmDraw::fOutputDir = ""
private

Definition at line 53 of file LmvmDraw.h.

Referenced by DrawHistFromFile(), and SaveCanvasToImage().

◆ fUseMvd

bool LmvmDraw::fUseMvd = false
private

The documentation for this class was generated from the following files: