library: libGraf
#include "TCutG.h"

TCutG


class description - source file - inheritance tree (.pdf)

class TCutG : public TGraph

Inheritance Chart:
TObject
<-
TNamed
TAttLine
TAttFill
TAttMarker
<-
TGraph
<-
TCutG

    public:
TCutG() TCutG(const TCutG& cutg) TCutG(const char* name, Int_t n) TCutG(const char* name, Int_t n, const Float_t* x, const Float_t* y) TCutG(const char* name, Int_t n, const Double_t* x, const Double_t* y) virtual ~TCutG() static TClass* Class() TObject* GetObjectX() const TObject* GetObjectY() const const char* GetVarX() const const char* GetVarY() const Double_t Integral(TH2* h, Option_t* option) const virtual TClass* IsA() const virtual Int_t IsInside(Double_t x, Double_t y) const TCutG& operator=(const TCutG&) virtual void SavePrimitive(ofstream& out, Option_t* option) virtual void SetObjectX(TObject* obj) virtual void SetObjectY(TObject* obj) virtual void SetVarX(const char* varx) virtual void SetVarY(const char* vary) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
TString fVarX X variable TString fVarY Y variable TObject* fObjectX !pointer to an object corresponding to X TObject* fObjectY !pointer to an object corresponding to Y

Class Description


Double_t Integral(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, the integral is the sum of
 the bin contents multiplied by the bin width in x and in y.

Int_t IsInside(Double_t x, Double_t y) const
*.         Function which returns 1 if point x,y lies inside the
*.              polygon defined by the graph points
*.                                0 otherwise
*.
*.     The loop is executed with the end-point coordinates of a
*.     line segment (X1,Y1)-(X2,Y2) and the Y-coordinate of a
*.     horizontal line.
*.     The counter inter is incremented if the line (X1,Y1)-(X2,Y2)
*.     intersects the horizontal line.
*.     In this case XINT is set to the X-coordinate of the
*.     intersection point.
*.     If inter is an odd number, then the point x,y is within
*.     the polygon.
*.
*.         This routine is based on an original algorithm
*.         developed by R.Nierhaus.
*.

void SavePrimitive(ofstream &out, Option_t *option)
 Save primitive as a C++ statement(s) on output stream out

void SetVarX(const char *varx)

void SetVarY(const char *vary)

void Streamer(TBuffer &R__b)
 Stream an object of class TCutG.



Inline Functions


               void ~TCutG()
              TCutG TCutG()
              TCutG TCutG(const TCutG& cutg)
              TCutG TCutG(const char* name, Int_t n)
              TCutG TCutG(const char* name, Int_t n, const Float_t* x, const Float_t* y)
              TCutG TCutG(const char* name, Int_t n, const Double_t* x, const Double_t* y)
           TObject* GetObjectX() const
           TObject* GetObjectY() const
        const char* GetVarX() const
        const char* GetVarY() const
               void SetObjectX(TObject* obj)
               void SetObjectY(TObject* obj)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void StreamerNVirtual(TBuffer& b)
             TCutG& operator=(const TCutG&)


Author: Rene Brun 16/05/97
Last update: root/graf:$Name: $:$Id: TCutG.cxx,v 1.16 2004/06/26 13:38:57 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.