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

#include <CbmQaEff.h>

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

Public Member Functions

 CbmQaEff ()
 Default constructor.
 
 CbmQaEff (const CbmQaEff &other)
 Copy constructor.
 
template<typename... Args>
 CbmQaEff (Args... args)
 
 ~CbmQaEff ()=default
 Destructor.
 
template<typename... Args>
TFitResultPtr Fit (Args... args)
 Fit method reimplementation.
 
void Paint (Option_t *opt)
 
void Draw (Option_t *opt="")
 
CbmQaEffDrawCopy (Option_t *opt, const char *postfix="_copy") const
 
CbmQaEffIntegral (double lo, double hi)
 
std::tuple< double, double, double > GetTotalEfficiency () const
 
void SetStats ()
 Sets statistics box for efficiency.
 
 ClassDef (CbmQaEff, 1)
 

Static Public Attributes

static constexpr int kMarkerStyle = 20
 

Private Attributes

TPaveText * fpStats = nullptr
 Statistics box.
 

Detailed Description

Implementation of ROOT TEfficiency class, which adds handy functionality and improves fitting and drawing

Definition at line 29 of file CbmQaEff.h.

Constructor & Destructor Documentation

◆ CbmQaEff() [1/3]

CbmQaEff::CbmQaEff ( )

Default constructor.

Definition at line 17 of file CbmQaEff.cxx.

Referenced by Integral().

◆ CbmQaEff() [2/3]

CbmQaEff::CbmQaEff ( const CbmQaEff & other)

Copy constructor.

Definition at line 21 of file CbmQaEff.cxx.

◆ CbmQaEff() [3/3]

template<typename... Args>
CbmQaEff::CbmQaEff ( Args... args)

Other constructors

Template Parameters
ArgsVariadic template parameter, which is passed to the constructor of base class

Definition at line 109 of file CbmQaEff.h.

◆ ~CbmQaEff()

CbmQaEff::~CbmQaEff ( )
default

Destructor.

Member Function Documentation

◆ ClassDef()

CbmQaEff::ClassDef ( CbmQaEff ,
1  )

◆ Draw()

void CbmQaEff::Draw ( Option_t * opt = "")
inline

Definition at line 63 of file CbmQaEff.h.

References kMarkerStyle.

◆ DrawCopy()

CbmQaEff * CbmQaEff::DrawCopy ( Option_t * opt,
const char * postfix = "_copy" ) const

Draws copy of the object

Parameters
optOption string
postfixPostfix of the name

Definition at line 112 of file CbmQaEff.cxx.

◆ Fit()

template<typename... Args>
TFitResultPtr CbmQaEff::Fit ( Args... args)
inline

Fit method reimplementation.

Definition at line 49 of file CbmQaEff.h.

◆ GetTotalEfficiency()

std::tuple< double, double, double > CbmQaEff::GetTotalEfficiency ( ) const

Gets total integrated efficiency

Returns
A tuple:
  • 0: value
  • 1: lower error
  • 2: upper error

Definition at line 25 of file CbmQaEff.cxx.

Referenced by SetStats().

◆ Integral()

CbmQaEff * CbmQaEff::Integral ( double lo,
double hi )

Gets integrated efficiency in a selected range

Note
Works only for 1D efficiency
Parameters
loLower bound of integration range
hiHigher bound of integration range
Returns
Pointer to efficiency object, which contains only one point

Definition at line 72 of file CbmQaEff.cxx.

References CbmQaEff().

◆ Paint()

void CbmQaEff::Paint ( Option_t * opt)
inline

Definition at line 54 of file CbmQaEff.h.

References fpStats, and SetStats().

◆ SetStats()

void CbmQaEff::SetStats ( )

Sets statistics box for efficiency.

Definition at line 133 of file CbmQaEff.cxx.

References fpStats, and GetTotalEfficiency().

Referenced by Paint().

Member Data Documentation

◆ fpStats

TPaveText* CbmQaEff::fpStats = nullptr
private

Statistics box.

Definition at line 96 of file CbmQaEff.h.

Referenced by Paint(), and SetStats().

◆ kMarkerStyle

int CbmQaEff::kMarkerStyle = 20
staticconstexpr

Definition at line 31 of file CbmQaEff.h.

Referenced by Draw().


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