13#include "TVirtualPad.h"
20void CbmQaCanvas::Streamer(TBuffer& R__b)
26 if (R__b.IsReading()) {
27 R__b.ReadClassBuffer(CbmQaCanvas::Class(),
this);
30 R__b.WriteClassBuffer(CbmQaCanvas::Class(),
this);
38 if (nPads < 1) nPads = 1;
39 int rows = (int)
sqrt(nPads);
40 int cols = nPads / rows;
41 if (cols * rows < nPads) cols++;
42 TCanvas::Divide(cols, rows);
Definition of the CbmQaCanvas class.
friend fvec sqrt(const fvec &a)
void Divide2D(int nPads)
Divide canvas into nPads in 2D in a nice way.