CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
TEcnaNArrayD Class Reference

#include <TEcnaNArrayD.h>

Inheritance diagram for TEcnaNArrayD:

Public Member Functions

void Clean ()
 
Double_t GetOverFlow () const
 
const Double_t & operator() (Int_t i1) const
 
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)
 
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)
 
void ReSet (Int_t, Int_t)
 
void ReSet (Int_t, Int_t, Int_t)
 
void ReSet (Int_t, Int_t, Int_t, Int_t)
 
void ReSet (Int_t, Int_t, Int_t, Int_t, Int_t)
 
void ReSet (Int_t, Int_t, Int_t, Int_t, Int_t, Int_t)
 
 TEcnaNArrayD ()
 
 TEcnaNArrayD (const TEcnaNArrayD &)
 
 TEcnaNArrayD (TEcnaObject *, Int_t)
 
 TEcnaNArrayD (TEcnaObject *, Int_t, Int_t)
 
 TEcnaNArrayD (TEcnaObject *, Int_t, Int_t, Int_t)
 
 TEcnaNArrayD (TEcnaObject *, Int_t, Int_t, Int_t, Int_t)
 
 TEcnaNArrayD (TEcnaObject *, Int_t, Int_t, Int_t, Int_t, Int_t)
 
 TEcnaNArrayD (TEcnaObject *, Int_t, Int_t, Int_t, Int_t, Int_t, Int_t)
 
virtual ~TEcnaNArrayD ()
 

Protected Member Functions

void Init ()
 
Int_t OneDim (Int_t) const
 
Int_t OneDim (Int_t, Int_t) const
 
Int_t OneDim (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, Int_t, Int_t) const
 
Int_t OneDim (Int_t, Int_t, Int_t, Int_t, Int_t, 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
 

Detailed Description


TEcnaNArrayD.h Update: 16/02/2011 Authors: FX Gentit, B.Fabbro (berna.nosp@m.rd.f.nosp@m.abbro.nosp@m.@cea.nosp@m..fr), DSM/IRFU/SPP CEA-Saclay Copyright: Those valid for CEA sofware

ECNA web page: http://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.

Constructor & Destructor Documentation

TEcnaNArrayD::TEcnaNArrayD ( )

Definition at line 25 of file TEcnaNArrayD.cc.

25  {
26 //constructor without argument
27 
28  // cout << "[Info Management] CLASS: TEcnaNArrayD. CREATE OBJECT: this = " << this << endl;
29 
30  Init();
31 }
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.

33  {
34 //copy constructor
35 
36  // cout << "[Info Management] CLASS: TEcnaNArrayD. CREATE OBJECT: this = " << this << endl;
37 
38  fNd = orig.fNd;
39  fN1 = orig.fN1;
40  fN2 = orig.fN2;
41  fN3 = orig.fN3;
42  fN4 = orig.fN4;
43  fN5 = orig.fN5;
44  fN6 = orig.fN6;
45  fNL = orig.fNL;
46  fA = new Double_t [fNL];
47  for (Int_t i=0;i<fNL;i++) fA[i] = orig.fA[i];
48 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34
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.

49  {
50 //constructor for a 1 dimensional array of size n1. Array is put to 0
51 
52  // cout << "[Info Management] CLASS: TEcnaNArrayD. CREATE OBJECT: this = " << this << endl;
53 
54  Long_t i_this = (Long_t)this;
55  pObjectManager->RegisterPointer("TEcnaNArrayD", i_this);
56 
57  const Double_t zero = 0.0;
58  Init();
59  fNd = 1;
60  fN1 = n1;
61  fNL = n1 + 1;
62  fA = new Double_t [fNL];
63  for (Int_t i=0;i<fNL;i++) fA[i] = zero;
64 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34
Bool_t RegisterPointer(const TString, const Long_t &)
Definition: TEcnaObject.cc:102
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.

65  {
66 //constructor for a 2 dimensional array of sizes n1,n2. Array is put to 0
67 
68  // cout << "[Info Management] CLASS: TEcnaNArrayD. CREATE OBJECT: this = " << this << endl;
69 
70  Long_t i_this = (Long_t)this;
71  pObjectManager->RegisterPointer("TEcnaNArrayD", i_this);
72 
73  const Double_t zero = 0.0;
74  Init();
75  fNd = 2;
76  fN1 = n1;
77  fN2 = n2;
78  fNL = n1*n2 + 1;
79  fA = new Double_t [fNL];
80  for (Int_t i=0;i<fNL;i++) fA[i] = zero;
81 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34
Bool_t RegisterPointer(const TString, const Long_t &)
Definition: TEcnaObject.cc:102
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.

82  {
83 //constructor 3 dimensional array of sizes n1,n2,n3. Array is put to 0
84 
85  // cout << "[Info Management] CLASS: TEcnaNArrayD. CREATE OBJECT: this = " << this << endl;
86 
87  Long_t i_this = (Long_t)this;
88  pObjectManager->RegisterPointer("TEcnaNArrayD", i_this);
89 
90  const Double_t zero = 0.0;
91  Init();
92  fNd = 3;
93  fN1 = n1;
94  fN2 = n2;
95  fN3 = n3;
96  fNL = n1*n2*n3 + 1;
97  fA = new Double_t [fNL];
98  for (Int_t i=0;i<fNL;i++) fA[i] = zero;
99 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34
Bool_t RegisterPointer(const TString, const Long_t &)
Definition: TEcnaObject.cc:102
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.

100  {
101 //constructor for a 4 dimensional array of sizes n1,n2,n3,n4. Array is put to 0
102 
103  // cout << "[Info Management] CLASS: TEcnaNArrayD. CREATE OBJECT: this = " << this << endl;
104 
105  Long_t i_this = (Long_t)this;
106  pObjectManager->RegisterPointer("TEcnaNArrayD", i_this);
107 
108  const Double_t zero = 0.0;
109  Init();
110  fNd = 4;
111  fN1 = n1;
112  fN2 = n2;
113  fN3 = n3;
114  fN4 = n4;
115  fNL = n1*n2*n3*n4 + 1;
116  fA = new Double_t [fNL];
117  for (Int_t i=0;i<fNL;i++) fA[i] = zero;
118 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34
Bool_t RegisterPointer(const TString, const Long_t &)
Definition: TEcnaObject.cc:102
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.

119  {
120 //constructor for a 5 dimensional array of sizes n1,n2,n3,n4,n5. Array is put to 0
121 
122  // cout << "[Info Management] CLASS: TEcnaNArrayD. CREATE OBJECT: this = " << this << endl;
123 
124  Long_t i_this = (Long_t)this;
125  pObjectManager->RegisterPointer("TEcnaNArrayD", i_this);
126 
127  const Double_t zero = 0.0;
128  Init();
129  fNd = 5;
130  fN1 = n1;
131  fN2 = n2;
132  fN3 = n3;
133  fN4 = n4;
134  fN5 = n5;
135  fNL = n1*n2*n3*n4*n5 + 1;
136  fA = new Double_t [fNL];
137  for (Int_t i=0;i<fNL;i++) fA[i] = zero;
138 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34
Bool_t RegisterPointer(const TString, const Long_t &)
Definition: TEcnaObject.cc:102
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.

139  {
140 //constructor for a 6 dimensional array of sizes n1,n2,n3,n4,n5,n6. Array is put to 0
141 
142  // cout << "[Info Management] CLASS: TEcnaNArrayD. CREATE OBJECT: this = " << this << endl;
143 
144  Long_t i_this = (Long_t)this;
145  pObjectManager->RegisterPointer("TEcnaNArrayD", i_this);
146 
147  const Double_t zero = 0.0;
148  Init();
149  fNd = 6;
150  fN1 = n1;
151  fN2 = n2;
152  fN3 = n3;
153  fN4 = n4;
154  fN5 = n5;
155  fN6 = n6;
156  fNL = n1*n2*n3*n4*n5*n6 + 1;
157  fA = new Double_t [fNL];
158  for (Int_t i=0;i<fNL;i++) fA[i] = zero;
159 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34
Bool_t RegisterPointer(const TString, const Long_t &)
Definition: TEcnaObject.cc:102
TEcnaNArrayD::~TEcnaNArrayD ( )
virtual

Definition at line 161 of file TEcnaNArrayD.cc.

References Clean().

161  {
162 //destructor
163 
164  // cout << "[Info Management] CLASS: TEcnaNArrayD. DESTROY OBJECT: this = " << this << endl;
165 
166  Clean();
167 }

Member Function Documentation

void TEcnaNArrayD::Clean ( )

Definition at line 171 of file TEcnaNArrayD.cc.

References fA, and Init().

Referenced by ReSet(), and ~TEcnaNArrayD().

171  {
172 //
173  if (fA) delete [] fA;
174  Init();
175 }
Double_t * fA
Definition: TEcnaNArrayD.h:34
Double_t TEcnaNArrayD::GetOverFlow ( ) const
inline

Definition at line 57 of file TEcnaNArrayD.h.

References fA, and fNL.

57 { return fA[fNL-1]; }
Double_t * fA
Definition: TEcnaNArrayD.h:34
void TEcnaNArrayD::Init ( void  )
protected

Definition at line 176 of file TEcnaNArrayD.cc.

References fA, fN1, fN2, fN3, fN4, fN5, fN6, fNd, and fNL.

Referenced by Clean(), and TEcnaNArrayD().

177 {
178 //Initialization
179  fNd = 0;
180  fN1 = 1;
181  fN2 = 1;
182  fN3 = 1;
183  fN4 = 1;
184  fN5 = 1;
185  fN6 = 1;
186  fNL = 0;
187  fA = 0;
188 }
Double_t * fA
Definition: TEcnaNArrayD.h:34
Int_t TEcnaNArrayD::OneDim ( Int_t  i1) const
inlineprotected

Definition at line 189 of file TEcnaNArrayD.cc.

References gather_cfg::cout, and fNL.

Referenced by operator()().

189  {
190 //Index from 1 dimension to 1 dimension
191  if ((i1>=fNL - 1) || (i1<0)) {
192  i1 = fNL - 1;
193  Error("OneDim","Index outside bounds");
194  cout << "i1 = " << i1
195  << "; fNL = " << fNL << endl;
196  }
197  return i1;
198 }
tuple cout
Definition: gather_cfg.py:121
Int_t TEcnaNArrayD::OneDim ( Int_t  i1,
Int_t  i2 
) const
inlineprotected

Definition at line 199 of file TEcnaNArrayD.cc.

References gather_cfg::cout, fN1, fNL, and i.

199  {
200 //Index from 2 dimension to 1 dimension
201  Int_t i;
202  i = i1 + fN1*i2;
203  if ((i>=fNL - 1) || (i<0)) {
204  i = fNL - 1;
205  Error("OneDim","Index outside bounds");
206  cout << "i1 = " << i1 << ", i2 = " << i2
207  << "; fN1 = " << fN1 << ", fNL = " << fNL << endl;
208  }
209  return i;
210 }
int i
Definition: DBlmapReader.cc:9
tuple cout
Definition: gather_cfg.py:121
Int_t TEcnaNArrayD::OneDim ( Int_t  i1,
Int_t  i2,
Int_t  i3 
) const
inlineprotected

Definition at line 211 of file TEcnaNArrayD.cc.

References gather_cfg::cout, fN1, fN2, fNL, and i.

211  {
212 //Index from 3 dimension to 1 dimension
213  Int_t i;
214  i = i1 + fN1*(i2 + fN2*i3);
215  if ((i>=fNL - 1) || (i<0)) {
216  i = fNL - 1;
217  Error("OneDim","Index outside bounds");
218  cout << "i1 = " << i1 << ", i2 = " << i2 << ", i3 = " << i3
219  << "; fN1 = " << fN1 << ", fN2 = " << fN2 << ", fNL = " << fNL << endl;
220  }
221  return i;
222 }
int i
Definition: DBlmapReader.cc:9
tuple cout
Definition: gather_cfg.py:121
Int_t TEcnaNArrayD::OneDim ( Int_t  i1,
Int_t  i2,
Int_t  i3,
Int_t  i4 
) const
inlineprotected

Definition at line 223 of file TEcnaNArrayD.cc.

References fN1, fN2, fN3, fNL, and i.

223  {
224 //Index from 4 dimension to 1 dimension
225  Int_t i;
226  i = i1 + fN1*(i2 + fN2*(i3 + fN3*i4));
227  if ((i>=fNL - 1) || (i<0)) {
228  i = fNL - 1;
229  Error("OneDim","Index outside bounds");
230  }
231  return i;
232 }
int i
Definition: DBlmapReader.cc:9
Int_t TEcnaNArrayD::OneDim ( Int_t  i1,
Int_t  i2,
Int_t  i3,
Int_t  i4,
Int_t  i5 
) const
inlineprotected

Definition at line 233 of file TEcnaNArrayD.cc.

References fN1, fN2, fN3, fN4, fNL, and i.

233  {
234 //Index from 5 dimension to 1 dimension
235  Int_t i;
236  i = i1 + fN1*(i2 + fN2*(i3 + fN3*(i4 + fN4*i5)));
237  if ((i>=fNL - 1) || (i<0)) {
238  i = fNL - 1;
239  Error("OneDim","Index outside bounds");
240  }
241  return i;
242 }
int i
Definition: DBlmapReader.cc:9
Int_t TEcnaNArrayD::OneDim ( Int_t  i1,
Int_t  i2,
Int_t  i3,
Int_t  i4,
Int_t  i5,
Int_t  i6 
) const
inlineprotected

Definition at line 243 of file TEcnaNArrayD.cc.

References fN1, fN2, fN3, fN4, fN5, fNL, and i.

243  {
244 //Index from 6 dimension to 1 dimension
245  Int_t i;
246  i = i1 + fN1*(i2 + fN2*(i3 + fN3*(i4 + fN4*(i5 + fN5*i6))));
247  if ((i>=fNL - 1) || (i<0)) {
248  i = fNL - 1;
249  Error("OneDim","Index outside bounds");
250  }
251  return i;
252 }
int i
Definition: DBlmapReader.cc:9
const Double_t & TEcnaNArrayD::operator() ( Int_t  i1) const

Definition at line 328 of file TEcnaNArrayD.cc.

References fA, i, and OneDim().

328  {
329  Int_t i;
330  i = OneDim(i1);
331  return fA[i];
332 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34
Int_t OneDim(Int_t) const
const Double_t & TEcnaNArrayD::operator() ( Int_t  i1,
Int_t  i2 
) const

Definition at line 333 of file TEcnaNArrayD.cc.

References fA, i, and OneDim().

333  {
334  Int_t i;
335  i = OneDim(i1,i2);
336  return fA[i];
337 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34
Int_t OneDim(Int_t) const
const Double_t & TEcnaNArrayD::operator() ( Int_t  i1,
Int_t  i2,
Int_t  i3 
) const

Definition at line 338 of file TEcnaNArrayD.cc.

References fA, i, and OneDim().

338  {
339  Int_t i;
340  i = OneDim(i1,i2,i3);
341  return fA[i];
342 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34
Int_t OneDim(Int_t) const
const Double_t & TEcnaNArrayD::operator() ( Int_t  i1,
Int_t  i2,
Int_t  i3,
Int_t  i4 
) const

Definition at line 343 of file TEcnaNArrayD.cc.

References fA, i, and OneDim().

343  {
344  Int_t i;
345  i = OneDim(i1,i2,i3,i4);
346  return fA[i];
347 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34
Int_t OneDim(Int_t) const
const Double_t & TEcnaNArrayD::operator() ( Int_t  i1,
Int_t  i2,
Int_t  i3,
Int_t  i4,
Int_t  i5 
) const

Definition at line 348 of file TEcnaNArrayD.cc.

References fA, i, and OneDim().

348  {
349  Int_t i;
350  i = OneDim(i1,i2,i3,i4,i5);
351  return fA[i];
352 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34
Int_t OneDim(Int_t) 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

Definition at line 353 of file TEcnaNArrayD.cc.

References fA, i, and OneDim().

353  {
354  Int_t i;
355  i = OneDim(i1,i2,i3,i4,i5,i6);
356  return fA[i];
357 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34
Int_t OneDim(Int_t) const
Double_t & TEcnaNArrayD::operator() ( Int_t  i1)

Definition at line 358 of file TEcnaNArrayD.cc.

359 {
360  return (Double_t&)((*(const TEcnaNArrayD *)this)(i1));
361 }
Double_t & TEcnaNArrayD::operator() ( Int_t  i1,
Int_t  i2 
)

Definition at line 362 of file TEcnaNArrayD.cc.

363 {
364  return (Double_t&)((*(const TEcnaNArrayD *)this)(i1,i2));
365 }
Double_t & TEcnaNArrayD::operator() ( Int_t  i1,
Int_t  i2,
Int_t  i3 
)

Definition at line 366 of file TEcnaNArrayD.cc.

367 {
368  return (Double_t&)((*(const TEcnaNArrayD *)this)(i1,i2,i3));
369 }
Double_t & TEcnaNArrayD::operator() ( Int_t  i1,
Int_t  i2,
Int_t  i3,
Int_t  i4 
)

Definition at line 370 of file TEcnaNArrayD.cc.

371 {
372  return (Double_t&)((*(const TEcnaNArrayD *)this)(i1,i2,i3,i4));
373 }
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.

375 {
376  return (Double_t&)((*(const TEcnaNArrayD *)this)(i1,i2,i3,i4,i5));
377 }
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.

379 {
380  return (Double_t&)((*(const TEcnaNArrayD *)this)(i1,i2,i3,i4,i5,i6));
381 }
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().

253  {
254 //Reset this to be 1 dimensional of dimension n1
255  const Double_t zero = 0.0;
256  Clean();
257  fNd = 1;
258  fN1 = n1;
259  fNL = n1 + 1;
260  fA = new Double_t [fNL];
261  for (Int_t i=0;i<fNL;i++) fA[i] = zero;
262 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34
void TEcnaNArrayD::ReSet ( Int_t  n1,
Int_t  n2 
)

Definition at line 263 of file TEcnaNArrayD.cc.

References Clean(), fA, fN1, fN2, fNd, fNL, i, and zero.

263  {
264 //Reset this to be 2 dimensional of dimension n1,n2
265  const Double_t zero = 0.0;
266  Clean();
267  fNd = 2;
268  fN1 = n1;
269  fN2 = n2;
270  fNL = n1*n2 + 1;
271  fA = new Double_t [fNL];
272  for (Int_t i=0;i<fNL;i++) fA[i] = zero;
273 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34
void TEcnaNArrayD::ReSet ( Int_t  n1,
Int_t  n2,
Int_t  n3 
)

Definition at line 274 of file TEcnaNArrayD.cc.

References Clean(), fA, fN1, fN2, fN3, fNd, fNL, i, and zero.

274  {
275 //Reset this to be 3 dimensional of dimension n1,n2,n3
276  const Double_t zero = 0.0;
277  Clean();
278  fNd = 3;
279  fN1 = n1;
280  fN2 = n2;
281  fN3 = n3;
282  fNL = n1*n2*n3 + 1;
283  fA = new Double_t [fNL];
284  for (Int_t i=0;i<fNL;i++) fA[i] = zero;
285 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34
void TEcnaNArrayD::ReSet ( Int_t  n1,
Int_t  n2,
Int_t  n3,
Int_t  n4 
)

Definition at line 286 of file TEcnaNArrayD.cc.

References Clean(), fA, fN1, fN2, fN3, fN4, fNd, fNL, i, and zero.

286  {
287 //Reset this to be 4 dimensional of dimension n1,n2,n3,n4
288  const Double_t zero = 0.0;
289  Clean();
290  fNd = 4;
291  fN1 = n1;
292  fN2 = n2;
293  fN3 = n3;
294  fN4 = n4;
295  fNL = n1*n2*n3*n4 + 1;
296  fA = new Double_t [fNL];
297  for (Int_t i=0;i<fNL;i++) fA[i] = zero;
298 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34
void TEcnaNArrayD::ReSet ( Int_t  n1,
Int_t  n2,
Int_t  n3,
Int_t  n4,
Int_t  n5 
)

Definition at line 299 of file TEcnaNArrayD.cc.

References Clean(), fA, fN1, fN2, fN3, fN4, fN5, fNd, fNL, i, and zero.

299  {
300 //Reset this to be 5 dimensional of dimension n1,n2,n3,n4,n5
301  const Double_t zero = 0.0;
302  Clean();
303  fNd = 5;
304  fN1 = n1;
305  fN2 = n2;
306  fN3 = n3;
307  fN4 = n4;
308  fN5 = n5;
309  fNL = n1*n2*n3*n4*n5 + 1;
310  fA = new Double_t [fNL];
311  for (Int_t i=0;i<fNL;i++) fA[i] = zero;
312 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34
void TEcnaNArrayD::ReSet ( Int_t  n1,
Int_t  n2,
Int_t  n3,
Int_t  n4,
Int_t  n5,
Int_t  n6 
)

Definition at line 313 of file TEcnaNArrayD.cc.

References Clean(), fA, fN1, fN2, fN3, fN4, fN5, fN6, fNd, fNL, i, and zero.

313  {
314 //Reset this to be 6 dimensional of dimension n1,n2,n3,n4,n5,n6
315  const Double_t zero = 0.0;
316  Clean();
317  fNd = 6;
318  fN1 = n1;
319  fN2 = n2;
320  fN3 = n3;
321  fN4 = n4;
322  fN5 = n5;
323  fN6 = n6;
324  fNL = n1*n2*n3*n4*n5*n6 + 1;
325  fA = new Double_t [fNL];
326  for (Int_t i=0;i<fNL;i++) fA[i] = zero;
327 }
int i
Definition: DBlmapReader.cc:9
Double_t * fA
Definition: TEcnaNArrayD.h:34

Member Data Documentation

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().