CbmRoot
Loading...
Searching...
No Matches
CbmQaHist< HistTypeT > Class Template Reference

#include <CbmQaHist.h>

Inheritance diagram for CbmQaHist< HistTypeT >:
[legend]
Collaboration diagram for CbmQaHist< HistTypeT >:
[legend]

Public Member Functions

 CbmQaHist ()
 Default constructor only for the streamer.
 
 CbmQaHist (const CbmQaHist &h)
 Copy constructor.
 
template<typename... Types>
 CbmQaHist (Types... args)
 
 ~CbmQaHist ()
 Destructor.
 
template<typename... Types>
TFitResultPtr Fit (Types... args)
 
void SetOptStat (Int_t stat=1)
 Set stat drawing options and autoresize the stat window.
 
void SetOptFit (Int_t fit=1)
 Set fit drawing options and autoresize the stat window.
 
void SetOptStatFit (int stat, int fit)
 Set stat & fit drawing options and autoresize the stat window.
 

Private Member Functions

 ClassDefNV (CbmQaHist, 1)
 

Private Attributes

int fOptStat = 1
 
int fOptFit = 0
 

Detailed Description

template<class HistTypeT>
class CbmQaHist< HistTypeT >

A modification of TH* and TProfile* classes that keeps statistics & fit drawing options and resizes the stat window accordingly without the actual drawing. In the original classes, hist->Draw() & canv->Update() must be called for resetting Stat/Fit window.

Definition at line 37 of file CbmQaHist.h.

Constructor & Destructor Documentation

◆ CbmQaHist() [1/3]

template<class HistTypeT >
CbmQaHist< HistTypeT >::CbmQaHist ( )
inline

Default constructor only for the streamer.

Definition at line 40 of file CbmQaHist.h.

References CbmQaHist< HistTypeT >::fOptFit, and CbmQaHist< HistTypeT >::fOptStat.

◆ CbmQaHist() [2/3]

template<class HistTypeT >
CbmQaHist< HistTypeT >::CbmQaHist ( const CbmQaHist< HistTypeT > & h)
inline

Copy constructor.

Definition at line 52 of file CbmQaHist.h.

References CbmQaHist< HistTypeT >::SetOptStatFit().

◆ CbmQaHist() [3/3]

template<class HistTypeT >
template<typename... Types>
CbmQaHist< HistTypeT >::CbmQaHist ( Types... args)
inline

Reimplementation of all other HistTypeT constructors that creates a stat window with current gStyle options.

Definition at line 57 of file CbmQaHist.h.

References CbmQaHist< HistTypeT >::SetOptStatFit().

◆ ~CbmQaHist()

template<class HistTypeT >
CbmQaHist< HistTypeT >::~CbmQaHist ( )
inline

Destructor.

Definition at line 66 of file CbmQaHist.h.

Member Function Documentation

◆ ClassDefNV()

template<class HistTypeT >
CbmQaHist< HistTypeT >::ClassDefNV ( CbmQaHist< HistTypeT > ,
1  )
private

◆ Fit()

template<class HistTypeT >
template<typename... Types>
TFitResultPtr CbmQaHist< HistTypeT >::Fit ( Types... args)
inline

Reimplementation of Fit() that suppresses an immediate drawing in the active window

Definition at line 72 of file CbmQaHist.h.

References CbmQaCanvas::GetDummyCanvas().

◆ SetOptFit()

template<class HistTypeT >
void CbmQaHist< HistTypeT >::SetOptFit ( Int_t fit = 1)
inline

Set fit drawing options and autoresize the stat window.

Definition at line 108 of file CbmQaHist.h.

References CbmQaHist< HistTypeT >::fOptStat, and CbmQaHist< HistTypeT >::SetOptStatFit().

◆ SetOptStat()

template<class HistTypeT >
void CbmQaHist< HistTypeT >::SetOptStat ( Int_t stat = 1)
inline

Set stat drawing options and autoresize the stat window.

Definition at line 105 of file CbmQaHist.h.

References CbmQaHist< HistTypeT >::fOptFit, and CbmQaHist< HistTypeT >::SetOptStatFit().

◆ SetOptStatFit()

template<class HistTypeT >
void CbmQaHist< HistTypeT >::SetOptStatFit ( int stat,
int fit )
inline

Member Data Documentation

◆ fOptFit

template<class HistTypeT >
int CbmQaHist< HistTypeT >::fOptFit = 0
private

◆ fOptStat

template<class HistTypeT >
int CbmQaHist< HistTypeT >::fOptStat = 1
private

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