ROOT  6.06/09
Reference Guide
Public Member Functions | Public Attributes | List of all members
TArrayD Class Reference

Array of doubles (64 bits per element).

Definition at line 29 of file TArrayD.h.

Public Member Functions

 TArrayD ()
 
 TArrayD (Int_t n)
 Create TArrayD object and set array size to n doubles. More...
 
 TArrayD (Int_t n, const Double_t *array)
 Create TArrayD object and initialize it with values of array. More...
 
 TArrayD (const TArrayD &array)
 Copy constructor. More...
 
TArrayDoperator= (const TArrayD &rhs)
 TArrayD assignment operator. More...
 
virtual ~TArrayD ()
 Delete TArrayD object. More...
 
void Adopt (Int_t n, Double_t *array)
 Adopt array arr into TArrayD, i.e. More...
 
void AddAt (Double_t c, Int_t i)
 Add double c at position i. Check for out of bounds. More...
 
Double_t At (Int_t i) const
 
void Copy (TArrayD &array) const
 
const Double_tGetArray () const
 
Double_tGetArray ()
 
Double_t GetAt (Int_t i) const
 
Stat_t GetSum () const
 
void Reset ()
 
void Reset (Double_t val)
 
void Set (Int_t n)
 Set size of this array to n doubles. More...
 
void Set (Int_t n, const Double_t *array)
 Set size of this array to n doubles and set the contents This function should not be called if the array was declared via Adopt. More...
 
void SetAt (Double_t v, Int_t i)
 
Double_toperator[] (Int_t i)
 
Double_t operator[] (Int_t i) const
 
- Public Member Functions inherited from TArray
 TArray ()
 
 TArray (Int_t n)
 
 TArray (const TArray &a)
 
TArrayoperator= (const TArray &rhs)
 
virtual ~TArray ()
 
Int_t GetSize () const
 

Public Attributes

Double_tfArray
 
- Public Attributes inherited from TArray
Int_t fN
 

Additional Inherited Members

- Static Public Member Functions inherited from TArray
static TArrayReadArray (TBuffer &b, const TClass *clReq)
 Read TArray object from buffer. More...
 
static void WriteArray (TBuffer &b, const TArray *a)
 Write TArray object to buffer. More...
 
- Protected Member Functions inherited from TArray
Bool_t BoundsOk (const char *where, Int_t at) const
 
Bool_t OutOfBoundsError (const char *where, Int_t i) const
 

#include <TArrayD.h>

+ Inheritance diagram for TArrayD:
+ Collaboration diagram for TArrayD:

Constructor & Destructor Documentation

TArrayD::TArrayD ( )
TArrayD::TArrayD ( Int_t  n)

Create TArrayD object and set array size to n doubles.

Definition at line 33 of file TArrayD.cxx.

TArrayD::TArrayD ( Int_t  n,
const Double_t array 
)

Create TArrayD object and initialize it with values of array.

Definition at line 42 of file TArrayD.cxx.

TArrayD::TArrayD ( const TArrayD array)

Copy constructor.

Definition at line 51 of file TArrayD.cxx.

TArrayD::~TArrayD ( )
virtual

Delete TArrayD object.

Definition at line 70 of file TArrayD.cxx.

Member Function Documentation

void TArrayD::AddAt ( Double_t  c,
Int_t  i 
)

Add double c at position i. Check for out of bounds.

Definition at line 92 of file TArrayD.cxx.

Referenced by TASImage::GetArray(), TGeoMCGeometry::GetShape(), and SetAt().

void TArrayD::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.

Definition at line 80 of file TArrayD.cxx.

Double_t TArrayD::At ( Int_t  i) const
inline
void TArrayD::Copy ( TArrayD array) const
inline
const Double_t* TArrayD::GetArray ( ) const
inline
Double_t* TArrayD::GetArray ( )
inline

Definition at line 46 of file TArrayD.h.

Double_t TArrayD::GetAt ( Int_t  i) const
inlinevirtual
Stat_t TArrayD::GetSum ( ) const
inline

Definition at line 48 of file TArrayD.h.

Referenced by TH2::DoQuantiles(), and TMVA::MethodBoost::FindMVACut().

TArrayD & TArrayD::operator= ( const TArrayD rhs)

TArrayD assignment operator.

Definition at line 60 of file TArrayD.cxx.

Double_t & TArrayD::operator[] ( Int_t  i)
inline

Definition at line 87 of file TArrayD.h.

Double_t TArrayD::operator[] ( Int_t  i) const
inline

Definition at line 94 of file TArrayD.h.

void TArrayD::Reset ( void  )
inline
void TArrayD::Reset ( Double_t  val)
inline

Definition at line 50 of file TArrayD.h.

void TArrayD::Set ( Int_t  n)
virtual
void TArrayD::Set ( Int_t  n,
const Double_t array 
)

Set size of this array to n doubles and set the contents This function should not be called if the array was declared via Adopt.

Definition at line 128 of file TArrayD.cxx.

void TArrayD::SetAt ( Double_t  v,
Int_t  i 
)
inlinevirtual

Implements TArray.

Definition at line 53 of file TArrayD.h.

Referenced by THnSparseArrayChunk::AddBinContent(), TFITSHDU::ReadAsImage(), and THnSparse::SetBinError2().

Member Data Documentation

Double_t* TArrayD::fArray

Definition at line 32 of file TArrayD.h.

Referenced by TH2Poly::Add(), TH1::Add(), AddAt(), TH2D::AddBinContent(), TH3D::AddBinContent(), TH1D::AddBinContent(), Adopt(), At(), TH1::ClearUnderflowAndOverflow(), TProfile::Copy(), TProfile2D::Copy(), TProfile3D::Copy(), TProfile::Divide(), TProfile2D::Divide(), TProfile3D::Divide(), TH1::Divide(), TH1::DoFillN(), TH3::DoFillProfileProjection(), TH2::DoFitSlices(), TProfile2D::DoProfile(), TH2::DoProfile(), TH3::DoProject1D(), TH3::DoProject2D(), TH2::DoProjection(), TProfile3D::DoProjectProfile2D(), TH3::DoProjectProfile2D(), TH2::DoQuantiles(), TH1::Eval(), TH1::ExtendAxis(), TH2::Fill(), TH3::Fill(), TH2Poly::Fill(), TProfile::Fill(), TProfile2D::Fill(), TProfile3D::Fill(), TH1::Fill(), TH2::FillN(), TProfile::FillN(), TH1::FillRandom(), TAxis::FindBin(), TAxis::FindFixBin(), TH3::FitSlicesZ(), GetArray(), TProfile::GetB(), TProfile2D::GetB(), TProfile3D::GetB(), TProfile::GetB2(), TProfile2D::GetB2(), TProfile3D::GetB2(), TAxis::GetBinCenter(), TAxis::GetBinCenterLog(), TProfile::GetBinContent(), TProfile2D::GetBinContent(), TProfile3D::GetBinContent(), TProfile::GetBinEntries(), TProfile2D::GetBinEntries(), TProfile3D::GetBinEntries(), TH2Poly::GetBinError(), TH1::GetBinError(), TH1::GetBinErrorSqUnchecked(), TAxis::GetBinLowEdge(), TAxis::GetBinUpEdge(), TAxis::GetBinWidth(), TH1::GetContour(), TF2::GetContourLevel(), TH1::GetContourLevel(), TH1::GetContourLevelPad(), TTree::GetIndexValues(), TProfile::GetStats(), TProfile2D::GetStats(), TProfile3D::GetStats(), TProfile::GetW(), TProfile2D::GetW(), TProfile3D::GetW(), TProfile::GetW2(), TProfile2D::GetW2(), TProfile3D::GetW2(), TH1::LabelsDeflate(), TH1::LabelsInflate(), TProfile::LabelsOption(), TProfile2D::LabelsOption(), TH2::Merge(), TH3::Merge(), TH1::Merge(), TProfile::Multiply(), TH1::Multiply(), operator=(), operator[](), TProfile::ProjectionX(), TProfile2D::ProjectionXY(), TProfile3D::ProjectionXYZ(), TProfile::Rebin(), TH3::Rebin3D(), TProfile::RetrieveBinContent(), TProfile2D::RetrieveBinContent(), TProfile3D::RetrieveBinContent(), TH2D::RetrieveBinContent(), TH3D::RetrieveBinContent(), TH1D::RetrieveBinContent(), TProfile::SavePrimitive(), TEfficiency::SavePrimitive(), TProfile3D::SavePrimitive(), TProfile2D::SavePrimitive(), TH1::SavePrimitive(), TH1::Scale(), Set(), TAxis::Set(), TH1::SetBinError(), TF2::SetContour(), TH1::SetContour(), TF2::SetContourLevel(), TH1::SetContourLevel(), THnSparseArrayChunk::Sumw2(), TH1::Sumw2(), TArrayD(), TH2D::UpdateBinContent(), TH3D::UpdateBinContent(), TH1D::UpdateBinContent(), and ~TArrayD().


The documentation for this class was generated from the following files: