#include <TEcnaObject.h>
----------------------------------------------------------- TEcnaObject.h Update: 15/02/2011 Author: B.Fabbro (bernard.fabbro@cea.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 -----------------------------------------------------------
ECNA object management
Definition at line 25 of file TEcnaObject.h.
TEcnaObject::TEcnaObject | ( | ) |
Definition at line 28 of file TEcnaObject.cc.
References Init(), and NumberCreateObjectMessage().
{ // Constructor without argument // cout << "[Info Management] CLASS: TEcnaObject. CREATE OBJECT: this = " << this << endl; Long_t PointerValue = (Long_t)this; Int_t un = 1; NumberCreateObjectMessage("TEcnaObject", PointerValue, un); Init(); }
virtual TEcnaObject::~TEcnaObject | ( | ) | [virtual] |
Long_t TEcnaObject::GetPointerValue | ( | const TString | ClassName | ) |
Definition at line 229 of file TEcnaObject.cc.
References fCounterReusingTEcnaGui, fCounterReusingTEcnaHeader, fCounterReusingTEcnaHistos, fCounterReusingTEcnaNArrayD, fCounterReusingTEcnaNumbering, fCounterReusingTEcnaParCout, fCounterReusingTEcnaParEcal, fCounterReusingTEcnaParHistos, fCounterReusingTEcnaParPaths, fCounterReusingTEcnaRead, fCounterReusingTEcnaResultType, fCounterReusingTEcnaRootFile, fCounterReusingTEcnaRun, fCounterReusingTEcnaWrite, fObjectTEcnaGui, fObjectTEcnaHeader, fObjectTEcnaHistos, fObjectTEcnaNArrayD, fObjectTEcnaNumbering, fObjectTEcnaParCout, fObjectTEcnaParEcal, fObjectTEcnaParHistos, fObjectTEcnaParPaths, fObjectTEcnaRead, fObjectTEcnaResultType, fObjectTEcnaRootFile, fObjectTEcnaRun, fObjectTEcnaWrite, and NumberReuseObjectMessage().
Referenced by TEcnaRead::OpenRootFile(), TEcnaRun::OpenRootFile(), TEcnaGui::TEcnaGui(), TEcnaHistos::TEcnaHistos(), TEcnaNumbering::TEcnaNumbering(), TEcnaParHistos::TEcnaParHistos(), TEcnaRead::TEcnaRead(), TEcnaRun::TEcnaRun(), and TEcnaWrite::TEcnaWrite().
{ Long_t PointerValue = 0; if( ClassName == "TEcnaGui" ) { PointerValue = fObjectTEcnaGui; fCounterReusingTEcnaGui++; NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaGui); } if( ClassName == "TEcnaHeader" ) { PointerValue = fObjectTEcnaHeader; fCounterReusingTEcnaHeader++; NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaHeader); } if( ClassName == "TEcnaHistos" ) { PointerValue = fObjectTEcnaHistos; fCounterReusingTEcnaHistos++; NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaHistos); } if( ClassName == "TEcnaNArrayD" ) { PointerValue = fObjectTEcnaNArrayD; fCounterReusingTEcnaNArrayD++; NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaNArrayD); } if( ClassName == "TEcnaNumbering" ) { PointerValue = fObjectTEcnaNumbering; fCounterReusingTEcnaNumbering++; NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaNumbering); } if( ClassName == "TEcnaParCout" ) { PointerValue = fObjectTEcnaParCout; fCounterReusingTEcnaParCout++; NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaParCout); } if( ClassName == "TEcnaParEcal" ) { PointerValue = fObjectTEcnaParEcal; fCounterReusingTEcnaParEcal++; NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaParEcal); } if( ClassName == "TEcnaParHistos" ) { PointerValue = fObjectTEcnaParHistos; fCounterReusingTEcnaParHistos++; NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaParHistos); } if( ClassName == "TEcnaParPaths" ) { PointerValue = fObjectTEcnaParPaths; fCounterReusingTEcnaParPaths++; NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaParPaths); } if( ClassName == "TEcnaRead" ) { PointerValue = fObjectTEcnaRead; fCounterReusingTEcnaRead++; NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaRead); } if( ClassName == "TEcnaResultType" ) { PointerValue = fObjectTEcnaResultType; fCounterReusingTEcnaResultType++; NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaResultType); } if( ClassName == "TEcnaRootFile" ) { PointerValue = fObjectTEcnaRootFile; fCounterReusingTEcnaRootFile++; NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaRootFile); } if( ClassName == "TEcnaRun" ) { PointerValue = fObjectTEcnaRun; fCounterReusingTEcnaRun++; NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaRun); } if( ClassName == "TEcnaWrite" ) { PointerValue = fObjectTEcnaWrite; fCounterReusingTEcnaWrite++; NumberReuseObjectMessage(ClassName.Data(), PointerValue, fCounterReusingTEcnaWrite); } return PointerValue; }
void TEcnaObject::Init | ( | void | ) |
Definition at line 42 of file TEcnaObject.cc.
References fCounterCreateTEcnaGui, fCounterCreateTEcnaHeader, fCounterCreateTEcnaHistos, fCounterCreateTEcnaNArrayD, fCounterCreateTEcnaNumbering, fCounterCreateTEcnaParCout, fCounterCreateTEcnaParEcal, fCounterCreateTEcnaParHistos, fCounterCreateTEcnaRead, fCounterCreateTEcnaResultType, fCounterCreateTEcnaRootFile, fCounterCreateTEcnaRun, fCounterCreateTEcnaWrite, fCounterReusingTEcnaGui, fCounterReusingTEcnaHeader, fCounterReusingTEcnaHistos, fCounterReusingTEcnaNArrayD, fCounterReusingTEcnaNumbering, fCounterReusingTEcnaParCout, fCounterReusingTEcnaParEcal, fCounterReusingTEcnaParHistos, fCounterReusingTEcnaRead, fCounterReusingTEcnaResultType, fCounterReusingTEcnaRootFile, fCounterReusingTEcnaRun, fCounterReusingTEcnaWrite, fgMaxCar, fObjectTEcnaGui, fObjectTEcnaHeader, fObjectTEcnaHistos, fObjectTEcnaNArrayD, fObjectTEcnaNumbering, fObjectTEcnaParCout, fObjectTEcnaParEcal, fObjectTEcnaParHistos, fObjectTEcnaRead, fObjectTEcnaResultType, fObjectTEcnaRootFile, fObjectTEcnaRun, fObjectTEcnaWrite, and fTTBELL.
Referenced by TEcnaObject().
{ fgMaxCar = 512; fTTBELL = '\007'; //................ Init pointers to TEcna Objects fObjectTEcnaGui = 0; fObjectTEcnaHeader = 0; fObjectTEcnaHistos = 0; fObjectTEcnaNArrayD = 0; fObjectTEcnaNumbering = 0; fObjectTEcnaParCout = 0; fObjectTEcnaParEcal = 0; fObjectTEcnaParHistos = 0; fObjectTEcnaRead = 0; fObjectTEcnaResultType = 0; fObjectTEcnaRootFile = 0; fObjectTEcnaRun = 0; fObjectTEcnaWrite = 0; //................ Init counters of TEcna Object creation fCounterCreateTEcnaGui = 0; fCounterCreateTEcnaHeader = 0; fCounterCreateTEcnaHistos = 0; fCounterCreateTEcnaNArrayD = 0; fCounterCreateTEcnaNumbering = 0; fCounterCreateTEcnaParCout = 0; fCounterCreateTEcnaParEcal = 0; fCounterCreateTEcnaParHistos = 0; fCounterCreateTEcnaRead = 0; fCounterCreateTEcnaResultType = 0; fCounterCreateTEcnaRootFile = 0; fCounterCreateTEcnaRun = 0; fCounterCreateTEcnaWrite = 0; //................ Init counters of TEcna Object re-using fCounterReusingTEcnaGui = 0; fCounterReusingTEcnaHeader = 0; fCounterReusingTEcnaHistos = 0; fCounterReusingTEcnaNArrayD = 0; fCounterReusingTEcnaNumbering = 0; fCounterReusingTEcnaParCout = 0; fCounterReusingTEcnaParEcal = 0; fCounterReusingTEcnaParHistos = 0; fCounterReusingTEcnaRead = 0; fCounterReusingTEcnaResultType = 0; fCounterReusingTEcnaRootFile = 0; fCounterReusingTEcnaRun = 0; fCounterReusingTEcnaWrite = 0; }// end of Init()
void TEcnaObject::NumberCreateObjectMessage | ( | const TString | ClassName, |
const Long_t & | PointerValue, | ||
const Int_t & | NbOfObjects | ||
) |
Definition at line 334 of file TEcnaObject.cc.
References gather_cfg::cout.
Referenced by RegisterPointer(), and TEcnaObject().
{ #define NOCM #ifndef NOCM cout << "*TEcnaObject::NumberCreateObjectMessage(...)> New ECNA object (pointer = " << PointerValue << ") from TEcnaObject " << this << ". Object# = " << setw(8) << NbOfObjects << ", Class: " << ClassName; if( NbOfObjects > 1 ){cout << " (INFO: more than 1 object)";} cout << endl; #endif // NOCM }
void TEcnaObject::NumberReuseObjectMessage | ( | const TString | ClassName, |
const Long_t & | PointerValue, | ||
const Int_t & | NbOfObjects | ||
) |
Definition at line 347 of file TEcnaObject.cc.
References gather_cfg::cout.
Referenced by GetPointerValue().
Bool_t TEcnaObject::RegisterPointer | ( | const TString | ClassName, |
const Long_t & | PointerValue | ||
) |
Definition at line 102 of file TEcnaObject.cc.
References gather_cfg::cout, fCounterCreateTEcnaGui, fCounterCreateTEcnaHeader, fCounterCreateTEcnaHistos, fCounterCreateTEcnaNArrayD, fCounterCreateTEcnaNumbering, fCounterCreateTEcnaParCout, fCounterCreateTEcnaParEcal, fCounterCreateTEcnaParHistos, fCounterCreateTEcnaParPaths, fCounterCreateTEcnaRead, fCounterCreateTEcnaResultType, fCounterCreateTEcnaRootFile, fCounterCreateTEcnaRun, fCounterCreateTEcnaWrite, fObjectTEcnaGui, fObjectTEcnaHeader, fObjectTEcnaHistos, fObjectTEcnaNArrayD, fObjectTEcnaNumbering, fObjectTEcnaParCout, fObjectTEcnaParEcal, fObjectTEcnaParHistos, fObjectTEcnaParPaths, fObjectTEcnaRead, fObjectTEcnaResultType, fObjectTEcnaRootFile, fObjectTEcnaRun, fObjectTEcnaWrite, fTTBELL, and NumberCreateObjectMessage().
Referenced by TEcnaGui::TEcnaGui(), TEcnaHeader::TEcnaHeader(), TEcnaHistos::TEcnaHistos(), TEcnaNArrayD::TEcnaNArrayD(), TEcnaNumbering::TEcnaNumbering(), TEcnaParCout::TEcnaParCout(), TEcnaParEcal::TEcnaParEcal(), TEcnaParHistos::TEcnaParHistos(), TEcnaParPaths::TEcnaParPaths(), TEcnaRead::TEcnaRead(), TEcnaResultType::TEcnaResultType(), TEcnaRootFile::TEcnaRootFile(), TEcnaRun::TEcnaRun(), and TEcnaWrite::TEcnaWrite().
{ Bool_t ClassFound = kFALSE; if( ClassName == "TEcnaGui" ) { ClassFound = kTRUE; fObjectTEcnaGui = PointerValue; fCounterCreateTEcnaGui++; NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaGui); } if( ClassName == "TEcnaHeader" ) { ClassFound = kTRUE; fObjectTEcnaHeader = PointerValue; fCounterCreateTEcnaHeader++; NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaHeader); } if( ClassName == "TEcnaHistos" ) { ClassFound = kTRUE; fObjectTEcnaHistos = PointerValue; fCounterCreateTEcnaHistos++; NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaHistos); } if( ClassName == "TEcnaNArrayD" ) { ClassFound = kTRUE; fObjectTEcnaNArrayD = PointerValue; fCounterCreateTEcnaNArrayD++; NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaNArrayD); } if( ClassName == "TEcnaNumbering" ) { ClassFound = kTRUE; fObjectTEcnaNumbering = PointerValue; fCounterCreateTEcnaNumbering++; NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaNumbering); } if( ClassName == "TEcnaParCout" ) { ClassFound = kTRUE; fObjectTEcnaParCout = PointerValue; fCounterCreateTEcnaParCout++; NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaParCout); } if( ClassName == "TEcnaParEcal" ) { ClassFound = kTRUE; fObjectTEcnaParEcal = PointerValue; fCounterCreateTEcnaParEcal++; NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaParEcal); } if( ClassName == "TEcnaParHistos" ) { ClassFound = kTRUE; fObjectTEcnaParHistos = PointerValue; fCounterCreateTEcnaParHistos++; NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaParHistos); } if( ClassName == "TEcnaParPaths" ) { ClassFound = kTRUE; fObjectTEcnaParPaths = PointerValue; fCounterCreateTEcnaParPaths++; NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaParPaths); } if( ClassName == "TEcnaRead" ) { ClassFound = kTRUE; fObjectTEcnaRead = PointerValue; fCounterCreateTEcnaRead++; NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaRead); } if( ClassName == "TEcnaResultType" ) { ClassFound = kTRUE; fObjectTEcnaResultType = PointerValue; fCounterCreateTEcnaResultType++; NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaResultType); } if( ClassName == "TEcnaRootFile" ) { ClassFound = kTRUE; fObjectTEcnaRootFile = PointerValue; fCounterCreateTEcnaRootFile++; NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaRootFile); } if( ClassName == "TEcnaRun" ) { ClassFound = kTRUE; fObjectTEcnaRun = PointerValue; fCounterCreateTEcnaRun++; NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaRun); } if( ClassName == "TEcnaWrite" ) { ClassFound = kTRUE; fObjectTEcnaWrite = PointerValue; fCounterCreateTEcnaWrite++; NumberCreateObjectMessage(ClassName.Data(), PointerValue, fCounterCreateTEcnaWrite); } //......................................................................................... if( ClassFound == kFALSE ) { cout << "!TEcnaObject::RegisterPointer(...)> Class " << ClassName << " not found." << fTTBELL << endl; } return ClassFound; } // end of RegisterPointer(...)
Int_t TEcnaObject::fCounterCreateTEcnaGui [private] |
Definition at line 52 of file TEcnaObject.h.
Referenced by Init(), and RegisterPointer().
Int_t TEcnaObject::fCounterCreateTEcnaHeader [private] |
Definition at line 53 of file TEcnaObject.h.
Referenced by Init(), and RegisterPointer().
Int_t TEcnaObject::fCounterCreateTEcnaHistos [private] |
Definition at line 54 of file TEcnaObject.h.
Referenced by Init(), and RegisterPointer().
Int_t TEcnaObject::fCounterCreateTEcnaNArrayD [private] |
Definition at line 55 of file TEcnaObject.h.
Referenced by Init(), and RegisterPointer().
Int_t TEcnaObject::fCounterCreateTEcnaNumbering [private] |
Definition at line 56 of file TEcnaObject.h.
Referenced by Init(), and RegisterPointer().
Int_t TEcnaObject::fCounterCreateTEcnaParCout [private] |
Definition at line 57 of file TEcnaObject.h.
Referenced by Init(), and RegisterPointer().
Int_t TEcnaObject::fCounterCreateTEcnaParEcal [private] |
Definition at line 58 of file TEcnaObject.h.
Referenced by Init(), and RegisterPointer().
Int_t TEcnaObject::fCounterCreateTEcnaParHistos [private] |
Definition at line 59 of file TEcnaObject.h.
Referenced by Init(), and RegisterPointer().
Int_t TEcnaObject::fCounterCreateTEcnaParPaths [private] |
Definition at line 60 of file TEcnaObject.h.
Referenced by RegisterPointer().
Int_t TEcnaObject::fCounterCreateTEcnaRead [private] |
Definition at line 61 of file TEcnaObject.h.
Referenced by Init(), and RegisterPointer().
Int_t TEcnaObject::fCounterCreateTEcnaResultType [private] |
Definition at line 62 of file TEcnaObject.h.
Referenced by Init(), and RegisterPointer().
Int_t TEcnaObject::fCounterCreateTEcnaRootFile [private] |
Definition at line 63 of file TEcnaObject.h.
Referenced by Init(), and RegisterPointer().
Int_t TEcnaObject::fCounterCreateTEcnaRun [private] |
Definition at line 64 of file TEcnaObject.h.
Referenced by Init(), and RegisterPointer().
Int_t TEcnaObject::fCounterCreateTEcnaWrite [private] |
Definition at line 65 of file TEcnaObject.h.
Referenced by Init(), and RegisterPointer().
Int_t TEcnaObject::fCounterReusingTEcnaGui [private] |
Definition at line 68 of file TEcnaObject.h.
Referenced by GetPointerValue(), and Init().
Int_t TEcnaObject::fCounterReusingTEcnaHeader [private] |
Definition at line 69 of file TEcnaObject.h.
Referenced by GetPointerValue(), and Init().
Int_t TEcnaObject::fCounterReusingTEcnaHistos [private] |
Definition at line 70 of file TEcnaObject.h.
Referenced by GetPointerValue(), and Init().
Int_t TEcnaObject::fCounterReusingTEcnaNArrayD [private] |
Definition at line 71 of file TEcnaObject.h.
Referenced by GetPointerValue(), and Init().
Int_t TEcnaObject::fCounterReusingTEcnaNumbering [private] |
Definition at line 72 of file TEcnaObject.h.
Referenced by GetPointerValue(), and Init().
Int_t TEcnaObject::fCounterReusingTEcnaParCout [private] |
Definition at line 73 of file TEcnaObject.h.
Referenced by GetPointerValue(), and Init().
Int_t TEcnaObject::fCounterReusingTEcnaParEcal [private] |
Definition at line 74 of file TEcnaObject.h.
Referenced by GetPointerValue(), and Init().
Int_t TEcnaObject::fCounterReusingTEcnaParHistos [private] |
Definition at line 75 of file TEcnaObject.h.
Referenced by GetPointerValue(), and Init().
Int_t TEcnaObject::fCounterReusingTEcnaParPaths [private] |
Definition at line 76 of file TEcnaObject.h.
Referenced by GetPointerValue().
Int_t TEcnaObject::fCounterReusingTEcnaRead [private] |
Definition at line 77 of file TEcnaObject.h.
Referenced by GetPointerValue(), and Init().
Int_t TEcnaObject::fCounterReusingTEcnaResultType [private] |
Definition at line 78 of file TEcnaObject.h.
Referenced by GetPointerValue(), and Init().
Int_t TEcnaObject::fCounterReusingTEcnaRootFile [private] |
Definition at line 79 of file TEcnaObject.h.
Referenced by GetPointerValue(), and Init().
Int_t TEcnaObject::fCounterReusingTEcnaRun [private] |
Definition at line 80 of file TEcnaObject.h.
Referenced by GetPointerValue(), and Init().
Int_t TEcnaObject::fCounterReusingTEcnaWrite [private] |
Definition at line 81 of file TEcnaObject.h.
Referenced by GetPointerValue(), and Init().
Int_t TEcnaObject::fgMaxCar [private] |
Definition at line 31 of file TEcnaObject.h.
Referenced by Init().
Long_t TEcnaObject::fObjectTEcnaGui [private] |
Definition at line 36 of file TEcnaObject.h.
Referenced by GetPointerValue(), Init(), and RegisterPointer().
Long_t TEcnaObject::fObjectTEcnaHeader [private] |
Definition at line 37 of file TEcnaObject.h.
Referenced by GetPointerValue(), Init(), and RegisterPointer().
Long_t TEcnaObject::fObjectTEcnaHistos [private] |
Definition at line 38 of file TEcnaObject.h.
Referenced by GetPointerValue(), Init(), and RegisterPointer().
Long_t TEcnaObject::fObjectTEcnaNArrayD [private] |
Definition at line 39 of file TEcnaObject.h.
Referenced by GetPointerValue(), Init(), and RegisterPointer().
Long_t TEcnaObject::fObjectTEcnaNumbering [private] |
Definition at line 40 of file TEcnaObject.h.
Referenced by GetPointerValue(), Init(), and RegisterPointer().
Long_t TEcnaObject::fObjectTEcnaParCout [private] |
Definition at line 41 of file TEcnaObject.h.
Referenced by GetPointerValue(), Init(), and RegisterPointer().
Long_t TEcnaObject::fObjectTEcnaParEcal [private] |
Definition at line 42 of file TEcnaObject.h.
Referenced by GetPointerValue(), Init(), and RegisterPointer().
Long_t TEcnaObject::fObjectTEcnaParHistos [private] |
Definition at line 43 of file TEcnaObject.h.
Referenced by GetPointerValue(), Init(), and RegisterPointer().
Long_t TEcnaObject::fObjectTEcnaParPaths [private] |
Definition at line 44 of file TEcnaObject.h.
Referenced by GetPointerValue(), and RegisterPointer().
Long_t TEcnaObject::fObjectTEcnaRead [private] |
Definition at line 45 of file TEcnaObject.h.
Referenced by GetPointerValue(), Init(), and RegisterPointer().
Long_t TEcnaObject::fObjectTEcnaResultType [private] |
Definition at line 46 of file TEcnaObject.h.
Referenced by GetPointerValue(), Init(), and RegisterPointer().
Long_t TEcnaObject::fObjectTEcnaRootFile [private] |
Definition at line 47 of file TEcnaObject.h.
Referenced by GetPointerValue(), Init(), and RegisterPointer().
Long_t TEcnaObject::fObjectTEcnaRun [private] |
Definition at line 48 of file TEcnaObject.h.
Referenced by GetPointerValue(), Init(), and RegisterPointer().
Long_t TEcnaObject::fObjectTEcnaWrite [private] |
Definition at line 49 of file TEcnaObject.h.
Referenced by GetPointerValue(), Init(), and RegisterPointer().
TString TEcnaObject::fTTBELL [private] |
Definition at line 33 of file TEcnaObject.h.
Referenced by Init(), and RegisterPointer().