39 :
TNamed(
"TGL5DataSet",
"TGL5DataSet"),
41 fV1(nullptr), fV2(nullptr), fV3(nullptr), fV4(nullptr), fV5(nullptr),
42 fV1Range(1.), fV2Range(1.), fV3Range(1.),
46 Error(
"TGL5Data",
"Null pointer tree.");
47 throw std::runtime_error(
"");
50 fNP = tree->GetSelectedRows();
52 Info(
"TGL5DDataSet",
"Number of selected rows: %d",
Int_t(
fNP)) ;
54 fV1 = tree->GetVal(0);
55 fV2 = tree->GetVal(1);
56 fV3 = tree->GetVal(2);
57 fV4 = tree->GetVal(3);
58 fV5 = tree->GetVal(4);
63 Error(
"TGL5DDataSet",
"One or all of vN is a null pointer.");
64 throw std::runtime_error(
"");
84 TH3F hist(
"tmp",
"tmp", 2, -1., 1., 2, -1., 1., 2, -1., 1.);
96 fPainter = std::make_unique<TGLHistPainter>(
this);
105 return fPainter->DistancetoPrimitive(px, py);
113 return fPainter->ExecuteEvent(event, px, py);
121 static char mess[] = {
"5d data set"};
273 range.first =
src[0];
274 range.second =
src[0];
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t src
Class to manage histogram axis.
void Copy(TObject &axis) const override
Copy axis structure to another axis.
virtual void Set(Int_t nbins, Double_t xmin, Double_t xmax)
Initialize axis with fix bins.
TAxis * GetZAxis() const
Z axis for plot.
const Rgl::Range_t & GetZRange() const
V3 range (Z).
void SelectPoints(Double_t v4Level, Double_t range)
"Select" sub-range from source data
Double_t V3ToUnitCube(Double_t v3) const
V3 to unit cube.
std::vector< UInt_t > fIndices
char * GetObjectInfo(Int_t px, Int_t py) const override
Info for status bar.
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Check, if the object is under cursor.
const Rgl::Range_t & GetYRange() const
V2 range (Y).
TGL5DPainter * GetRealPainter() const
Get access to painter (for GUI-editor).
TAxis * GetYAxis() const
Y axis for plot.
Double_t V2ToUnitCube(Double_t v2) const
V2 to unit cube.
TAxis * GetXAxis() const
X axis for plot.
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Action.
TGL5DDataSet(TTree *inputData)
Constructor.
Double_t V1ToUnitCube(Double_t v1) const
V1 to unit cube.
std::unique_ptr< TGLHistPainter > fPainter
const Rgl::Range_t & GetXRange() const
V1 range (X).
const Rgl::Range_t & GetV4Range() const
V4 range.
void Paint(Option_t *option) override
Paint.
UInt_t SelectedSize() const
Size of selected sub-range.
Double_t V1(UInt_t ind) const
V1 from sub-range, converted to unit cube.
Double_t V2(UInt_t ind) const
V2 from sub-range, converted to unit cube.
Double_t V3(UInt_t ind) const
V3 from sub-range, converted to unit cube.
TGL5DPainter implements "gl5d" option for TTree::Draw.
3-D histogram with a float per channel (see TH1 documentation)
The TNamed class is the base class for all named ROOT classes.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
@ kCanDelete
if object in a list can be deleted
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
A TTree represents a columnar dataset.
std::pair< Double_t, Double_t > Range_t
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
Short_t Min(Short_t a, Short_t b)
Returns the smallest of a and b.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.