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]);
Class to manage histogram axis.
virtual void Set(Int_t nbins, Double_t xmin, Double_t xmax)
Initialize axis with fix bins.
virtual void Copy(TObject &axis) const
Copy axis structure to another axis.
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
Info for status bar.
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.
Int_t DistancetoPrimitive(Int_t px, Int_t py)
Check, if the object is under cursor.
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.
UInt_t SelectedSize() const
Size of selected sub-range.
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Action.
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.
void Paint(Option_t *option)
Paint.
TGL5DPainter implements "gl5d" option for TTree::Draw.
The histogram painter class using OpenGL.
TAxis * GetXaxis()
Get the behaviour adopted by the object about the statoverflows. See EStatOverflows for more informat...
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 object has a header with a name and a title.
std::pair< Double_t, Double_t > Range_t
Short_t Max(Short_t a, Short_t b)
Short_t Min(Short_t a, Short_t b)