28 return AddLast(x,y,z);
80 if (x1 < x2) {xl =
x1; xt =
x2;}
81 else {xl =
x2; xt =
x1;}
82 if (y1 < y2) {yl = y1; yt = y2;}
83 else {yl = y2; yt = y1;}
84 if (x < xl-2 || x> xt+2)
return 9999;
85 if (y < yl-2 || y> yt+2)
return 9999;
95 if (c2 <= 0)
return 9999;
99 if (d2 < 0)
return 9999;
155 for (
Int_t i=idx;i<size;i++) {
virtual Int_t SetPoint(Int_t point, Float_t x, Float_t y, Float_t z)=0
virtual Float_t * GetXYZ(Float_t *xyz, Int_t idx, Int_t num=1) const
GetXYZ(Float_t *xyz,Int_t idx,Int_t num=1) fills the buffer supplied by the calling code with the poi...
Abstract class to define Arrays of 3D points.
Short_t Min(Short_t a, Short_t b)
virtual Int_t AddLast(Float_t x, Float_t y, Float_t z)
Add one 3D point defined by x,y,z to the array of the points as its last element. ...
virtual Float_t GetY(Int_t idx) const =0
static const double x2[5]
virtual Int_t GetN() const
GetN() returns the number of allocated cells if any.
virtual Float_t GetX(Int_t idx) const =0
static Int_t DistancetoLine(Int_t px, Int_t py, Float_t x1, Float_t y1, Float_t x2, Float_t y2, Int_t lineWidth=1)
Compute distance from point px,py to an axis of the band defined.
void Add(THist< DIMENSIONS, PRECISION_TO, STAT_TO... > &to, const THist< DIMENSIONS, PRECISION_FROM, STAT_FROM... > &from)
Add two histograms.
static const double x1[5]
you should not use this method at all Int_t Int_t z
virtual Float_t * GetP() const
GetP() returns the pointer to the float point array of points if available The number of the availabl...
virtual Int_t SetNextPoint(Float_t x, Float_t y, Float_t z)
Add one 3D point defined by x,y,z to the array of the points as its last element. ...
Double_t Sqrt(Double_t x)
virtual Int_t Size() const =0
virtual Float_t GetZ(Int_t idx) const =0
virtual Int_t GetLastPosition() const =0