CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 *)
 
virtual ~TEcnaParCout ()
 

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: 16/02/2011 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_cna_1.htm

Definition at line 25 of file TEcnaParCout.h.

Constructor & Destructor Documentation

TEcnaParCout::TEcnaParCout ( )

Definition at line 28 of file TEcnaParCout.cc.

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

Definition at line 37 of file TEcnaParCout.cc.

References TEcnaObject::RegisterPointer().

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

Definition at line 18 of file TEcnaParCout.cc.

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

Member Function Documentation

Int_t TEcnaParCout::GetCodePrint ( const TString &  chcode)

Definition at line 71 of file TEcnaParCout.cc.

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

Definition at line 48 of file TEcnaParCout.cc.

49 {
50  fgMaxCar = (Int_t)512; // max number of characters in TStrings
51  fTTBELL = '\007';
52 
53  //................................................... Code Print
54  fCodePrintNoComment = GetCodePrint("NoComment");
55  fCodePrintWarnings = GetCodePrint("Warnings "); // => default
56  fCodePrintComments = GetCodePrint("Comments");
57  fCodePrintAllComments = GetCodePrint("AllComments");
58 
60 
61  //................ Init CNA Command and error numbering
62  fCnaCommand = 0;
63  fCnaError = 0;
64 }// 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:71

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.

Int_t TEcnaParCout::fCnaError
private

Definition at line 33 of file TEcnaParCout.h.

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.

Int_t TEcnaParCout::fCodePrintComments

Definition at line 39 of file TEcnaParCout.h.

Int_t TEcnaParCout::fCodePrintNoComment

Definition at line 39 of file TEcnaParCout.h.

Int_t TEcnaParCout::fCodePrintWarnings

Definition at line 39 of file TEcnaParCout.h.

Int_t TEcnaParCout::fFlagPrint

Definition at line 38 of file TEcnaParCout.h.

Int_t TEcnaParCout::fgMaxCar
private

Definition at line 30 of file TEcnaParCout.h.

TString TEcnaParCout::fTTBELL
private

Definition at line 32 of file TEcnaParCout.h.