![]() |
ROOT
6.06/09
Reference Guide
|
Public Member Functions | |
TArrayF () | |
TArrayF (Int_t n) | |
Create TArrayF object and set array size to n floats. More... | |
TArrayF (Int_t n, const Float_t *array) | |
Create TArrayF object and initialize it with values of array. More... | |
TArrayF (const TArrayF &array) | |
Copy constructor. More... | |
TArrayF & | operator= (const TArrayF &rhs) |
TArrayF assignment operator. More... | |
virtual | ~TArrayF () |
Delete TArrayF object. More... | |
void | Adopt (Int_t n, Float_t *array) |
Adopt array arr into TArrayF, i.e. More... | |
void | AddAt (Float_t c, Int_t i) |
Add float c at position i. Check for out of bounds. More... | |
Float_t | At (Int_t i) const |
void | Copy (TArrayF &array) const |
const Float_t * | GetArray () const |
Float_t * | GetArray () |
Double_t | GetAt (Int_t i) const |
Stat_t | GetSum () const |
void | Reset () |
void | Reset (Float_t val) |
void | Set (Int_t n) |
Set size of this array to n floats. More... | |
void | Set (Int_t n, const Float_t *array) |
Set size of this array to n floats and set the contents. More... | |
void | SetAt (Double_t v, Int_t i) |
Float_t & | operator[] (Int_t i) |
Float_t | operator[] (Int_t i) const |
![]() | |
TArray () | |
TArray (Int_t n) | |
TArray (const TArray &a) | |
TArray & | operator= (const TArray &rhs) |
virtual | ~TArray () |
Int_t | GetSize () const |
Public Attributes | |
Float_t * | fArray |
![]() | |
Int_t | fN |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
Bool_t | BoundsOk (const char *where, Int_t at) const |
Bool_t | OutOfBoundsError (const char *where, Int_t i) const |
#include <TArrayF.h>
TArrayF::TArrayF | ( | ) |
TArrayF::TArrayF | ( | Int_t | n | ) |
Create TArrayF object and set array size to n floats.
Definition at line 33 of file TArrayF.cxx.
Create TArrayF object and initialize it with values of array.
Definition at line 42 of file TArrayF.cxx.
TArrayF::TArrayF | ( | const TArrayF & | array | ) |
Copy constructor.
Definition at line 51 of file TArrayF.cxx.
|
virtual |
Delete TArrayF object.
Definition at line 70 of file TArrayF.cxx.
Add float c at position i. Check for out of bounds.
Definition at line 92 of file TArrayF.cxx.
Referenced by TH1K::Fill(), and SetAt().
Adopt array arr into TArrayF, i.e.
don't copy arr but use it directly in TArrayF. User may not delete arr, TArrayF dtor will do it.
Definition at line 80 of file TArrayF.cxx.
Definition at line 80 of file TArrayF.h.
Referenced by GetAt(), and rr_arrayf_new().
Definition at line 44 of file TArrayF.h.
Referenced by TH1F::TH1F(), TH2F::TH2F(), and TH3F::TH3F().
|
inline |
Definition at line 45 of file TArrayF.h.
Referenced by TH1K::Sort().
|
inline |
Definition at line 48 of file TArrayF.h.
Referenced by RooAbsData::plotOn().
TArrayF assignment operator.
Definition at line 60 of file TArrayF.cxx.
Definition at line 49 of file TArrayF.h.
Referenced by TH2F::Reset(), TH3F::Reset(), TH1F::Reset(), and TPythia6Decayer::TPythia6Decayer().
Set size of this array to n floats.
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 104 of file TArrayF.cxx.
Referenced by Copy(), TH1K::Fill(), operator=(), TH2F::SetBinsLength(), TH3F::SetBinsLength(), TH1F::SetBinsLength(), TArrayF(), TH1F::TH1F(), TH2F::TH2F(), and TH3F::TH3F().
Set size of this array to n floats and set the contents.
This function should not be called if the array was declared via Adopt.
Definition at line 128 of file TArrayF.cxx.
Float_t* TArrayF::fArray |
Definition at line 32 of file TArrayF.h.
Referenced by AddAt(), TH2F::AddBinContent(), TH3F::AddBinContent(), TH1F::AddBinContent(), Adopt(), At(), GetArray(), TH1K::GetBinContent(), operator=(), operator[](), TH2F::RetrieveBinContent(), TH3F::RetrieveBinContent(), TH1F::RetrieveBinContent(), TH1K::SavePrimitive(), Set(), TArrayF(), TH2F::UpdateBinContent(), TH3F::UpdateBinContent(), TH1F::UpdateBinContent(), and ~TArrayF().