#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.
Functions | |
ostream & | operator<< (ostream &outf, const PFResolutionMap &rm) |
ostream& operator<< | ( | ostream & | outf, | |
const PFResolutionMap & | rm | |||
) |
Definition at line 265 of file PFResolutionMap.cc.
References lat::endl().
00265 { 00266 00267 if(!outf.good() ) return outf; 00268 00269 // first data describes the map 00270 outf<<rm.GetNbinsX()<<endl; 00271 outf<<rm.GetXaxis()->GetXmin()<<endl; 00272 outf<<rm.GetXaxis()->GetXmax()<<endl; 00273 00274 outf<<rm.GetNbinsY()<<endl; 00275 outf<<rm.GetYaxis()->GetXmin()<<endl; 00276 outf<<rm.GetYaxis()->GetXmax()<<endl; 00277 00278 for(int ie=1; ie<=rm.GetNbinsY(); ie++) { 00279 for(int ieta=1; ieta<=rm.GetNbinsX(); ieta++) { 00280 outf<<rm.GetBinContent(ieta,ie)<<"\t"; 00281 } 00282 outf<<endl; 00283 } 00284 00285 return outf; 00286 }