R__dummyintdefault13_c

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
//---------Author's Name: B.Fabbro DSM/IRFU/SPP CEA-Saclay
//----------Copyright: Those valid for CEA sofware
//----------Modified: 24/03/2010

#include "CalibCalorimetry/EcalCorrelatedNoiseAnalysisAlgos/interface/TEcnaParCout.h"

//--------------------------------------
//  TEcnaParCout.cc
//  Class creation: 11 March 2008
//  Documentation: see TEcnaParCout.h
//--------------------------------------

ClassImp(TEcnaParCout);
//______________________________________________________________________________
//

TEcnaParCout::~TEcnaParCout() {
  //destructor
  // std::cout << "[Info Management] CLASS: TEcnaParCout.       DESTROY OBJECT: this = " << this << std::endl;
}
//===================================================================
//
//                   Constructors
//
//===================================================================
TEcnaParCout::TEcnaParCout() {
  // Constructor without argument

  // std::cout << "[Info Management] CLASS: TEcnaParCout.       CREATE OBJECT: this = " << this << std::endl;

  Init();
}

TEcnaParCout::TEcnaParCout(TEcnaObject* pObjectManager) {
  // Constructor with argument

  // std::cout << "[Info Management] CLASS: TEcnaParCout.       CREATE OBJECT: this = " << this << std::endl;

  Init();
  Long_t i_this = (Long_t)this;
  pObjectManager->RegisterPointer("TEcnaParCout", i_this);
}

void TEcnaParCout::Init() {
  fgMaxCar = (Int_t)512;  // max number of characters in TStrings
  fTTBELL = '\007';

  //................................................... Code Print
  fCodePrintNoComment = GetCodePrint("NoComment");
  fCodePrintWarnings = GetCodePrint("Warnings ");  // => default
  fCodePrintComments = GetCodePrint("Comments");
  fCodePrintAllComments = GetCodePrint("AllComments");

  fFlagPrint = fCodePrintWarnings;

  //................ Init CNA Command and error numbering
  fCnaCommand = 0;
  fCnaError = 0;
}  // end of Init()

//===========================================================================
//
//         GetCodePrint
//
//===========================================================================
Int_t TEcnaParCout::GetCodePrint(const TString& chcode) {
  //Get the CodePrint values

  Int_t code_print = 101;  // => default: print warnings

  // The  values must be different
  if (chcode == "NoComment") {
    code_print = 100;
  }
  if (chcode == "Warnings") {
    code_print = 101;
  }  // => default
  if (chcode == "Comments") {
    code_print = 102;
  }
  if (chcode == "AllComments") {
    code_print = 103;
  }

  return code_print;
}