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) {
break;
}
}
}
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t np
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
TObject * Get(const char *namecycle) override
Return pointer to object identified by namecycle.
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.