Re: TCutG marker

From: Rene Brun <brun_at_pcroot.cern.ch>
Date: Fri, 17 Jun 2005 09:52:14 +0200 (MEST)


See example below

Rene Brun

{

    TCanvas *c = new TCanvas("c","example",0,0,700,600);     c->Divide(1,2);

    TCutG *gcut = new TCutG("gcut",8);

    gcut->SetPoint(0,-0.646552,0.932203);
    gcut->SetPoint(1,-1.26437,0.105932);
    gcut->SetPoint(2,-0.574713,-1.10169);
    gcut->SetPoint(3,0.948276,-0.338983);
    gcut->SetPoint(4,1.07759,0.720339);
    gcut->SetPoint(5,-0.316092,-0.0847458);
    gcut->SetPoint(6,-0.45977,0.402542);
    gcut->SetPoint(7,-0.646552,0.932203);

    TFile f("hsimple.root")
    TH2F *hpxpy = (TH2F*)f.Get("hpxpy");     hpxpy->Draw();
    gcut->SetMarkerStyle(21);
    gcut->Draw("lp");
}

On Fri, 17 Jun
2005, Alexander Bürger wrote:

> Dear rooters,
>
> Which methods do I have to use to make a TCutG draw markers and lines?
>
> SetMarkerStyle(kFullDotLarge) does not have the desired effect on a
> newly created TCutG, and SetMarkerSize(5) does not improve it. The only
> way I found is via the dialog "show markers" (which, btw, hides the
> line), but this is very inconvenient for large numbers of cuts.
>
> ROOT version is 4.04.02
>
> Thanks for your help,
>
> Alexander
>
Received on Fri Jun 17 2005 - 09:52:18 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:09 MET