#include <memory>
#include <string>
#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 | CalibClosureTest |
Functions | |
int | main (int argc, char *argv[]) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
------------------ CALO JETS ------------------
------------------ PF JETS ------------------
Definition at line 213 of file CalibClosureTest.cc.
References dtNoiseDBValidation_cfg::cerr, gather_cfg::cout, CalibClosureTest::drawCorrel(), CalibClosureTest::drawEff(), CompHist::drawEps(), CompHist::drawPs(), FitHist::fillTargetHistograms(), FitHist::fitAndDrawEps(), FitHist::fitAndDrawPs(), CompHist::loadHistograms(), RecoTauValidation_cfi::plots, CalibClosureTest::readConfig(), setNiceStyle(), and CompHist::writeAs().
{ setNiceStyle(); gStyle->SetOptStat( 0 ); gStyle->SetOptFit ( 0 ); gStyle->SetStatColor(0); gStyle->SetStatBorderSize(0); gStyle->SetStatX(0.93); gStyle->SetStatY(0.93); gStyle->SetStatW(0.18); gStyle->SetStatH(0.18); if( argc<2 ){ std::cerr << "ERROR:" << " Missing argument" << std::endl; return 1; } CalibClosureTest plots; //plots.setVerbose(true); plots.readConfig( argv[1] ); plots.loadHistograms(); if( !strcmp(plots.writeAs().c_str(), "ps") ){ plots.fitAndDrawPs(); plots.fillTargetHistograms(); plots.drawPs(); } else if( !strcmp(plots.writeAs().c_str(), "eps") ){ plots.fitAndDrawEps(); plots.fillTargetHistograms(); plots.drawEps(); } else{ std::cerr << "ERROR:" << " Unknown file format requested: " << plots.writeAs() << std::endl; return -1; } plots.drawEff(); plots.drawCorrel(); std::cout << "works " << "thanx and GoodBye " << std::endl; return 0; }