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

#include <CbmQaPie.h>

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

Public Member Functions

template<typename... Types>
 CbmQaPie (Types... args)
 Reimplementation of any existing TPie constructor.
 
 CbmQaPie (const CbmQaPie &cpy)
 Prevent original copy constructor from a crash.
 
 ~CbmQaPie ()
 Destructor.
 
void Browse (TBrowser *b)
 Draw TPie by a mouse click in the TBrowser.
 
void Draw (Option_t *option="l")
 Prevents original TPie::Draw() from crashing when there are no entries.
 

Private Member Functions

 ClassDef (CbmQaPie, 1)
 

Private Attributes

std::vector< CbmQaPieSlicefSliceStore
 a vector for slice streaming. It replaces the original array of pointers.
 

Detailed Description

A modification of TPie which fixes the following issues:

  1. When a TPie is read from a file as a part of TCanvas, it crashes at the destructor.
  2. When a TPie is created via copy constructor it crashes at the destructor.
  3. An empty TPie crashes at Draw()
  4. When one clicks on a TPie in the TBrowser, the TBrowser crashes.
  5. TBrowser dosen't draw a TPie by a mouse click.

Definition at line 40 of file CbmQaPie.h.

Constructor & Destructor Documentation

◆ CbmQaPie() [1/2]

template<typename... Types>
CbmQaPie::CbmQaPie ( Types... args)
inline

Reimplementation of any existing TPie constructor.

Definition at line 44 of file CbmQaPie.h.

◆ CbmQaPie() [2/2]

CbmQaPie::CbmQaPie ( const CbmQaPie & cpy)

Prevent original copy constructor from a crash.

Prevent original copy constructor from a crash

Definition at line 19 of file CbmQaPie.cxx.

◆ ~CbmQaPie()

CbmQaPie::~CbmQaPie ( )
inline

Destructor.

Definition at line 52 of file CbmQaPie.h.

Member Function Documentation

◆ Browse()

void CbmQaPie::Browse ( TBrowser * b)

Draw TPie by a mouse click in the TBrowser.

Draw CbmQaPie by a mouse click in the TBrowser

Definition at line 33 of file CbmQaPie.cxx.

References Draw().

◆ ClassDef()

CbmQaPie::ClassDef ( CbmQaPie ,
1  )
private

◆ Draw()

void CbmQaPie::Draw ( Option_t * option = "l")

Prevents original TPie::Draw() from crashing when there are no entries.

Definition at line 40 of file CbmQaPie.cxx.

Referenced by Browse().

Member Data Documentation

◆ fSliceStore

std::vector<CbmQaPieSlice> CbmQaPie::fSliceStore
private

a vector for slice streaming. It replaces the original array of pointers.

Definition at line 62 of file CbmQaPie.h.


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