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::TEcnaParCout ( )

Definition at line 27 of file TEcnaParCout.cc.

References Init().

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

Definition at line 36 of file TEcnaParCout.cc.

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

37 {
38 // Constructor with argument
39 
40  // std::cout << "[Info Management] CLASS: TEcnaParCout. CREATE OBJECT: this = " << this << std::endl;
41 
42  Init();
43  Long_t i_this = (Long_t)this;
44  pObjectManager->RegisterPointer("TEcnaParCout", i_this);
45 }
Bool_t RegisterPointer(const TString &, const Long_t &)
Definition: TEcnaObject.cc:105
TEcnaParCout::~TEcnaParCout ( )
override

Definition at line 17 of file TEcnaParCout.cc.

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

Member Function Documentation

Int_t TEcnaParCout::GetCodePrint ( const TString &  chcode)

Definition at line 70 of file TEcnaParCout.cc.

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

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

Definition at line 47 of file TEcnaParCout.cc.

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

Referenced by TEcnaParCout().

48 {
49  fgMaxCar = (Int_t)512; // max number of characters in TStrings
50  fTTBELL = '\007';
51 
52  //................................................... Code Print
53  fCodePrintNoComment = GetCodePrint("NoComment");
54  fCodePrintWarnings = GetCodePrint("Warnings "); // => default
55  fCodePrintComments = GetCodePrint("Comments");
56  fCodePrintAllComments = GetCodePrint("AllComments");
57 
59 
60  //................ Init CNA Command and error numbering
61  fCnaCommand = 0;
62  fCnaError = 0;
63 }// end of Init()
Int_t fCodePrintAllComments
Definition: TEcnaParCout.h:39
Int_t fFlagPrint
Definition: TEcnaParCout.h:38
Int_t fCodePrintComments
Definition: TEcnaParCout.h:39
Int_t fCnaError
Definition: TEcnaParCout.h:33
TString fTTBELL
Definition: TEcnaParCout.h:32
Int_t fCodePrintNoComment
Definition: TEcnaParCout.h:39
Int_t fgMaxCar
Definition: TEcnaParCout.h:30
Int_t fCodePrintWarnings
Definition: TEcnaParCout.h:39
Int_t fCnaCommand
Definition: TEcnaParCout.h:33
Int_t GetCodePrint(const TString &)
Definition: TEcnaParCout.cc:70

Member Data Documentation

Int_t TEcnaParCout::fCdelete
private

Definition at line 31 of file TEcnaParCout.h.

Int_t TEcnaParCout::fCnaCommand
private

Definition at line 33 of file TEcnaParCout.h.

Referenced by Init().

Int_t TEcnaParCout::fCnaError
private

Definition at line 33 of file TEcnaParCout.h.

Referenced by Init().

Int_t TEcnaParCout::fCnew
private

Definition at line 31 of file TEcnaParCout.h.

Int_t TEcnaParCout::fCodePrintAllComments

Definition at line 39 of file TEcnaParCout.h.

Referenced by Init().

Int_t TEcnaParCout::fCodePrintComments

Definition at line 39 of file TEcnaParCout.h.

Referenced by Init().

Int_t TEcnaParCout::fCodePrintNoComment

Definition at line 39 of file TEcnaParCout.h.

Referenced by Init().

Int_t TEcnaParCout::fCodePrintWarnings

Definition at line 39 of file TEcnaParCout.h.

Referenced by Init().

Int_t TEcnaParCout::fFlagPrint

Definition at line 38 of file TEcnaParCout.h.

Referenced by Init().

Int_t TEcnaParCout::fgMaxCar
private

Definition at line 30 of file TEcnaParCout.h.

Referenced by Init().

TString TEcnaParCout::fTTBELL
private

Definition at line 32 of file TEcnaParCout.h.

Referenced by Init().