Make a contour plot and get the first contour in a TPolyMarker.
This macro generates a color contour plot by selecting entries from an ntuple file. The TGraph object corresponding to the first contour line is accessed and displayed into a separate canvas.
void hist056_TPolyMarker_contour()
{
if (!file)
return;
ntuple->Draw("py:px", "px*px+py*py < 20", "contz,list");
if (!contours)
return;
if (!lcontour1)
return;
if (!gc1)
return;
return;
const Int_t npmax = 50000;
while (1) {
np++;
if (np == npmax)
break;
}
}
}
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
TObject * Get(const char *namecycle) override
Return pointer to object identified by namecycle.
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
virtual Int_t IsInside(Double_t x, Double_t y) const
void Draw(Option_t *chopt="") override
Default Draw method for all objects.
TObject * First() const override
Return the first object in the list. Returns 0 when list is empty.
TObject * At(Int_t idx) const override
A PolyMarker is defined by an array on N points in a 2-D space.
void Draw(Option_t *option="") override
Draw.
virtual void SetPoint(Int_t point, Double_t x, Double_t y)
Set point number n.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
TString & Append(const char *cs)
A TTree represents a columnar dataset.
- Date
- January 2017
- Author
- Rene Brun
Definition in file hist056_TPolyMarker_contour.C.