CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Attributes
TEcnaParCout Class Reference

#include <TEcnaParCout.h>

Inheritance diagram for TEcnaParCout:

Public Member Functions

Int_t GetCodePrint (const TString &)
 
void Init ()
 
 TEcnaParCout ()
 
 TEcnaParCout (TEcnaObject *)
 
 ~TEcnaParCout () override
 

Public Attributes

Int_t fCodePrintAllComments
 
Int_t fCodePrintComments
 
Int_t fCodePrintNoComment
 
Int_t fCodePrintWarnings
 
Int_t fFlagPrint
 

Private Attributes

Int_t fCdelete
 
Int_t fCnaCommand
 
Int_t fCnaError
 
Int_t fCnew
 
Int_t fgMaxCar
 
TString fTTBELL
 

Detailed Description


TEcnaParCout.h Update: 05/10/2012 Author: 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

Definition at line 25 of file TEcnaParCout.h.

Constructor & Destructor Documentation

◆ TEcnaParCout() [1/2]

TEcnaParCout::TEcnaParCout ( )

Definition at line 26 of file TEcnaParCout.cc.

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

References Init().

◆ TEcnaParCout() [2/2]

TEcnaParCout::TEcnaParCout ( TEcnaObject pObjectManager)

Definition at line 34 of file TEcnaParCout.cc.

34  {
35  // Constructor with argument
36 
37  // std::cout << "[Info Management] CLASS: TEcnaParCout. CREATE OBJECT: this = " << this << std::endl;
38 
39  Init();
40  Long_t i_this = (Long_t)this;
41  pObjectManager->RegisterPointer("TEcnaParCout", i_this);
42 }

References Init(), and TEcnaObject::RegisterPointer().

◆ ~TEcnaParCout()

TEcnaParCout::~TEcnaParCout ( )
override

Definition at line 17 of file TEcnaParCout.cc.

17  {
18  //destructor
19  // std::cout << "[Info Management] CLASS: TEcnaParCout. DESTROY OBJECT: this = " << this << std::endl;
20 }

Member Function Documentation

◆ GetCodePrint()

Int_t TEcnaParCout::GetCodePrint ( const TString &  chcode)

Definition at line 66 of file TEcnaParCout.cc.

66  {
67  //Get the CodePrint values
68 
69  Int_t code_print = 101; // => default: print warnings
70 
71  // The values must be different
72  if (chcode == "NoComment") {
73  code_print = 100;
74  }
75  if (chcode == "Warnings") {
76  code_print = 101;
77  } // => default
78  if (chcode == "Comments") {
79  code_print = 102;
80  }
81  if (chcode == "AllComments") {
82  code_print = 103;
83  }
84 
85  return code_print;
86 }

Referenced by Init(), TEcnaWrite::Init(), TEcnaRead::Init(), and TEcnaRun::Init().

◆ Init()

void TEcnaParCout::Init ( void  )

Definition at line 44 of file TEcnaParCout.cc.

44  {
45  fgMaxCar = (Int_t)512; // max number of characters in TStrings
46  fTTBELL = '\007';
47 
48  //................................................... Code Print
49  fCodePrintNoComment = GetCodePrint("NoComment");
50  fCodePrintWarnings = GetCodePrint("Warnings "); // => default
51  fCodePrintComments = GetCodePrint("Comments");
52  fCodePrintAllComments = GetCodePrint("AllComments");
53 
55 
56  //................ Init CNA Command and error numbering
57  fCnaCommand = 0;
58  fCnaError = 0;
59 } // end of Init()

References fCnaCommand, fCnaError, fCodePrintAllComments, fCodePrintComments, fCodePrintNoComment, fCodePrintWarnings, fFlagPrint, fgMaxCar, fTTBELL, and GetCodePrint().

Referenced by TEcnaParCout().

Member Data Documentation

◆ fCdelete

Int_t TEcnaParCout::fCdelete
private

Definition at line 29 of file TEcnaParCout.h.

◆ fCnaCommand

Int_t TEcnaParCout::fCnaCommand
private

Definition at line 31 of file TEcnaParCout.h.

Referenced by Init().

◆ fCnaError

Int_t TEcnaParCout::fCnaError
private

Definition at line 31 of file TEcnaParCout.h.

Referenced by Init().

◆ fCnew

Int_t TEcnaParCout::fCnew
private

Definition at line 29 of file TEcnaParCout.h.

◆ fCodePrintAllComments

Int_t TEcnaParCout::fCodePrintAllComments

Definition at line 36 of file TEcnaParCout.h.

Referenced by Init().

◆ fCodePrintComments

Int_t TEcnaParCout::fCodePrintComments

Definition at line 36 of file TEcnaParCout.h.

Referenced by Init().

◆ fCodePrintNoComment

Int_t TEcnaParCout::fCodePrintNoComment

Definition at line 36 of file TEcnaParCout.h.

Referenced by Init().

◆ fCodePrintWarnings

Int_t TEcnaParCout::fCodePrintWarnings

Definition at line 36 of file TEcnaParCout.h.

Referenced by Init().

◆ fFlagPrint

Int_t TEcnaParCout::fFlagPrint

Definition at line 35 of file TEcnaParCout.h.

Referenced by Init().

◆ fgMaxCar

Int_t TEcnaParCout::fgMaxCar
private

Definition at line 28 of file TEcnaParCout.h.

Referenced by Init().

◆ fTTBELL

TString TEcnaParCout::fTTBELL
private

Definition at line 30 of file TEcnaParCout.h.

Referenced by Init().

TEcnaParCout::fCodePrintAllComments
Int_t fCodePrintAllComments
Definition: TEcnaParCout.h:36
TEcnaParCout::GetCodePrint
Int_t GetCodePrint(const TString &)
Definition: TEcnaParCout.cc:66
TEcnaObject::RegisterPointer
Bool_t RegisterPointer(const TString &, const Long_t &)
Definition: TEcnaObject.cc:100
TEcnaParCout::Init
void Init()
Definition: TEcnaParCout.cc:44
TEcnaParCout::fCnaCommand
Int_t fCnaCommand
Definition: TEcnaParCout.h:31
TEcnaParCout::fFlagPrint
Int_t fFlagPrint
Definition: TEcnaParCout.h:35
TEcnaParCout::fCodePrintWarnings
Int_t fCodePrintWarnings
Definition: TEcnaParCout.h:36
TEcnaParCout::fCodePrintComments
Int_t fCodePrintComments
Definition: TEcnaParCout.h:36
TEcnaParCout::fCnaError
Int_t fCnaError
Definition: TEcnaParCout.h:31
TEcnaParCout::fTTBELL
TString fTTBELL
Definition: TEcnaParCout.h:30
TEcnaParCout::fCodePrintNoComment
Int_t fCodePrintNoComment
Definition: TEcnaParCout.h:36
TEcnaParCout::fgMaxCar
Int_t fgMaxCar
Definition: TEcnaParCout.h:28