127 delete gROOT->GetListOfSpecials()->FindObject(
name);
128 gROOT->GetListOfSpecials()->Add(
this);
136 if (!ttitle) ttitle = ptitle->
GetLine(0);
138 const char *title = ttitle->
GetTitle();
139 Int_t nch = strlen(title);
140 char *vars =
new char[nch+1];
141 strlcpy(vars,title,nch+1);
142 char *col = strstr(vars,
":");
146 char *brak = strstr(col,
" {");
151 char *brak = strstr(vars,
" {");
168 delete gROOT->GetListOfSpecials()->FindObject(
name);
169 gROOT->GetListOfSpecials()->Add(
this);
177 if (!ttitle) ttitle = ptitle->
GetLine(0);
179 const char *title = ttitle->
GetTitle();
180 Int_t nch = strlen(title);
181 char *vars =
new char[nch+1];
182 strlcpy(vars,title,nch+1);
183 char *col = strstr(vars,
":");
187 char *brak = strstr(col,
" {");
192 char *brak = strstr(vars,
" {");
209 delete gROOT->GetListOfSpecials()->FindObject(
name);
210 gROOT->GetListOfSpecials()->Add(
this);
218 if (!ttitle) ttitle = ptitle->
GetLine(0);
220 const char *title = ttitle->
GetTitle();
221 Int_t nch = strlen(title);
222 char *vars =
new char[nch+1];
223 strlcpy(vars,title,nch+1);
224 char *col = strstr(vars,
":");
228 char *brak = strstr(col,
" {");
233 char *brak = strstr(vars,
" {");
249 gROOT->GetListOfSpecials()->Remove(
this);
277 for (
Int_t i=0;i<
n-1;i++) {
296 for (
Int_t i=0;i<
n-1;i++) {
298 cx += (
fX[i]-
fX[i+1])*t;
299 cy += (-
fY[i]+
fY[i+1])*t;
326 TAxis *xaxis =
h->GetXaxis();
327 TAxis *yaxis =
h->GetYaxis();
332 Int_t nbinsx =
h->GetNbinsX();
340 Int_t bin, binx, biny;
341 for (biny=biny1;biny<=biny2;biny++) {
343 for (binx=binx1;binx<=binx2;binx++) {
346 bin = binx +(nbinsx+2)*biny;
348 else integral +=
h->GetBinContent(bin);
366 out<<
"cutg = new TCutG("<<quote<<
GetName()<<quote<<
","<<
fNpoints<<
");"<<std::endl;
367 out<<
" cutg->SetVarX("<<quote<<
GetVarX()<<quote<<
");"<<std::endl;
368 out<<
" cutg->SetVarY("<<quote<<
GetVarY()<<quote<<
");"<<std::endl;
369 out<<
" cutg->SetTitle("<<quote<<
GetTitle()<<quote<<
");"<<std::endl;
376 out<<
" cutg->SetPoint("<<i<<
","<<
fX[i]<<
","<<
fY[i]<<
");"<<std::endl;
379 <<quote<<option<<quote<<
");"<<std::endl;
423void TCutG::Streamer(
TBuffer &R__b)
427 gROOT->GetListOfSpecials()->Add(
this);
include TDocParser_001 C image html pict1_TDocParser_001 png width
virtual void SaveFillAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
Save fill attributes as C++ statement(s) on output stream out.
virtual void SaveLineAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
Save line attributes as C++ statement(s) on output stream out.
virtual void SaveMarkerAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
Save line attributes as C++ statement(s) on output stream out.
Class to manage histogram axis.
virtual Double_t GetBinCenter(Int_t bin) const
Return center of bin.
virtual Int_t FindBin(Double_t x)
Find bin number corresponding to abscissa x.
virtual Double_t GetBinWidth(Int_t bin) const
Return bin width.
Buffer base class used for serializing objects.
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
virtual Double_t IntegralHist(TH2 *h, Option_t *option="") const
Compute the integral of 2-d histogram h for all bins inside the cut if option "width" is specified,...
virtual void Center(Double_t &cx, Double_t &cy) const
Compute the center x,y of this TCutG The algorithm uses Stoke's theorem over the border of the closed...
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
TCutG()
TCutG default constructor.
const char * GetVarX() const
TObject * fObjectY
! pointer to an object corresponding to Y
virtual void SetVarY(const char *vary)
Set Y variable.
virtual ~TCutG()
TCutG destructor.
virtual Double_t Area() const
Compute the area inside this TCutG The algorithm uses Stoke's theorem over the border of the closed p...
virtual void SetObjectY(TObject *obj)
Set the Y object (and delete the previous one if any).
virtual void SetVarX(const char *varx)
Set X variable.
TCutG & operator=(const TCutG &)
Assignment operator.
virtual void SetObjectX(TObject *obj)
Set the X object (and delete the previous one if any).
TObject * fObjectX
! pointer to an object corresponding to X
const char * GetVarY() const
A TGraph is an object made of two arrays X and Y with npoints each.
Int_t fNpoints
Number of points <= fMaxSize.
virtual Int_t IsInside(Double_t x, Double_t y) const
Return 1 if the point (x,y) is inside the polygon defined by the graph vertices 0 otherwise.
virtual void SetName(const char *name="")
Set graph name.
Double_t * fY
[fNpoints] array of Y points
Double_t * fX
[fNpoints] array of X points
TGraph & operator=(const TGraph &)
Equal operator for this graph.
Service class for 2-Dim histogram classes.
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.
Mother of all ROOT objects.
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
@ kInvalidObject
if object ctor succeeded but object should not be used
A Pave (see TPave) with text, lines or/and boxes inside.
virtual TText * GetLine(Int_t number) const
Get Pointer to line number in this pavetext.
virtual TText * GetLineWith(const char *text) const
Get Pointer to first containing string text in this pavetext.
void ToLower()
Change string to lower-case.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Base class for several text objects.