CMS 3D CMS Logo

Defines | Functions

/data/refman/pasoursint/CMSSW_5_3_3/src/RecoParticleFlow/PFClusterTools/src/PFResolutionMap.cc File Reference

#include "RecoParticleFlow/PFClusterTools/interface/PFResolutionMap.h"
#include <fstream>
#include <sstream>
#include <algorithm>
#include <functional>
#include <stdexcept>
#include <TFile.h>
#include <TMath.h>
#include <vector>

Go to the source code of this file.

Defines

#define M_PI   3.14159265358979323846

Functions

ostream & operator<< (ostream &outf, const PFResolutionMap &rm)

Define Documentation

#define M_PI   3.14159265358979323846

Definition at line 303 of file PFResolutionMap.cc.

Referenced by PFResolutionMap::dCrackPhi().


Function Documentation

ostream& operator<< ( ostream &  outf,
const PFResolutionMap rm 
)

Definition at line 266 of file PFResolutionMap.cc.

                                                              {

  if(!outf.good() ) return outf;

  // first data describes the map
  outf<<rm.GetNbinsX()<<endl;
  outf<<rm.GetXaxis()->GetXmin()<<endl;
  outf<<rm.GetXaxis()->GetXmax()<<endl;

  outf<<rm.GetNbinsY()<<endl;
  outf<<rm.GetYaxis()->GetXmin()<<endl;
  outf<<rm.GetYaxis()->GetXmax()<<endl;

  for(int ie=1; ie<=rm.GetNbinsY(); ie++) {
    for(int ieta=1; ieta<=rm.GetNbinsX(); ieta++) {
      outf<<rm.GetBinContent(ieta,ie)<<"\t";
    }
    outf<<endl;
  }
  
  return outf;
}