#include <memory>
#include <string>
#include <cstdlib>
#include <sstream>
#include <fstream>
#include <iostream>
#include "Validation/RecoJets/interface/RootSystem.h"
#include "Validation/RecoJets/interface/RootHistograms.h"
#include "Validation/RecoJets/interface/RootPostScript.h"
#include "Validation/RecoJets/interface/ManipHist.h"
#include "Validation/RecoJets/bin/NiceStyle.cc"
Go to the source code of this file.
Classes | |
class | TopInspectSum |
Functions | |
int | main (int argc, char *argv[]) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
------------------ CALO JETS ------------------
------------------ PF JETS ------------------
Definition at line 32 of file InspectSum_calib.cc.
References benchmark_cfg::cerr, gather_cfg::cout, CompHist::drawEps(), CompHist::drawPs(), CompHist::loadHistograms(), TopInspectSum::readConfig(), setNiceStyle(), ManipHist::sumHistograms(), CompHist::writeAs(), and TopInspectSum::writeOutput().
{ setNiceStyle(); gStyle->SetOptStat( 0 ); if( argc<2 ){ std::cerr << "ERROR:" << " Missing argument" << std::endl; return 1; } TopInspectSum plots; try{ plots.readConfig( argv[1] ); plots.loadHistograms(); //histogram manipulations plots.sumHistograms(); //depending on style draw ps/eps/jpg if( !strcmp(plots.writeAs().c_str(), "ps") ){ plots.drawPs(); } else if( !strcmp(plots.writeAs().c_str(), "eps") ){ plots.drawEps(); } else{ std::cerr << "ERROR:" << " Unknown file format requested: " << plots.writeAs() << std::endl; return -1; } plots.writeOutput(); } catch(char* str){ std::cerr << "ERROR: " << str << std::endl; return 1; } catch(...){ std::cerr << "ERROR: this one is new..."; return 1; } std::cout << "Thanx and GoodBye " << std::endl; return 0; }