CMS 3D CMS Logo

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)
 
 ~TEcnaNArrayD () override
 

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: 05/10/2012 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_main_page.htm

ROOT class for multidimensional arrays of Double_t

Definition at line 22 of file TEcnaNArrayD.h.

Constructor & Destructor Documentation

◆ TEcnaNArrayD() [1/8]

TEcnaNArrayD::TEcnaNArrayD ( )

Definition at line 25 of file TEcnaNArrayD.cc.

References Init().

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

◆ TEcnaNArrayD() [2/8]

TEcnaNArrayD::TEcnaNArrayD ( const TEcnaNArrayD orig)

Definition at line 33 of file TEcnaNArrayD.cc.

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

33  : TObject::TObject(orig) {
34  //copy constructor
35 
36  // std::cout << "[Info Management] CLASS: TEcnaNArrayD. CREATE OBJECT: this = " << this << std::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++)
48  fA[i] = orig.fA[i];
49 }
Double_t * fA
Definition: TEcnaNArrayD.h:32

◆ TEcnaNArrayD() [3/8]

TEcnaNArrayD::TEcnaNArrayD ( TEcnaObject pObjectManager,
Int_t  n1 
)

Definition at line 50 of file TEcnaNArrayD.cc.

References fA, fN1, fNd, fNL, mps_fire::i, Init(), TEcnaObject::RegisterPointer(), and SiPixelPI::zero.

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

◆ TEcnaNArrayD() [4/8]

TEcnaNArrayD::TEcnaNArrayD ( TEcnaObject pObjectManager,
Int_t  n1,
Int_t  n2 
)

Definition at line 67 of file TEcnaNArrayD.cc.

References fA, fN1, fN2, fNd, fNL, mps_fire::i, Init(), TEcnaObject::RegisterPointer(), and SiPixelPI::zero.

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

◆ TEcnaNArrayD() [5/8]

TEcnaNArrayD::TEcnaNArrayD ( TEcnaObject pObjectManager,
Int_t  n1,
Int_t  n2,
Int_t  n3 
)

Definition at line 85 of file TEcnaNArrayD.cc.

References fA, fN1, fN2, fN3, fNd, fNL, mps_fire::i, Init(), TEcnaObject::RegisterPointer(), and SiPixelPI::zero.

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

◆ TEcnaNArrayD() [6/8]

TEcnaNArrayD::TEcnaNArrayD ( TEcnaObject pObjectManager,
Int_t  n1,
Int_t  n2,
Int_t  n3,
Int_t  n4 
)

Definition at line 104 of file TEcnaNArrayD.cc.

References fA, fN1, fN2, fN3, fN4, fNd, fNL, mps_fire::i, Init(), TEcnaObject::RegisterPointer(), and SiPixelPI::zero.

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

◆ TEcnaNArrayD() [7/8]

TEcnaNArrayD::TEcnaNArrayD ( TEcnaObject pObjectManager,
Int_t  n1,
Int_t  n2,
Int_t  n3,
Int_t  n4,
Int_t  n5 
)

Definition at line 124 of file TEcnaNArrayD.cc.

References fA, fN1, fN2, fN3, fN4, fN5, fNd, fNL, mps_fire::i, Init(), TEcnaObject::RegisterPointer(), and SiPixelPI::zero.

124  {
125  //constructor for a 5 dimensional array of sizes n1,n2,n3,n4,n5. Array is put to 0
126 
127  // std::cout << "[Info Management] CLASS: TEcnaNArrayD. CREATE OBJECT: this = " << this << std::endl;
128 
129  Long_t i_this = (Long_t)this;
130  pObjectManager->RegisterPointer("TEcnaNArrayD", i_this);
131 
132  const Double_t zero = 0.0;
133  Init();
134  fNd = 5;
135  fN1 = n1;
136  fN2 = n2;
137  fN3 = n3;
138  fN4 = n4;
139  fN5 = n5;
140  fNL = n1 * n2 * n3 * n4 * n5 + 1;
141  fA = new Double_t[fNL];
142  for (Int_t i = 0; i < fNL; i++)
143  fA[i] = zero;
144 }
Bool_t RegisterPointer(const TString &, const Long_t &)
Definition: TEcnaObject.cc:100
Double_t * fA
Definition: TEcnaNArrayD.h:32

◆ TEcnaNArrayD() [8/8]

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 145 of file TEcnaNArrayD.cc.

References fA, fN1, fN2, fN3, fN4, fN5, fN6, fNd, fNL, mps_fire::i, Init(), TEcnaObject::RegisterPointer(), and SiPixelPI::zero.

145  {
146  //constructor for a 6 dimensional array of sizes n1,n2,n3,n4,n5,n6. Array is put to 0
147 
148  // std::cout << "[Info Management] CLASS: TEcnaNArrayD. CREATE OBJECT: this = " << this << std::endl;
149 
150  Long_t i_this = (Long_t)this;
151  pObjectManager->RegisterPointer("TEcnaNArrayD", i_this);
152 
153  const Double_t zero = 0.0;
154  Init();
155  fNd = 6;
156  fN1 = n1;
157  fN2 = n2;
158  fN3 = n3;
159  fN4 = n4;
160  fN5 = n5;
161  fN6 = n6;
162  fNL = n1 * n2 * n3 * n4 * n5 * n6 + 1;
163  fA = new Double_t[fNL];
164  for (Int_t i = 0; i < fNL; i++)
165  fA[i] = zero;
166 }
Bool_t RegisterPointer(const TString &, const Long_t &)
Definition: TEcnaObject.cc:100
Double_t * fA
Definition: TEcnaNArrayD.h:32

◆ ~TEcnaNArrayD()

TEcnaNArrayD::~TEcnaNArrayD ( )
override

Definition at line 168 of file TEcnaNArrayD.cc.

References Clean().

168  {
169  //destructor
170 
171  // std::cout << "[Info Management] CLASS: TEcnaNArrayD. DESTROY OBJECT: this = " << this << std::endl;
172 
173  Clean();
174 }

Member Function Documentation

◆ Clean()

void TEcnaNArrayD::Clean ( )

Definition at line 178 of file TEcnaNArrayD.cc.

References fA, and Init().

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

178  {
179  //
180  if (fA)
181  delete[] fA;
182  Init();
183 }
Double_t * fA
Definition: TEcnaNArrayD.h:32

◆ GetOverFlow()

Double_t TEcnaNArrayD::GetOverFlow ( ) const
inline

Definition at line 54 of file TEcnaNArrayD.h.

References fA, and fNL.

54 { return fA[fNL - 1]; }
Double_t * fA
Definition: TEcnaNArrayD.h:32

◆ Init()

void TEcnaNArrayD::Init ( void  )
protected

Definition at line 184 of file TEcnaNArrayD.cc.

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

Referenced by Clean(), and TEcnaNArrayD().

184  {
185  //Initialization
186  fNd = 0;
187  fN1 = 1;
188  fN2 = 1;
189  fN3 = 1;
190  fN4 = 1;
191  fN5 = 1;
192  fN6 = 1;
193  fNL = 0;
194  fA = nullptr;
195 }
Double_t * fA
Definition: TEcnaNArrayD.h:32

◆ OneDim() [1/6]

Int_t TEcnaNArrayD::OneDim ( Int_t  i1) const
inlineprotected

Definition at line 196 of file TEcnaNArrayD.cc.

References gather_cfg::cout, fNL, and testProducerWithPsetDescEmpty_cfi::i1.

Referenced by operator()().

196  {
197  //Index from 1 dimension to 1 dimension
198  if ((i1 >= fNL - 1) || (i1 < 0)) {
199  i1 = fNL - 1;
200  Error("OneDim", "Index outside bounds");
201  std::cout << "i1 = " << i1 << "; fNL = " << fNL << std::endl;
202  }
203  return i1;
204 }
edm::ErrorSummaryEntry Error

◆ OneDim() [2/6]

Int_t TEcnaNArrayD::OneDim ( Int_t  i1,
Int_t  i2 
) const
inlineprotected

Definition at line 205 of file TEcnaNArrayD.cc.

References gather_cfg::cout, fN1, fNL, mps_fire::i, testProducerWithPsetDescEmpty_cfi::i1, and testProducerWithPsetDescEmpty_cfi::i2.

205  {
206  //Index from 2 dimension to 1 dimension
207  Int_t i;
208  i = i1 + fN1 * i2;
209  if ((i >= fNL - 1) || (i < 0)) {
210  i = fNL - 1;
211  Error("OneDim", "Index outside bounds");
212  std::cout << "i1 = " << i1 << ", i2 = " << i2 << "; fN1 = " << fN1 << ", fNL = " << fNL << std::endl;
213  }
214  return i;
215 }
edm::ErrorSummaryEntry Error

◆ OneDim() [3/6]

Int_t TEcnaNArrayD::OneDim ( Int_t  i1,
Int_t  i2,
Int_t  i3 
) const
inlineprotected

Definition at line 216 of file TEcnaNArrayD.cc.

References gather_cfg::cout, fN1, fN2, fNL, mps_fire::i, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, and testProducerWithPsetDescEmpty_cfi::i3.

216  {
217  //Index from 3 dimension to 1 dimension
218  Int_t i;
219  i = i1 + fN1 * (i2 + fN2 * i3);
220  if ((i >= fNL - 1) || (i < 0)) {
221  i = fNL - 1;
222  Error("OneDim", "Index outside bounds");
223  std::cout << "i1 = " << i1 << ", i2 = " << i2 << ", i3 = " << i3 << "; fN1 = " << fN1 << ", fN2 = " << fN2
224  << ", fNL = " << fNL << std::endl;
225  }
226  return i;
227 }
edm::ErrorSummaryEntry Error

◆ OneDim() [4/6]

Int_t TEcnaNArrayD::OneDim ( Int_t  i1,
Int_t  i2,
Int_t  i3,
Int_t  i4 
) const
inlineprotected

Definition at line 228 of file TEcnaNArrayD.cc.

References fN1, fN2, fN3, fNL, mps_fire::i, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, and testProducerWithPsetDescEmpty_cfi::i3.

228  {
229  //Index from 4 dimension to 1 dimension
230  Int_t i;
231  i = i1 + fN1 * (i2 + fN2 * (i3 + fN3 * i4));
232  if ((i >= fNL - 1) || (i < 0)) {
233  i = fNL - 1;
234  Error("OneDim", "Index outside bounds");
235  }
236  return i;
237 }
edm::ErrorSummaryEntry Error

◆ OneDim() [5/6]

Int_t TEcnaNArrayD::OneDim ( Int_t  i1,
Int_t  i2,
Int_t  i3,
Int_t  i4,
Int_t  i5 
) const
inlineprotected

Definition at line 238 of file TEcnaNArrayD.cc.

References fN1, fN2, fN3, fN4, fNL, mps_fire::i, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, and testProducerWithPsetDescEmpty_cfi::i3.

238  {
239  //Index from 5 dimension to 1 dimension
240  Int_t i;
241  i = i1 + fN1 * (i2 + fN2 * (i3 + fN3 * (i4 + fN4 * i5)));
242  if ((i >= fNL - 1) || (i < 0)) {
243  i = fNL - 1;
244  Error("OneDim", "Index outside bounds");
245  }
246  return i;
247 }
edm::ErrorSummaryEntry Error

◆ OneDim() [6/6]

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 248 of file TEcnaNArrayD.cc.

References fN1, fN2, fN3, fN4, fN5, fNL, mps_fire::i, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, and testProducerWithPsetDescEmpty_cfi::i3.

248  {
249  //Index from 6 dimension to 1 dimension
250  Int_t i;
251  i = i1 + fN1 * (i2 + fN2 * (i3 + fN3 * (i4 + fN4 * (i5 + fN5 * i6))));
252  if ((i >= fNL - 1) || (i < 0)) {
253  i = fNL - 1;
254  Error("OneDim", "Index outside bounds");
255  }
256  return i;
257 }
edm::ErrorSummaryEntry Error

◆ operator()() [1/12]

const Double_t& TEcnaNArrayD::operator() ( Int_t  i1) const

◆ operator()() [2/12]

const Double_t& TEcnaNArrayD::operator() ( Int_t  i1,
Int_t  i2 
) const

◆ operator()() [3/12]

const Double_t& TEcnaNArrayD::operator() ( Int_t  i1,
Int_t  i2,
Int_t  i3 
) const

◆ operator()() [4/12]

const Double_t& TEcnaNArrayD::operator() ( Int_t  i1,
Int_t  i2,
Int_t  i3,
Int_t  i4 
) const

◆ operator()() [5/12]

const Double_t& TEcnaNArrayD::operator() ( Int_t  i1,
Int_t  i2,
Int_t  i3,
Int_t  i4,
Int_t  i5 
) const

◆ operator()() [6/12]

const Double_t& TEcnaNArrayD::operator() ( Int_t  i1,
Int_t  i2,
Int_t  i3,
Int_t  i4,
Int_t  i5,
Int_t  i6 
) const

◆ operator()() [7/12]

Double_t & TEcnaNArrayD::operator() ( Int_t  i1)

Definition at line 339 of file TEcnaNArrayD.cc.

References fA, mps_fire::i, testProducerWithPsetDescEmpty_cfi::i1, and OneDim().

339  {
340  Int_t i;
341  i = OneDim(i1);
342  return fA[i];
343 }
Int_t OneDim(Int_t) const
Double_t * fA
Definition: TEcnaNArrayD.h:32

◆ operator()() [8/12]

Double_t & TEcnaNArrayD::operator() ( Int_t  i1,
Int_t  i2 
)

◆ operator()() [9/12]

Double_t & TEcnaNArrayD::operator() ( Int_t  i1,
Int_t  i2,
Int_t  i3 
)

◆ operator()() [10/12]

Double_t & TEcnaNArrayD::operator() ( Int_t  i1,
Int_t  i2,
Int_t  i3,
Int_t  i4 
)

◆ operator()() [11/12]

Double_t & TEcnaNArrayD::operator() ( Int_t  i1,
Int_t  i2,
Int_t  i3,
Int_t  i4,
Int_t  i5 
)

◆ operator()() [12/12]

Double_t & TEcnaNArrayD::operator() ( Int_t  i1,
Int_t  i2,
Int_t  i3,
Int_t  i4,
Int_t  i5,
Int_t  i6 
)

◆ ReSet() [1/6]

void TEcnaNArrayD::ReSet ( Int_t  n1)

Definition at line 258 of file TEcnaNArrayD.cc.

References Clean(), fA, fN1, fNd, fNL, mps_fire::i, and SiPixelPI::zero.

Referenced by TEcnaResultType::SetSizeHis(), TEcnaResultType::SetSizeMat(), TEcnaResultType::TEcnaResultType(), and TEcnaRun::WriteRootFile().

258  {
259  //Reset this to be 1 dimensional of dimension n1
260  const Double_t zero = 0.0;
261  Clean();
262  fNd = 1;
263  fN1 = n1;
264  fNL = n1 + 1;
265  fA = new Double_t[fNL];
266  for (Int_t i = 0; i < fNL; i++)
267  fA[i] = zero;
268 }
Double_t * fA
Definition: TEcnaNArrayD.h:32

◆ ReSet() [2/6]

void TEcnaNArrayD::ReSet ( Int_t  n1,
Int_t  n2 
)

Definition at line 269 of file TEcnaNArrayD.cc.

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

269  {
270  //Reset this to be 2 dimensional of dimension n1,n2
271  const Double_t zero = 0.0;
272  Clean();
273  fNd = 2;
274  fN1 = n1;
275  fN2 = n2;
276  fNL = n1 * n2 + 1;
277  fA = new Double_t[fNL];
278  for (Int_t i = 0; i < fNL; i++)
279  fA[i] = zero;
280 }
Double_t * fA
Definition: TEcnaNArrayD.h:32

◆ ReSet() [3/6]

void TEcnaNArrayD::ReSet ( Int_t  n1,
Int_t  n2,
Int_t  n3 
)

Definition at line 281 of file TEcnaNArrayD.cc.

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

281  {
282  //Reset this to be 3 dimensional of dimension n1,n2,n3
283  const Double_t zero = 0.0;
284  Clean();
285  fNd = 3;
286  fN1 = n1;
287  fN2 = n2;
288  fN3 = n3;
289  fNL = n1 * n2 * n3 + 1;
290  fA = new Double_t[fNL];
291  for (Int_t i = 0; i < fNL; i++)
292  fA[i] = zero;
293 }
Double_t * fA
Definition: TEcnaNArrayD.h:32

◆ ReSet() [4/6]

void TEcnaNArrayD::ReSet ( Int_t  n1,
Int_t  n2,
Int_t  n3,
Int_t  n4 
)

Definition at line 294 of file TEcnaNArrayD.cc.

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

294  {
295  //Reset this to be 4 dimensional of dimension n1,n2,n3,n4
296  const Double_t zero = 0.0;
297  Clean();
298  fNd = 4;
299  fN1 = n1;
300  fN2 = n2;
301  fN3 = n3;
302  fN4 = n4;
303  fNL = n1 * n2 * n3 * n4 + 1;
304  fA = new Double_t[fNL];
305  for (Int_t i = 0; i < fNL; i++)
306  fA[i] = zero;
307 }
Double_t * fA
Definition: TEcnaNArrayD.h:32

◆ ReSet() [5/6]

void TEcnaNArrayD::ReSet ( Int_t  n1,
Int_t  n2,
Int_t  n3,
Int_t  n4,
Int_t  n5 
)

Definition at line 308 of file TEcnaNArrayD.cc.

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

308  {
309  //Reset this to be 5 dimensional of dimension n1,n2,n3,n4,n5
310  const Double_t zero = 0.0;
311  Clean();
312  fNd = 5;
313  fN1 = n1;
314  fN2 = n2;
315  fN3 = n3;
316  fN4 = n4;
317  fN5 = n5;
318  fNL = n1 * n2 * n3 * n4 * n5 + 1;
319  fA = new Double_t[fNL];
320  for (Int_t i = 0; i < fNL; i++)
321  fA[i] = zero;
322 }
Double_t * fA
Definition: TEcnaNArrayD.h:32

◆ ReSet() [6/6]

void TEcnaNArrayD::ReSet ( Int_t  n1,
Int_t  n2,
Int_t  n3,
Int_t  n4,
Int_t  n5,
Int_t  n6 
)

Definition at line 323 of file TEcnaNArrayD.cc.

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

323  {
324  //Reset this to be 6 dimensional of dimension n1,n2,n3,n4,n5,n6
325  const Double_t zero = 0.0;
326  Clean();
327  fNd = 6;
328  fN1 = n1;
329  fN2 = n2;
330  fN3 = n3;
331  fN4 = n4;
332  fN5 = n5;
333  fN6 = n6;
334  fNL = n1 * n2 * n3 * n4 * n5 * n6 + 1;
335  fA = new Double_t[fNL];
336  for (Int_t i = 0; i < fNL; i++)
337  fA[i] = zero;
338 }
Double_t * fA
Definition: TEcnaNArrayD.h:32

Member Data Documentation

◆ fA

Double_t* TEcnaNArrayD::fA
protected

Definition at line 32 of file TEcnaNArrayD.h.

Referenced by Clean(), GetOverFlow(), Init(), operator()(), ReSet(), and TEcnaNArrayD().

◆ fN1

Int_t TEcnaNArrayD::fN1
protected

Definition at line 25 of file TEcnaNArrayD.h.

Referenced by Init(), OneDim(), ReSet(), and TEcnaNArrayD().

◆ fN2

Int_t TEcnaNArrayD::fN2
protected

Definition at line 26 of file TEcnaNArrayD.h.

Referenced by Init(), OneDim(), ReSet(), and TEcnaNArrayD().

◆ fN3

Int_t TEcnaNArrayD::fN3
protected

Definition at line 27 of file TEcnaNArrayD.h.

Referenced by Init(), OneDim(), ReSet(), and TEcnaNArrayD().

◆ fN4

Int_t TEcnaNArrayD::fN4
protected

Definition at line 28 of file TEcnaNArrayD.h.

Referenced by Init(), OneDim(), ReSet(), and TEcnaNArrayD().

◆ fN5

Int_t TEcnaNArrayD::fN5
protected

Definition at line 29 of file TEcnaNArrayD.h.

Referenced by Init(), OneDim(), ReSet(), and TEcnaNArrayD().

◆ fN6

Int_t TEcnaNArrayD::fN6
protected

Definition at line 30 of file TEcnaNArrayD.h.

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

◆ fNd

Int_t TEcnaNArrayD::fNd
protected

Definition at line 24 of file TEcnaNArrayD.h.

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

◆ fNL

Int_t TEcnaNArrayD::fNL
protected

Definition at line 31 of file TEcnaNArrayD.h.

Referenced by GetOverFlow(), Init(), OneDim(), ReSet(), and TEcnaNArrayD().