35 Long_t PointerValue = (Long_t)
this;
37 NumberCreateObjectMessage(
"TEcnaObject", PointerValue, un);
50 fObjectTEcnaHeader = 0;
51 fObjectTEcnaHistos = 0;
52 fObjectTEcnaNArrayD = 0;
53 fObjectTEcnaNumbering = 0;
54 fObjectTEcnaParCout = 0;
55 fObjectTEcnaParEcal = 0;
56 fObjectTEcnaParHistos = 0;
58 fObjectTEcnaResultType = 0;
59 fObjectTEcnaRootFile = 0;
61 fObjectTEcnaWrite = 0;
64 fCounterCreateTEcnaGui = 0;
65 fCounterCreateTEcnaHeader = 0;
66 fCounterCreateTEcnaHistos = 0;
67 fCounterCreateTEcnaNArrayD = 0;
68 fCounterCreateTEcnaNumbering = 0;
69 fCounterCreateTEcnaParCout = 0;
70 fCounterCreateTEcnaParEcal = 0;
71 fCounterCreateTEcnaParHistos = 0;
72 fCounterCreateTEcnaRead = 0;
73 fCounterCreateTEcnaResultType = 0;
74 fCounterCreateTEcnaRootFile = 0;
75 fCounterCreateTEcnaRun = 0;
76 fCounterCreateTEcnaWrite = 0;
79 fCounterReusingTEcnaGui = 0;
80 fCounterReusingTEcnaHeader = 0;
81 fCounterReusingTEcnaHistos = 0;
82 fCounterReusingTEcnaNArrayD = 0;
83 fCounterReusingTEcnaNumbering = 0;
84 fCounterReusingTEcnaParCout = 0;
85 fCounterReusingTEcnaParEcal = 0;
86 fCounterReusingTEcnaParHistos = 0;
87 fCounterReusingTEcnaRead = 0;
88 fCounterReusingTEcnaResultType = 0;
89 fCounterReusingTEcnaRootFile = 0;
90 fCounterReusingTEcnaRun = 0;
91 fCounterReusingTEcnaWrite = 0;
105 Bool_t ClassFound = kFALSE;
107 if( ClassName ==
"TEcnaGui" )
110 fObjectTEcnaGui = PointerValue;
111 fCounterCreateTEcnaGui++;
112 NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaGui);
115 if( ClassName ==
"TEcnaHeader" )
118 fObjectTEcnaHeader = PointerValue;
119 fCounterCreateTEcnaHeader++;
120 NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaHeader);
123 if( ClassName ==
"TEcnaHistos" )
126 fObjectTEcnaHistos = PointerValue;
127 fCounterCreateTEcnaHistos++;
128 NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaHistos);
131 if( ClassName ==
"TEcnaNArrayD" )
134 fObjectTEcnaNArrayD = PointerValue;
135 fCounterCreateTEcnaNArrayD++;
136 NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaNArrayD);
139 if( ClassName ==
"TEcnaNumbering" )
142 fObjectTEcnaNumbering = PointerValue;
143 fCounterCreateTEcnaNumbering++;
144 NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaNumbering);
147 if( ClassName ==
"TEcnaParCout" )
150 fObjectTEcnaParCout = PointerValue;
151 fCounterCreateTEcnaParCout++;
152 NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaParCout);
155 if( ClassName ==
"TEcnaParEcal" )
158 fObjectTEcnaParEcal = PointerValue;
159 fCounterCreateTEcnaParEcal++;
160 NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaParEcal);
163 if( ClassName ==
"TEcnaParHistos" )
166 fObjectTEcnaParHistos = PointerValue;
167 fCounterCreateTEcnaParHistos++;
168 NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaParHistos);
171 if( ClassName ==
"TEcnaParPaths" )
174 fObjectTEcnaParPaths = PointerValue;
175 fCounterCreateTEcnaParPaths++;
176 NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaParPaths);
179 if( ClassName ==
"TEcnaRead" )
182 fObjectTEcnaRead = PointerValue;
183 fCounterCreateTEcnaRead++;
184 NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaRead);
187 if( ClassName ==
"TEcnaResultType" )
190 fObjectTEcnaResultType = PointerValue;
191 fCounterCreateTEcnaResultType++;
192 NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaResultType);
195 if( ClassName ==
"TEcnaRootFile" )
198 fObjectTEcnaRootFile = PointerValue;
199 fCounterCreateTEcnaRootFile++;
200 NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaRootFile);
203 if( ClassName ==
"TEcnaRun" )
206 fObjectTEcnaRun = PointerValue;
207 fCounterCreateTEcnaRun++;
208 NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaRun);
211 if( ClassName ==
"TEcnaWrite" )
214 fObjectTEcnaWrite = PointerValue;
215 fCounterCreateTEcnaWrite++;
216 NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaWrite);
220 if( ClassFound == kFALSE )
222 cout <<
"!TEcnaObject::RegisterPointer(...)> Class " << ClassName
223 <<
" not found." << fTTBELL << endl;
232 Long_t PointerValue = 0;
234 if( ClassName ==
"TEcnaGui" )
236 PointerValue = fObjectTEcnaGui;
237 fCounterReusingTEcnaGui++;
238 NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaGui);
241 if( ClassName ==
"TEcnaHeader" )
243 PointerValue = fObjectTEcnaHeader;
244 fCounterReusingTEcnaHeader++;
245 NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaHeader);
248 if( ClassName ==
"TEcnaHistos" )
250 PointerValue = fObjectTEcnaHistos;
251 fCounterReusingTEcnaHistos++;
252 NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaHistos);
255 if( ClassName ==
"TEcnaNArrayD" )
257 PointerValue = fObjectTEcnaNArrayD;
258 fCounterReusingTEcnaNArrayD++;
259 NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaNArrayD);
262 if( ClassName ==
"TEcnaNumbering" )
264 PointerValue = fObjectTEcnaNumbering;
265 fCounterReusingTEcnaNumbering++;
266 NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaNumbering);
269 if( ClassName ==
"TEcnaParCout" )
271 PointerValue = fObjectTEcnaParCout;
272 fCounterReusingTEcnaParCout++;
273 NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaParCout);
276 if( ClassName ==
"TEcnaParEcal" )
278 PointerValue = fObjectTEcnaParEcal;
279 fCounterReusingTEcnaParEcal++;
280 NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaParEcal);
283 if( ClassName ==
"TEcnaParHistos" )
285 PointerValue = fObjectTEcnaParHistos;
286 fCounterReusingTEcnaParHistos++;
287 NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaParHistos);
290 if( ClassName ==
"TEcnaParPaths" )
292 PointerValue = fObjectTEcnaParPaths;
293 fCounterReusingTEcnaParPaths++;
294 NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaParPaths);
297 if( ClassName ==
"TEcnaRead" )
299 PointerValue = fObjectTEcnaRead;
300 fCounterReusingTEcnaRead++;
301 NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaRead);
304 if( ClassName ==
"TEcnaResultType" )
306 PointerValue = fObjectTEcnaResultType;
307 fCounterReusingTEcnaResultType++;
308 NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaResultType);
311 if( ClassName ==
"TEcnaRootFile" )
313 PointerValue = fObjectTEcnaRootFile;
314 fCounterReusingTEcnaRootFile++;
315 NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaRootFile);
318 if( ClassName ==
"TEcnaRun" )
320 PointerValue = fObjectTEcnaRun;
321 fCounterReusingTEcnaRun++;
322 NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaRun);
325 if( ClassName ==
"TEcnaWrite" )
327 PointerValue = fObjectTEcnaWrite;
328 fCounterReusingTEcnaWrite++;
329 NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaWrite);
339 cout <<
"*TEcnaObject::NumberCreateObjectMessage(...)> New ECNA object (pointer = "
340 << PointerValue <<
") from TEcnaObject " <<
this
341 <<
". Object# = " << setw(8) << NbOfObjects
342 <<
", Class: " << ClassName;
343 if( NbOfObjects > 1 ){
cout <<
" (INFO: more than 1 object)";}
352 if( PointerValue != 0 )
354 cout <<
"*TEcnaObject::GetPointerValue(...)> INFO: pointer " << PointerValue
355 <<
" used again from TEcnaObject " <<
this
356 <<
". " << setw(8) << NbOfObjects <<
" times, class: " << ClassName;
Bool_t RegisterPointer(const TString &, const Long_t &)
void NumberCreateObjectMessage(const TString &, const Long_t &, const Int_t &)
void NumberReuseObjectMessage(const TString &, const Long_t &, const Int_t &)
Long_t GetPointerValue(const TString &)