CMS 3D CMS Logo

Macros | Functions
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>
#include "FWCore/MessageLogger/interface/MessageLogger.h"

Go to the source code of this file.

Macros

#define M_PI   3.14159265358979323846
 

Functions

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

Macro Definition Documentation

#define M_PI   3.14159265358979323846

Definition at line 222 of file PFResolutionMap.cc.

Referenced by PFResolutionMap::dCrackPhi().

Function Documentation

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

Definition at line 185 of file PFResolutionMap.cc.

185  {
186 
187  if(!outf.good() ) return outf;
188 
189  // first data describes the map
190  outf<<rm.GetNbinsX()<<endl;
191  outf<<rm.GetXaxis()->GetXmin()<<endl;
192  outf<<rm.GetXaxis()->GetXmax()<<endl;
193 
194  outf<<rm.GetNbinsY()<<endl;
195  outf<<rm.GetYaxis()->GetXmin()<<endl;
196  outf<<rm.GetYaxis()->GetXmax()<<endl;
197 
198  for(int ie=1; ie<=rm.GetNbinsY(); ie++) {
199  for(int ieta=1; ieta<=rm.GetNbinsX(); ieta++) {
200  outf<<rm.GetBinContent(ieta,ie)<<"\t";
201  }
202  outf<<endl;
203  }
204 
205  return outf;
206 }