TArrayD


class description - source file - inheritance tree

class TArrayD : public TArray


    public:
TArrayD TArrayD() TArrayD TArrayD(Int_t n) TArrayD TArrayD(Int_t n, Double_t* array) TArrayD TArrayD(TArrayD& array) virtual void ~TArrayD() void AddAt(Double_t c, Int_t i) void Adopt(Int_t n, Double_t* array) Double_t At(Int_t i) TClass* Class() void Copy(TArrayD& array) Double_t* GetArray() Stat_t GetSum() virtual TClass* IsA() TArrayD& operator=(TArrayD& rhs) Double_t& operator[](Int_t i) void Reset() virtual void Set(Int_t n) void Set(Int_t n, Double_t* array) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

public:
Double_t* fArray Array of fN doubles


See also

TH1D

Class Description

                                                                      
 TArrayD                                                              
                                                                      
 Array of doubles (64 bits per element).                              
                                                                      


TArrayD()
 Default TArrayD ctor.

TArrayD(Int_t n)
 Create TArrayD object and set array size to n doubles.

TArrayD(Int_t n, Double_t *array)
 Create TArrayD object and initialize it with values of array.

TArrayD(const TArrayD &array)
 Copy constructor.

~TArrayD()
 Delete TArrayD object.

void Adopt(Int_t n, Double_t *arr)
 Adopt array arr into TArrayD, i.e. don't copy arr but use it directly
 in TArrayD. User may not delete arr, TArrayD dtor will do it.

void AddAt(Double_t c, Int_t i)
 Add double c at position i. Check for out of bounds.

void Set(Int_t n)
 Set array size of TArrayD object to n doubles.
 If n<0 leave array unchanged.

void Set(Int_t n, Double_t *array)
 Set array size of TArrayD object to n doubles and copy array.
 If n<0 leave array unchanged.

void Streamer(TBuffer &b)
 Stream a TArrayD object.



Inline Functions


           TArrayD& operator=(TArrayD& rhs)
           Double_t At(Int_t i)
               void Copy(TArrayD& array)
          Double_t* GetArray()
             Stat_t GetSum()
               void Reset()
          Double_t& operator[](Int_t i)
            TClass* Class()
            TClass* IsA()
               void ShowMembers(TMemberInspector& insp, char* parent)


Author: Rene Brun 06/03/95
Last update: 1.03/06 27/10/97 03.23.58 by Fons Rademakers
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - 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.