#include <TEcnaNArrayD.h>
Public Member Functions | |
void | Clean () |
Double_t | GetOverFlow () const |
const Double_t & | operator() (Int_t i1) const |
Double_t & | operator() (Int_t i1, Int_t i2, Int_t i3, Int_t i4) |
const Double_t & | operator() (Int_t i1, Int_t i2) const |
const Double_t & | operator() (Int_t i1, Int_t i2, Int_t i3) const |
const Double_t & | operator() (Int_t i1, Int_t i2, Int_t i3, Int_t i4) const |
const Double_t & | operator() (Int_t i1, Int_t i2, Int_t i3, Int_t i4, Int_t i5) const |
const Double_t & | operator() (Int_t i1, Int_t i2, Int_t i3, Int_t i4, Int_t i5, Int_t i6) const |
Double_t & | operator() (Int_t i1) |
Double_t & | operator() (Int_t i1, Int_t i2) |
Double_t & | operator() (Int_t i1, Int_t i2, Int_t i3) |
Double_t & | operator() (Int_t i1, Int_t i2, Int_t i3, Int_t i4, Int_t i5) |
Double_t & | operator() (Int_t i1, Int_t i2, Int_t i3, Int_t i4, Int_t i5, Int_t i6) |
void | ReSet (Int_t, Int_t, Int_t, Int_t, Int_t, Int_t) |
void | ReSet (Int_t, Int_t, Int_t) |
void | ReSet (Int_t, Int_t, Int_t, Int_t, Int_t) |
void | ReSet (Int_t, Int_t) |
void | ReSet (Int_t) |
void | ReSet (Int_t, Int_t, Int_t, Int_t) |
TEcnaNArrayD (TEcnaObject *, Int_t) | |
TEcnaNArrayD (TEcnaObject *, Int_t, Int_t, Int_t, Int_t, Int_t, Int_t) | |
TEcnaNArrayD () | |
TEcnaNArrayD (TEcnaObject *, Int_t, Int_t, Int_t) | |
TEcnaNArrayD (TEcnaObject *, Int_t, Int_t) | |
TEcnaNArrayD (const TEcnaNArrayD &) | |
TEcnaNArrayD (TEcnaObject *, Int_t, Int_t, Int_t, Int_t, Int_t) | |
TEcnaNArrayD (TEcnaObject *, Int_t, Int_t, Int_t, Int_t) | |
virtual | ~TEcnaNArrayD () |
Protected Member Functions | |
void | Init () |
Int_t | OneDim (Int_t, Int_t, Int_t, Int_t, Int_t, Int_t) const |
Int_t | OneDim (Int_t, Int_t, Int_t, Int_t, Int_t) const |
Int_t | OneDim (Int_t, Int_t, Int_t, Int_t) const |
Int_t | OneDim (Int_t, Int_t, Int_t) const |
Int_t | OneDim (Int_t, Int_t) const |
Int_t | OneDim (Int_t) const |
Protected Attributes | |
Double_t * | fA |
Int_t | fN1 |
Int_t | fN2 |
Int_t | fN3 |
Int_t | fN4 |
Int_t | fN5 |
Int_t | fN6 |
Int_t | fNd |
Int_t | fNL |
----------------------------------------------------------- TEcnaNArrayD.h Update: 16/02/2011 Authors: FX Gentit, B.Fabbro (bernard.fabbro@cea.fr), DSM/IRFU/SPP CEA-Saclay Copyright: Those valid for CEA sofware
ECNA web page: https://cms-fabbro.web.cern.ch/cms-fabbro/ cna_new/Correlated_Noise_Analysis/ECNA_cna_1.htm -----------------------------------------------------------
ROOT class for multidimensional arrays of Double_t
Definition at line 22 of file TEcnaNArrayD.h.
TEcnaNArrayD::TEcnaNArrayD | ( | ) |
TEcnaNArrayD::TEcnaNArrayD | ( | const TEcnaNArrayD & | orig | ) |
Definition at line 33 of file TEcnaNArrayD.cc.
References fA, fN1, fN2, fN3, fN4, fN5, fN6, fNd, fNL, and i.
{ //copy constructor // cout << "[Info Management] CLASS: TEcnaNArrayD. CREATE OBJECT: this = " << this << endl; fNd = orig.fNd; fN1 = orig.fN1; fN2 = orig.fN2; fN3 = orig.fN3; fN4 = orig.fN4; fN5 = orig.fN5; fN6 = orig.fN6; fNL = orig.fNL; fA = new Double_t [fNL]; for (Int_t i=0;i<fNL;i++) fA[i] = orig.fA[i]; }
TEcnaNArrayD::TEcnaNArrayD | ( | TEcnaObject * | pObjectManager, |
Int_t | n1 | ||
) |
Definition at line 49 of file TEcnaNArrayD.cc.
References fA, fN1, fNd, fNL, i, Init(), TEcnaObject::RegisterPointer(), and zero.
{ //constructor for a 1 dimensional array of size n1. Array is put to 0 // cout << "[Info Management] CLASS: TEcnaNArrayD. CREATE OBJECT: this = " << this << endl; Long_t i_this = (Long_t)this; pObjectManager->RegisterPointer("TEcnaNArrayD", i_this); const Double_t zero = 0.0; Init(); fNd = 1; fN1 = n1; fNL = n1 + 1; fA = new Double_t [fNL]; for (Int_t i=0;i<fNL;i++) fA[i] = zero; }
TEcnaNArrayD::TEcnaNArrayD | ( | TEcnaObject * | pObjectManager, |
Int_t | n1, | ||
Int_t | n2 | ||
) |
Definition at line 65 of file TEcnaNArrayD.cc.
References fA, fN1, fN2, fNd, fNL, i, Init(), TEcnaObject::RegisterPointer(), and zero.
{ //constructor for a 2 dimensional array of sizes n1,n2. Array is put to 0 // cout << "[Info Management] CLASS: TEcnaNArrayD. CREATE OBJECT: this = " << this << endl; Long_t i_this = (Long_t)this; pObjectManager->RegisterPointer("TEcnaNArrayD", i_this); const Double_t zero = 0.0; Init(); fNd = 2; fN1 = n1; fN2 = n2; fNL = n1*n2 + 1; fA = new Double_t [fNL]; for (Int_t i=0;i<fNL;i++) fA[i] = zero; }
TEcnaNArrayD::TEcnaNArrayD | ( | TEcnaObject * | pObjectManager, |
Int_t | n1, | ||
Int_t | n2, | ||
Int_t | n3 | ||
) |
Definition at line 82 of file TEcnaNArrayD.cc.
References fA, fN1, fN2, fN3, fNd, fNL, i, Init(), TEcnaObject::RegisterPointer(), and zero.
{ //constructor 3 dimensional array of sizes n1,n2,n3. Array is put to 0 // cout << "[Info Management] CLASS: TEcnaNArrayD. CREATE OBJECT: this = " << this << endl; Long_t i_this = (Long_t)this; pObjectManager->RegisterPointer("TEcnaNArrayD", i_this); const Double_t zero = 0.0; Init(); fNd = 3; fN1 = n1; fN2 = n2; fN3 = n3; fNL = n1*n2*n3 + 1; fA = new Double_t [fNL]; for (Int_t i=0;i<fNL;i++) fA[i] = zero; }
TEcnaNArrayD::TEcnaNArrayD | ( | TEcnaObject * | pObjectManager, |
Int_t | n1, | ||
Int_t | n2, | ||
Int_t | n3, | ||
Int_t | n4 | ||
) |
Definition at line 100 of file TEcnaNArrayD.cc.
References fA, fN1, fN2, fN3, fN4, fNd, fNL, i, Init(), TEcnaObject::RegisterPointer(), and zero.
{ //constructor for a 4 dimensional array of sizes n1,n2,n3,n4. Array is put to 0 // cout << "[Info Management] CLASS: TEcnaNArrayD. CREATE OBJECT: this = " << this << endl; Long_t i_this = (Long_t)this; pObjectManager->RegisterPointer("TEcnaNArrayD", i_this); const Double_t zero = 0.0; Init(); fNd = 4; fN1 = n1; fN2 = n2; fN3 = n3; fN4 = n4; fNL = n1*n2*n3*n4 + 1; fA = new Double_t [fNL]; for (Int_t i=0;i<fNL;i++) fA[i] = zero; }
TEcnaNArrayD::TEcnaNArrayD | ( | TEcnaObject * | pObjectManager, |
Int_t | n1, | ||
Int_t | n2, | ||
Int_t | n3, | ||
Int_t | n4, | ||
Int_t | n5 | ||
) |
Definition at line 119 of file TEcnaNArrayD.cc.
References fA, fN1, fN2, fN3, fN4, fN5, fNd, fNL, i, Init(), TEcnaObject::RegisterPointer(), and zero.
{ //constructor for a 5 dimensional array of sizes n1,n2,n3,n4,n5. Array is put to 0 // cout << "[Info Management] CLASS: TEcnaNArrayD. CREATE OBJECT: this = " << this << endl; Long_t i_this = (Long_t)this; pObjectManager->RegisterPointer("TEcnaNArrayD", i_this); const Double_t zero = 0.0; Init(); fNd = 5; fN1 = n1; fN2 = n2; fN3 = n3; fN4 = n4; fN5 = n5; fNL = n1*n2*n3*n4*n5 + 1; fA = new Double_t [fNL]; for (Int_t i=0;i<fNL;i++) fA[i] = zero; }
TEcnaNArrayD::TEcnaNArrayD | ( | TEcnaObject * | pObjectManager, |
Int_t | n1, | ||
Int_t | n2, | ||
Int_t | n3, | ||
Int_t | n4, | ||
Int_t | n5, | ||
Int_t | n6 | ||
) |
Definition at line 139 of file TEcnaNArrayD.cc.
References fA, fN1, fN2, fN3, fN4, fN5, fN6, fNd, fNL, i, Init(), TEcnaObject::RegisterPointer(), and zero.
{ //constructor for a 6 dimensional array of sizes n1,n2,n3,n4,n5,n6. Array is put to 0 // cout << "[Info Management] CLASS: TEcnaNArrayD. CREATE OBJECT: this = " << this << endl; Long_t i_this = (Long_t)this; pObjectManager->RegisterPointer("TEcnaNArrayD", i_this); const Double_t zero = 0.0; Init(); fNd = 6; fN1 = n1; fN2 = n2; fN3 = n3; fN4 = n4; fN5 = n5; fN6 = n6; fNL = n1*n2*n3*n4*n5*n6 + 1; fA = new Double_t [fNL]; for (Int_t i=0;i<fNL;i++) fA[i] = zero; }
TEcnaNArrayD::~TEcnaNArrayD | ( | ) | [virtual] |
Definition at line 161 of file TEcnaNArrayD.cc.
References Clean().
{ //destructor // cout << "[Info Management] CLASS: TEcnaNArrayD. DESTROY OBJECT: this = " << this << endl; Clean(); }
void TEcnaNArrayD::Clean | ( | ) |
Definition at line 171 of file TEcnaNArrayD.cc.
Referenced by ReSet(), and ~TEcnaNArrayD().
Double_t TEcnaNArrayD::GetOverFlow | ( | ) | const [inline] |
void TEcnaNArrayD::Init | ( | void | ) | [protected] |
Int_t TEcnaNArrayD::OneDim | ( | Int_t | i1, |
Int_t | i2, | ||
Int_t | i3 | ||
) | const [inline, protected] |
Definition at line 211 of file TEcnaNArrayD.cc.
References gather_cfg::cout, fN1, fN2, fNL, and i.
{ //Index from 3 dimension to 1 dimension Int_t i; i = i1 + fN1*(i2 + fN2*i3); if ((i>=fNL - 1) || (i<0)) { i = fNL - 1; Error("OneDim","Index outside bounds"); cout << "i1 = " << i1 << ", i2 = " << i2 << ", i3 = " << i3 << "; fN1 = " << fN1 << ", fN2 = " << fN2 << ", fNL = " << fNL << endl; } return i; }
Int_t TEcnaNArrayD::OneDim | ( | Int_t | i1 | ) | const [inline, protected] |
Definition at line 189 of file TEcnaNArrayD.cc.
References gather_cfg::cout, and fNL.
Referenced by operator()().
Int_t TEcnaNArrayD::OneDim | ( | Int_t | i1, |
Int_t | i2, | ||
Int_t | i3, | ||
Int_t | i4 | ||
) | const [inline, protected] |
Int_t TEcnaNArrayD::OneDim | ( | Int_t | i1, |
Int_t | i2 | ||
) | const [inline, protected] |
Definition at line 199 of file TEcnaNArrayD.cc.
References gather_cfg::cout, fN1, fNL, and i.
Int_t TEcnaNArrayD::OneDim | ( | Int_t | i1, |
Int_t | i2, | ||
Int_t | i3, | ||
Int_t | i4, | ||
Int_t | i5 | ||
) | const [inline, protected] |
Int_t TEcnaNArrayD::OneDim | ( | Int_t | i1, |
Int_t | i2, | ||
Int_t | i3, | ||
Int_t | i4, | ||
Int_t | i5, | ||
Int_t | i6 | ||
) | const [inline, protected] |
Definition at line 243 of file TEcnaNArrayD.cc.
const Double_t & TEcnaNArrayD::operator() | ( | Int_t | i1, |
Int_t | i2, | ||
Int_t | i3, | ||
Int_t | i4 | ||
) | const |
Double_t & TEcnaNArrayD::operator() | ( | Int_t | i1, |
Int_t | i2 | ||
) |
Definition at line 362 of file TEcnaNArrayD.cc.
{ return (Double_t&)((*(const TEcnaNArrayD *)this)(i1,i2)); }
const Double_t & TEcnaNArrayD::operator() | ( | Int_t | i1, |
Int_t | i2 | ||
) | const |
Double_t & TEcnaNArrayD::operator() | ( | Int_t | i1, |
Int_t | i2, | ||
Int_t | i3, | ||
Int_t | i4 | ||
) |
Definition at line 370 of file TEcnaNArrayD.cc.
{ return (Double_t&)((*(const TEcnaNArrayD *)this)(i1,i2,i3,i4)); }
Double_t & TEcnaNArrayD::operator() | ( | Int_t | i1, |
Int_t | i2, | ||
Int_t | i3, | ||
Int_t | i4, | ||
Int_t | i5, | ||
Int_t | i6 | ||
) |
Definition at line 378 of file TEcnaNArrayD.cc.
{ return (Double_t&)((*(const TEcnaNArrayD *)this)(i1,i2,i3,i4,i5,i6)); }
const Double_t & TEcnaNArrayD::operator() | ( | Int_t | i1 | ) | const |
const Double_t & TEcnaNArrayD::operator() | ( | Int_t | i1, |
Int_t | i2, | ||
Int_t | i3 | ||
) | const |
const Double_t & TEcnaNArrayD::operator() | ( | Int_t | i1, |
Int_t | i2, | ||
Int_t | i3, | ||
Int_t | i4, | ||
Int_t | i5 | ||
) | const |
const Double_t & TEcnaNArrayD::operator() | ( | Int_t | i1, |
Int_t | i2, | ||
Int_t | i3, | ||
Int_t | i4, | ||
Int_t | i5, | ||
Int_t | i6 | ||
) | const |
Double_t & TEcnaNArrayD::operator() | ( | Int_t | i1 | ) |
Definition at line 358 of file TEcnaNArrayD.cc.
{ return (Double_t&)((*(const TEcnaNArrayD *)this)(i1)); }
Double_t & TEcnaNArrayD::operator() | ( | Int_t | i1, |
Int_t | i2, | ||
Int_t | i3 | ||
) |
Definition at line 366 of file TEcnaNArrayD.cc.
{ return (Double_t&)((*(const TEcnaNArrayD *)this)(i1,i2,i3)); }
Double_t & TEcnaNArrayD::operator() | ( | Int_t | i1, |
Int_t | i2, | ||
Int_t | i3, | ||
Int_t | i4, | ||
Int_t | i5 | ||
) |
Definition at line 374 of file TEcnaNArrayD.cc.
{ return (Double_t&)((*(const TEcnaNArrayD *)this)(i1,i2,i3,i4,i5)); }
void TEcnaNArrayD::ReSet | ( | Int_t | n1, |
Int_t | n2, | ||
Int_t | n3 | ||
) |
void TEcnaNArrayD::ReSet | ( | Int_t | n1, |
Int_t | n2, | ||
Int_t | n3, | ||
Int_t | n4, | ||
Int_t | n5, | ||
Int_t | n6 | ||
) |
void TEcnaNArrayD::ReSet | ( | Int_t | n1, |
Int_t | n2 | ||
) |
Definition at line 263 of file TEcnaNArrayD.cc.
void TEcnaNArrayD::ReSet | ( | Int_t | n1, |
Int_t | n2, | ||
Int_t | n3, | ||
Int_t | n4, | ||
Int_t | n5 | ||
) |
void TEcnaNArrayD::ReSet | ( | Int_t | n1, |
Int_t | n2, | ||
Int_t | n3, | ||
Int_t | n4 | ||
) |
void TEcnaNArrayD::ReSet | ( | Int_t | n1 | ) |
Definition at line 253 of file TEcnaNArrayD.cc.
References Clean(), fA, fN1, fNd, fNL, i, and zero.
Referenced by TEcnaResultType::SetSizeHis(), TEcnaResultType::SetSizeMat(), TEcnaResultType::TEcnaResultType(), and TEcnaRun::WriteRootFile().
Double_t* TEcnaNArrayD::fA [protected] |
Definition at line 34 of file TEcnaNArrayD.h.
Referenced by Clean(), GetOverFlow(), Init(), operator()(), ReSet(), and TEcnaNArrayD().
Int_t TEcnaNArrayD::fN1 [protected] |
Definition at line 27 of file TEcnaNArrayD.h.
Referenced by Init(), OneDim(), ReSet(), and TEcnaNArrayD().
Int_t TEcnaNArrayD::fN2 [protected] |
Definition at line 28 of file TEcnaNArrayD.h.
Referenced by Init(), OneDim(), ReSet(), and TEcnaNArrayD().
Int_t TEcnaNArrayD::fN3 [protected] |
Definition at line 29 of file TEcnaNArrayD.h.
Referenced by Init(), OneDim(), ReSet(), and TEcnaNArrayD().
Int_t TEcnaNArrayD::fN4 [protected] |
Definition at line 30 of file TEcnaNArrayD.h.
Referenced by Init(), OneDim(), ReSet(), and TEcnaNArrayD().
Int_t TEcnaNArrayD::fN5 [protected] |
Definition at line 31 of file TEcnaNArrayD.h.
Referenced by Init(), OneDim(), ReSet(), and TEcnaNArrayD().
Int_t TEcnaNArrayD::fN6 [protected] |
Definition at line 32 of file TEcnaNArrayD.h.
Referenced by Init(), ReSet(), and TEcnaNArrayD().
Int_t TEcnaNArrayD::fNd [protected] |
Definition at line 26 of file TEcnaNArrayD.h.
Referenced by Init(), ReSet(), and TEcnaNArrayD().
Int_t TEcnaNArrayD::fNL [protected] |
Definition at line 33 of file TEcnaNArrayD.h.
Referenced by GetOverFlow(), Init(), OneDim(), ReSet(), and TEcnaNArrayD().