CMS 3D CMS Logo

Macros | Functions
TEcnaHistos.cc File Reference
#include "CalibCalorimetry/EcalCorrelatedNoiseAnalysisAlgos/interface/TEcnaHistos.h"

Go to the source code of this file.

Macros

#define IYAX
 
#define MGRA
 
#define PLUD
 

Functions

 ClassImp (TEcnaHistos) TEcnaHistos
 

Macro Definition Documentation

#define IYAX
#define MGRA
#define PLUD

Definition at line 1155 of file TEcnaHistos.cc.

Function Documentation

ClassImp ( TEcnaHistos  )

Definition at line 13 of file TEcnaHistos.cc.

References gather_cfg::cout.

48 {
49  //destructor
50 
51  if (fT1DRunNumber != nullptr){delete [] fT1DRunNumber; fCdelete++;}
52 
53  //if (fCnaParHistos != 0){delete fCnaParHistos; fCdelete++;}
54  //if (fCnaParPaths != 0){delete fCnaParPaths; fCdelete++;}
55  //if (fCnaParCout != 0){delete fCnaParCout; fCdelete++;}
56  //if (fCnaWrite != 0){delete fCnaWrite; fCdelete++;}
57  //if (fEcal != 0){delete fEcal; fCdelete++;}
58  //if (fEcalNumbering != 0){delete fEcalNumbering; fCdelete++;}
59 
60  //if (fMyRootFile != 0){delete fMyRootFile; fCdelete++;}
61  //if (fReadHistoDummy != 0){delete fReadHistoDummy; fCdelete++;}
62 
63 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
64 
65  if ( fCnew != fCdelete )
66  {
67  std::cout << "*TEcnaHistos> WRONG MANAGEMENT OF ALLOCATIONS: fCnew = "
68  << fCnew << ", fCdelete = " << fCdelete << fTTBELL << std::endl;
69  }
70  else
71  {
72  // std::cout << "*TEcnaHistos> BRAVO! GOOD MANAGEMENT OF ALLOCATIONS: fCnew = "
73  // << fCnew << ", fCdelete = " << fCdelete << std::endl;
74  }
75 
76 #define MGRA
77 #ifndef MGRA
78  if ( fCnewRoot != fCdeleteRoot )
79  {
80  std::cout << "*TEcnaHistos> WRONG MANAGEMENT OF ROOT ALLOCATIONS: fCnewRoot = "
81  << fCnewRoot << ", fCdeleteRoot = " << fCdeleteRoot << std::endl;
82  }
83  else
84  {
85  std::cout << "*TEcnaHistos> BRAVO! GOOD MANAGEMENT OF ROOT ALLOCATIONS:"
86  << " fCnewRoot = " << fCnewRoot <<", fCdeleteRoot = "
87  << fCdeleteRoot << std::endl;
88  }
89 #endif // MGRA
90 
91  // std::cout << "TEcnaHistos> Leaving destructor" << std::endl;
92  // std::cout << " fCnew = " << fCnew << ", fCdelete = " << fCdelete << std::endl;
93 
94  // std::cout << "[Info Management] CLASS: TEcnaHistos. DESTROY OBJECT: this = " << this << std::endl;
95 
96 }