22 cpy.TAttText::Copy(*
this);
23 fAngularOffset = cpy.fAngularOffset;
26 fRadius = cpy.fRadius;
27 for (Int_t i = 0; i < fNvals; ++i) {
28 *fPieSlices[i] = *cpy.fPieSlices[i];
36 Draw(b ? b->GetDrawOption() :
"");
44 for (
int i = 0; i < fNvals; i++) {
45 sum += fabs(GetEntryVal(i));
48 for (
int i = 0; i < fNvals; i++) {
49 SetEntryVal(i, 1.e-20);
54 for (
int i = 0; i < fNvals; i++) {
60void CbmQaPie::Streamer(TBuffer& R__b)
66 if (R__b.IsReading()) {
68 for (
int i = 0; i < fNvals; i++) {
69 if (gPad && gPad->GetListOfPrimitives()) {
70 gPad->GetListOfPrimitives()->Remove(fPieSlices[i]);
73 fPieSlices[i] =
nullptr;
79 R__b.ReadClassBuffer(CbmQaPie::Class(),
this);
82 fPieSlices =
new TPieSlice*[fNvals];
83 for (
int i = 0; i < fNvals; i++) {
92 for (
int i = 0; i < fNvals; i++) {
96 TPieSlice** tmp = fPieSlices;
99 R__b.WriteClassBuffer(CbmQaPie::Class(),
this);
Definition of the CbmQaPie class.
void Browse(TBrowser *b)
Draw TPie by a mouse click in the TBrowser.
std::vector< CbmQaPieSlice > fSliceStore
a vector for slice streaming. It replaces the original array of pointers.
void Draw(Option_t *option="l")
Prevents original TPie::Draw() from crashing when there are no entries.
CbmQaPie(Types... args)
Reimplementation of any existing TPie constructor.