CMS 3D CMS Logo

Defines | Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/CalibCalorimetry/EcalCorrelatedNoiseAnalysisAlgos/src/TEcnaHistos.cc File Reference

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

Go to the source code of this file.

Defines

#define IYAX
#define MGRA
#define PLUD

Functions

 ClassImp (TEcnaHistos) TEcnaHistos

Define Documentation

#define IYAX
#define MGRA
#define PLUD

Definition at line 1180 of file TEcnaHistos.cc.


Function Documentation

ClassImp ( TEcnaHistos  )

Definition at line 13 of file TEcnaHistos.cc.

References gather_cfg::cout.

{
  //destructor

  if (fT1DRunNumber != 0){delete [] fT1DRunNumber; fCdelete++;}
  
  //if (fCnaParHistos  != 0){delete fCnaParHistos;  fCdelete++;}
  //if (fCnaParPaths   != 0){delete fCnaParPaths;   fCdelete++;}
  //if (fCnaParCout    != 0){delete fCnaParCout;    fCdelete++;}
  //if (fCnaWrite      != 0){delete fCnaWrite;      fCdelete++;}
  //if (fEcal          != 0){delete fEcal;          fCdelete++;}
  //if (fEcalNumbering != 0){delete fEcalNumbering; fCdelete++;}

  //if (fMyRootFile     != 0){delete fMyRootFile;     fCdelete++;}
  //if (fReadHistoDummy != 0){delete fReadHistoDummy; fCdelete++;}

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  if ( fCnew != fCdelete )
    {
      cout << "*TEcnaHistos> WRONG MANAGEMENT OF ALLOCATIONS: fCnew = "
           << fCnew << ", fCdelete = " << fCdelete << fTTBELL << endl;
    }
  else
    {
     //  cout << "*TEcnaHistos> BRAVO! GOOD MANAGEMENT OF ALLOCATIONS: fCnew = "
     //       << fCnew << ", fCdelete = " << fCdelete << endl;
    }

#define MGRA
#ifndef MGRA
  if ( fCnewRoot != fCdeleteRoot )
    {
      cout << "*TEcnaHistos> WRONG MANAGEMENT OF ROOT ALLOCATIONS: fCnewRoot = "
           << fCnewRoot << ", fCdeleteRoot = " << fCdeleteRoot << endl;
    }
  else
    {
      cout << "*TEcnaHistos> BRAVO! GOOD MANAGEMENT OF ROOT ALLOCATIONS:"
           << " fCnewRoot = " << fCnewRoot <<", fCdeleteRoot = "
           << fCdeleteRoot << endl;
    }
#endif // MGRA

  // cout << "TEcnaHistos> Leaving destructor" << endl;
  // cout << "            fCnew = " << fCnew << ", fCdelete = " << fCdelete << endl;

 // cout << "[Info Management] CLASS: TEcnaHistos.        DESTROY OBJECT: this = " << this << endl;

}