ROOT
6.07/01
Reference Guide
|
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... | |
TArrayD & | operator= (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_t * | GetArray () const |
Double_t * | GetArray () |
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_t & | operator[] (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) | |
TArray & | operator= (const TArray &rhs) |
virtual | ~TArray () |
Int_t | GetSize () const |
Public Attributes | |
Double_t * | fArray |
Public Attributes inherited from TArray | |
Int_t | fN |
Additional Inherited Members | |
Static Public Member Functions inherited from TArray | |
static TArray * | ReadArray (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>
TArrayD::TArrayD | ( | ) |
Referenced by TProfile::Divide(), TProfile2D::Divide(), and TProfile3D::Divide().
TArrayD::TArrayD | ( | Int_t | n | ) |
Create TArrayD object and set array size to n doubles.
Definition at line 34 of file TArrayD.cxx.
Create TArrayD object and initialize it with values of array.
Definition at line 43 of file TArrayD.cxx.
TArrayD::TArrayD | ( | const TArrayD & | array | ) |
Copy constructor.
Definition at line 52 of file TArrayD.cxx.
|
virtual |
Delete TArrayD object.
Definition at line 71 of file TArrayD.cxx.
Add double c at position i. Check for out of bounds.
Definition at line 93 of file TArrayD.cxx.
Referenced by TASImage::GetArray(), TGeoMCGeometry::GetShape(), and SetAt().
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 81 of file TArrayD.cxx.
Definition at line 81 of file TArrayD.h.
Referenced by TGraphAsymmErrors::Divide(), GetAt(), TEfficiency::GetEfficiency(), TEfficiency::GetEfficiencyErrorLow(), TEfficiency::GetEfficiencyErrorUp(), THnBase::RebinBase(), and rr_arrayd_new().
Definition at line 44 of file TArrayD.h.
Referenced by TProfile::Copy(), TF2::Copy(), TProfile2D::Copy(), TAxis::Copy(), TProfile3D::Copy(), TH1::Copy(), RooParametricStepFunction::RooParametricStepFunction(), TH1D::TH1D(), TH2D::TH2D(), and TH3D::TH3D().
|
inline |
Definition at line 45 of file TArrayD.h.
Referenced by RooDataHist::adjustBinning(), RooStats::BayesianCalculator::ComputeShortestInterval(), THnBase::CreateHist(), TEfficiency::CreateHistogram(), TF2::CreateHistogram(), TDecompSparse::Decompose(), TDecompSparse::Factor(), RooParametricStepFunction::getLimits(), TF1::GetQuantiles(), THnBase::Init(), TH2::Merge(), TH3::Merge(), TH1::Merge(), THStack::Paint(), TF2::Paint(), TDecompSparse::Print(), TProfile2D::ProjectionXY(), TProfile3D::ProjectionXYZ(), TH1::Scale(), TASImage::SetImage(), TDecompSparse::Solve(), and TUnfold::TUnfold().
Implements TArray.
Definition at line 47 of file TArrayD.h.
Referenced by THnSparseArrayChunk::AddBinContent(), TH1::CheckBinLimits(), TFITSHDU::GetArrayColumn(), TFITSHDU::GetArrayRow(), THnSparse::GetBinError2(), TFITSHDU::ReadAsHistogram(), TFITSHDU::ReadAsImage(), and TFITSHDU::ReadAsMatrix().
|
inline |
Definition at line 48 of file TArrayD.h.
Referenced by TH2::DoQuantiles(), and TMVA::MethodBoost::FindMVACut().
TArrayD assignment operator.
Definition at line 61 of file TArrayD.cxx.
Definition at line 49 of file TArrayD.h.
Referenced by TProfile::BufferEmpty(), TProfile2D::BufferEmpty(), TProfile3D::BufferEmpty(), TProfile2D::BufferFill(), TProfile3D::BufferFill(), TProfile::BufferFill(), TDecompSparse::Decompose(), TProfile::Reset(), TProfile3D::Reset(), TProfile2D::Reset(), TH2D::Reset(), TH3D::Reset(), TH1::Reset(), and TH1D::Reset().
Set size of this array to n doubles.
A new array is created, the old contents copied to the new array, then the old array is deleted. This function should not be called if the array was declared via Adopt.
Implements TArray.
Definition at line 105 of file TArrayD.cxx.
Referenced by Copy(), TDecompSparse::Decompose(), TGeoMCGeometry::GetMaterial(), TGeoMCGeometry::GetMedium(), TGeoMCGeometry::GetShape(), TUnfold::InitTUnfold(), TH1::LabelsDeflate(), TH1::LabelsInflate(), TH2::Merge(), TH3::Merge(), operator=(), TH1::Rebuild(), TH1::Reset(), RooPlot::RooPlot(), TAxis::Set(), TProfile3D::SetBins(), TProfile2D::SetBins(), TH1::SetBins(), TH2D::SetBinsLength(), TH3D::SetBinsLength(), TH1D::SetBinsLength(), TF2::SetContour(), TH1::SetContour(), TDecompSparse::SetMatrix(), TH1::Sumw2(), TArrayD(), TDecompSparse::TDecompSparse(), TF2::TF2(), TH1D::TH1D(), TH2D::TH2D(), TH3D::TH3D(), and TUnfold::TUnfold().
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 129 of file TArrayD.cxx.
Implements TArray.
Definition at line 53 of file TArrayD.h.
Referenced by THnSparseArrayChunk::AddBinContent(), TFITSHDU::ReadAsImage(), and THnSparse::SetBinError2().
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(), Copy(), 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(), GetSum(), 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(), Reset(), 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().