#include "TProofNTuple.h"

TProofNTuple


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

class TProofNTuple : public TNamed

Inheritance Chart:
TObject
<-
TNamed
<-
TProofNTuple

    protected:
Bool_t AssertSize(int newMinSize) public:
TProofNTuple(Int_t dimension = 1) TProofNTuple(const TProofNTuple&) ~TProofNTuple() virtual Bool_t Add(TProofNTuple* ntuple) static TClass* Class() virtual void DrawCopy(Option_t* option) virtual Bool_t Fill(Double_t x) virtual Bool_t Fill(Double_t x, Double_t y) virtual Bool_t Fill(Double_t x, Double_t y, Double_t z) virtual Bool_t Fill(Double_t x, Double_t y, Double_t z, Double_t t) virtual Double_t Get(Int_t entry, Int_t coord) virtual Int_t GetDimension() virtual Int_t GetEntries() virtual Double_t GetT(Int_t entry) virtual Double_t GetX(Int_t entry) virtual Double_t GetY(Int_t entry) virtual Double_t GetZ(Int_t entry) virtual TClass* IsA() const virtual Double_t Max(int coord) virtual Int_t Merge(TCollection* list) virtual Double_t Min(int coord) TProofNTuple& operator=(const TProofNTuple&) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Int_t fDimension dimension of the NTuple TArrayD fArray an array of stored values Int_t fEntries number of rows

Class Description

                                                                      
 TProofNTuple                                                         
                                                                      
 This class represents a set of points of a dimension specified in    
 the constructor the points are counted from 0 and the coordinates    
 from 1, see TProofNTuple::Get().                                     
                                                                      


TProofNTuple(Int_t dimension) : fDimension(dimension), fArray(10*dimension), fEntries(0)
 Creates a new TProofNTuple of dimension *dimension*.
 dimension - dimension of the new TProofNTuple.

~TProofNTuple()
 destructor

Double_t Get(Int_t entry, Int_t coord)
 The *coord*-th coordinate of the entry *entry*.
 entry - entry number (counted from 0)
 coord - coordinate of the point. Must be between 1 and the
         dimension of the plot
 Returns apropriate value or 0 in case of an error (wrong parameters).

Bool_t AssertSize(Int_t newMinSize)
 Enlarges (if necessary) the array where the poins are kept to the size
 of minimum *newMinSize.
 newMinSize - new minimum size of the
 Returns kTRUE if success, kFALSE in case of an error.

Bool_t Fill(Double_t x)
 Adds a new point, assumes that the dimension equals 1.
 x - 1st coordinate of the poind
 Returns kTRUE if success, kFALSE if failed.

Bool_t Fill(Double_t x, Double_t y)
 Adds a new point, assumes that the dimension equals 2.
 x - 1st coordinate of the point
 y - 2nd coordinate of the point
 Returns kTRUE if success, kFALSE if failed.

Bool_t Fill(Double_t x, Double_t y, Double_t z)
 Adds a new point, assumes that the dimension equals 3.
 x - 1st coordinate of the point
 y - 2nd coordinate of the point
 z - 3rd coordinate of the point
 Returns kTRUE if success, kFALSE if failed.

Bool_t Fill(Double_t x, Double_t y, Double_t z, Double_t t)
 Adds a new point, assumes that the dimension equals 4.
 x - 1st coordinate of the point
 y - 2nd coordinate of the point
 z - 3rd coordinate of the point
 z - 4th coordinate of the point
 Returns kTRUE if success, kFALSE if failed.

void DrawCopy(const Option_t* option)
 Draws a copy on the current pad
 no changes to the drawn plot can affect this one.

Bool_t Add(TProofNTuple* ntuple)
 Adds another ntuple.
 ntuple - another ntuple plot. It will be added to this one.
 failes if the dimension are different
 Returns kTRUE if success, kFALSE if failure.

Int_t Merge(TCollection* list)
 Adds all thei TNtuples in the collection to this one.
 fails if there is an object on the list which is not a TProofNTuple
 or if the dimension of that object != dimension of this one
 if the function fails the state of this object is unspecified.
 After the successfull function call the NTuple contains
 all the points from every ntuple on the list and from
 its previous state.
 list - a collection of objects that are to be added to this one.
 Returns the merged number of entries if the merge is
 successfull, -1 otherwise.

Double_t Min(int coord)
 Returns minimum value for the specified coordinate.
 coord - the number of the coordinate for which we want the minimum. Must be between
 1 and this->GetDimension()
 Returns minimum of 0 in case of w wrong parameter of empty TProofNTuple.

Double_t Max(int coord)
 Returns maximum value for the specified coordinate.
 coord - the number of the coordinate for which we want the maximum. Must be between
 1 and this->GetDimension()
 Returns minimum of 0 in case of w wrong parameter of empty TProofNTuple.



Inline Functions


             Double_t GetX(Int_t entry)
             Double_t GetY(Int_t entry)
             Double_t GetZ(Int_t entry)
             Double_t GetT(Int_t entry)
                Int_t GetDimension()
                Int_t GetEntries()
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
                 void StreamerNVirtual(TBuffer& b)
         TProofNTuple TProofNTuple(const TProofNTuple&)
        TProofNTuple& operator=(const TProofNTuple&)


Author: Marek Biskup 28/01/2005
Last update: root/proof:$Name: $:$Id: TProofNTuple.cxx,v 1.1 2005/03/10 17:57:04 rdm Exp $
Copyright (C) 1995-2005, 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.