CMS 3D CMS Logo

Public Member Functions | Private Attributes

TEcnaObject Class Reference

#include <TEcnaObject.h>

List of all members.

Public Member Functions

Long_t GetPointerValue (const TString)
void Init ()
void NumberCreateObjectMessage (const TString, const Long_t &, const Int_t &)
void NumberReuseObjectMessage (const TString, const Long_t &, const Int_t &)
Bool_t RegisterPointer (const TString, const Long_t &)
 TEcnaObject ()
virtual ~TEcnaObject ()

Private Attributes

Int_t fCounterCreateTEcnaGui
Int_t fCounterCreateTEcnaHeader
Int_t fCounterCreateTEcnaHistos
Int_t fCounterCreateTEcnaNArrayD
Int_t fCounterCreateTEcnaNumbering
Int_t fCounterCreateTEcnaParCout
Int_t fCounterCreateTEcnaParEcal
Int_t fCounterCreateTEcnaParHistos
Int_t fCounterCreateTEcnaParPaths
Int_t fCounterCreateTEcnaRead
Int_t fCounterCreateTEcnaResultType
Int_t fCounterCreateTEcnaRootFile
Int_t fCounterCreateTEcnaRun
Int_t fCounterCreateTEcnaWrite
Int_t fCounterReusingTEcnaGui
Int_t fCounterReusingTEcnaHeader
Int_t fCounterReusingTEcnaHistos
Int_t fCounterReusingTEcnaNArrayD
Int_t fCounterReusingTEcnaNumbering
Int_t fCounterReusingTEcnaParCout
Int_t fCounterReusingTEcnaParEcal
Int_t fCounterReusingTEcnaParHistos
Int_t fCounterReusingTEcnaParPaths
Int_t fCounterReusingTEcnaRead
Int_t fCounterReusingTEcnaResultType
Int_t fCounterReusingTEcnaRootFile
Int_t fCounterReusingTEcnaRun
Int_t fCounterReusingTEcnaWrite
Int_t fgMaxCar
Long_t fObjectTEcnaGui
Long_t fObjectTEcnaHeader
Long_t fObjectTEcnaHistos
Long_t fObjectTEcnaNArrayD
Long_t fObjectTEcnaNumbering
Long_t fObjectTEcnaParCout
Long_t fObjectTEcnaParEcal
Long_t fObjectTEcnaParHistos
Long_t fObjectTEcnaParPaths
Long_t fObjectTEcnaRead
Long_t fObjectTEcnaResultType
Long_t fObjectTEcnaRootFile
Long_t fObjectTEcnaRun
Long_t fObjectTEcnaWrite
TString fTTBELL

Detailed Description

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


Constructor & Destructor Documentation

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]

Member Function Documentation

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

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

{
#define NOCR
#ifndef NOCR
  if( PointerValue != 0 )
    {
      cout << "*TEcnaObject::GetPointerValue(...)> INFO: pointer " << PointerValue
           << " used again from TEcnaObject " << this
           << ". " << setw(8) << NbOfObjects << " times, class: " << ClassName;
    }
  cout << endl;
#endif // NOCR
}
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(...)

Member Data Documentation

Definition at line 52 of file TEcnaObject.h.

Referenced by Init(), and RegisterPointer().

Definition at line 53 of file TEcnaObject.h.

Referenced by Init(), and RegisterPointer().

Definition at line 54 of file TEcnaObject.h.

Referenced by Init(), and RegisterPointer().

Definition at line 55 of file TEcnaObject.h.

Referenced by Init(), and RegisterPointer().

Definition at line 56 of file TEcnaObject.h.

Referenced by Init(), and RegisterPointer().

Definition at line 57 of file TEcnaObject.h.

Referenced by Init(), and RegisterPointer().

Definition at line 58 of file TEcnaObject.h.

Referenced by Init(), and RegisterPointer().

Definition at line 59 of file TEcnaObject.h.

Referenced by Init(), and RegisterPointer().

Definition at line 60 of file TEcnaObject.h.

Referenced by RegisterPointer().

Definition at line 61 of file TEcnaObject.h.

Referenced by Init(), and RegisterPointer().

Definition at line 62 of file TEcnaObject.h.

Referenced by Init(), and RegisterPointer().

Definition at line 63 of file TEcnaObject.h.

Referenced by Init(), and RegisterPointer().

Definition at line 64 of file TEcnaObject.h.

Referenced by Init(), and RegisterPointer().

Definition at line 65 of file TEcnaObject.h.

Referenced by Init(), and RegisterPointer().

Definition at line 68 of file TEcnaObject.h.

Referenced by GetPointerValue(), and Init().

Definition at line 69 of file TEcnaObject.h.

Referenced by GetPointerValue(), and Init().

Definition at line 70 of file TEcnaObject.h.

Referenced by GetPointerValue(), and Init().

Definition at line 71 of file TEcnaObject.h.

Referenced by GetPointerValue(), and Init().

Definition at line 72 of file TEcnaObject.h.

Referenced by GetPointerValue(), and Init().

Definition at line 73 of file TEcnaObject.h.

Referenced by GetPointerValue(), and Init().

Definition at line 74 of file TEcnaObject.h.

Referenced by GetPointerValue(), and Init().

Definition at line 75 of file TEcnaObject.h.

Referenced by GetPointerValue(), and Init().

Definition at line 76 of file TEcnaObject.h.

Referenced by GetPointerValue().

Definition at line 77 of file TEcnaObject.h.

Referenced by GetPointerValue(), and Init().

Definition at line 78 of file TEcnaObject.h.

Referenced by GetPointerValue(), and Init().

Definition at line 79 of file TEcnaObject.h.

Referenced by GetPointerValue(), and Init().

Definition at line 80 of file TEcnaObject.h.

Referenced by GetPointerValue(), and Init().

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

Definition at line 37 of file TEcnaObject.h.

Referenced by GetPointerValue(), Init(), and RegisterPointer().

Definition at line 38 of file TEcnaObject.h.

Referenced by GetPointerValue(), Init(), and RegisterPointer().

Definition at line 39 of file TEcnaObject.h.

Referenced by GetPointerValue(), Init(), and RegisterPointer().

Definition at line 40 of file TEcnaObject.h.

Referenced by GetPointerValue(), Init(), and RegisterPointer().

Definition at line 41 of file TEcnaObject.h.

Referenced by GetPointerValue(), Init(), and RegisterPointer().

Definition at line 42 of file TEcnaObject.h.

Referenced by GetPointerValue(), Init(), and RegisterPointer().

Definition at line 43 of file TEcnaObject.h.

Referenced by GetPointerValue(), Init(), and RegisterPointer().

Definition at line 44 of file TEcnaObject.h.

Referenced by GetPointerValue(), and RegisterPointer().

Definition at line 45 of file TEcnaObject.h.

Referenced by GetPointerValue(), Init(), and RegisterPointer().

Definition at line 46 of file TEcnaObject.h.

Referenced by GetPointerValue(), Init(), and RegisterPointer().

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

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