CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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>

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 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.

266  {
267 
268  if(!outf.good() ) return outf;
269 
270  // first data describes the map
271  outf<<rm.GetNbinsX()<<endl;
272  outf<<rm.GetXaxis()->GetXmin()<<endl;
273  outf<<rm.GetXaxis()->GetXmax()<<endl;
274 
275  outf<<rm.GetNbinsY()<<endl;
276  outf<<rm.GetYaxis()->GetXmin()<<endl;
277  outf<<rm.GetYaxis()->GetXmax()<<endl;
278 
279  for(int ie=1; ie<=rm.GetNbinsY(); ie++) {
280  for(int ieta=1; ieta<=rm.GetNbinsX(); ieta++) {
281  outf<<rm.GetBinContent(ieta,ie)<<"\t";
282  }
283  outf<<endl;
284  }
285 
286  return outf;
287 }