38 :
TNamed(
"TGL5DataSet",
"TGL5DataSet"),
40 fV1(0), fV2(0), fV3(0), fV4(0), fV5(0),
41 fV1Range(1.), fV2Range(1.), fV3Range(1.),
45 Error(
"TGL5Data",
"Null pointer tree.");
46 throw std::runtime_error(
"");
51 Info(
"TGL5DDataSet",
"Number of selected rows: %d",
Int_t(
fNP)) ;
62 Error(
"TGL5DDataSet",
"One or all of vN is a null pointer.");
63 throw std::runtime_error(
"");
83 TH3F hist(
"tmp",
"tmp", 2, -1., 1., 2, -1., 1., 2, -1., 1.);
104 return fPainter->DistancetoPrimitive(px, py);
112 return fPainter->ExecuteEvent(event, px, py);
120 static char mess[] = {
"5d data set"};
272 range.first = src[0];
273 range.second = src[0];
275 for (
Long64_t i = 1; i < size; ++i) {
276 range.first =
TMath::Min(range.first, src[i]);
277 range.second =
TMath::Max(range.second, src[i]);
const Rgl::Range_t & GetYRange() const
V2 range (Y).
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
tomato 3-D histogram with a float per channel (see TH1 documentation)}
std::unique_ptr< TGLHistPainter > fPainter
std::pair< Double_t, Double_t > Range_t
Double_t V3ToUnitCube(Double_t v3) const
V3 to unit cube.
Short_t Min(Short_t a, Short_t b)
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Action.
virtual void Copy(TObject &axis) const
Copy axis structure to another axis.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
if object in a list can be deleted
virtual Long64_t GetSelectedRows()
TTreeFormula * GetVar(Int_t i)
const Rgl::Range_t & GetZRange() const
V3 range (Z).
The TNamed class is the base class for all named ROOT classes.
Double_t V1(UInt_t ind) const
V1 from sub-range, converted to unit cube.
TGL5DPainter * GetRealPainter() const
Get access to painter (for GUI-editor).
void SelectPoints(Double_t v4Level, Double_t range)
"Select" sub-range from source data
const Rgl::Range_t & GetXRange() const
V1 range (X).
TAxis * GetYAxis() const
Y axis for plot.
Double_t V2(UInt_t ind) const
V2 from sub-range, converted to unit cube.
Class to manage histogram axis.
Int_t DistancetoPrimitive(Int_t px, Int_t py)
Check, if the object is under cursor.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
const Rgl::Range_t & GetV4Range() const
V4 range.
Double_t V2ToUnitCube(Double_t v2) const
V2 to unit cube.
void Paint(Option_t *option)
Paint.
TGL5DPainter implements "gl5d" option for TTree::Draw.
The histogram painter class using OpenGL.
virtual Double_t * GetVal(Int_t i)
Short_t Max(Short_t a, Short_t b)
char * GetObjectInfo(Int_t px, Int_t py) const
Info for status bar.
A TTree object has a header with a name and a title.
virtual void Set(Int_t nbins, Double_t xmin, Double_t xmax)
Initialize axis with fix bins.
std::vector< UInt_t > fIndices
Double_t V1ToUnitCube(Double_t v1) const
V1 to unit cube.
TGL5DDataSet(TTree *inputData)
Constructor.
TAxis * GetXAxis() const
X axis for plot.
TAxis * GetZAxis() const
Z axis for plot.
Double_t V3(UInt_t ind) const
V3 from sub-range, converted to unit cube.
UInt_t SelectedSize() const
Size of selected sub-range.