CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 212 of file PFResolutionMap.cc.

Referenced by PFResolutionMap::dCrackPhi().

Function Documentation

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

Definition at line 175 of file PFResolutionMap.cc.

175  {
176  if (!outf.good())
177  return outf;
178 
179  // first data describes the map
180  outf << rm.GetNbinsX() << endl;
181  outf << rm.GetXaxis()->GetXmin() << endl;
182  outf << rm.GetXaxis()->GetXmax() << endl;
183 
184  outf << rm.GetNbinsY() << endl;
185  outf << rm.GetYaxis()->GetXmin() << endl;
186  outf << rm.GetYaxis()->GetXmax() << endl;
187 
188  for (int ie = 1; ie <= rm.GetNbinsY(); ie++) {
189  for (int ieta = 1; ieta <= rm.GetNbinsX(); ieta++) {
190  outf << rm.GetBinContent(ieta, ie) << "\t";
191  }
192  outf << endl;
193  }
194 
195  return outf;
196 }