ROOTPWA
Classes | Functions | Variables
plotGlobalWeightedEvts_Kpipi.C File Reference
#include "TFile.h"
#include "TLatex.h"
#include "TH1D.h"
#include "TH2D.h"
#include "TLine.h"
#include "TROOT.h"
#include "TStyle.h"
#include "TColor.h"
#include "TString.h"
#include "TObject.h"
#include "TCollection.h"
#include "TCanvas.h"
#include "TExec.h"
#include "TGaxis.h"
#include <iostream>
#include <string>
#include <sstream>
#include <map>
#include <stdlib.h>
#include <cmath>
#include <vector>
#include <algorithm>

Go to the source code of this file.

Classes

struct  booky_page

Functions

booky_page createBookyPage (TCanvas *c, double mass=0.0, TString title="")
void setupBookies ()
bool comparePairs (const booky_page &i, const booky_page &j)
void makeBookies ()
void fillDiffvsMassPlot (const TH1D *hist, std::string dirname, int massbins, double mass_start, double mass_end, std::map< std::string, std::pair< double, std::pair< double, double > > > diffbounds, TFile *ofile)
void make2DOverviewCanvas (TH2D *mchist, TH2D *datahist, TH2D *diffhist, TH2D *reldiffhist, double mass)
void make1DOverviewCanvas (TFile *infile, TFile *outfile, TList *mclist, std::string dirname)
void plotGlobalWeightedEvts_Kpipi (TString input_filename, TString output_filename)

Variables

int massbinwidth = 0
const unsigned int numbercolors = 31
std::map< TString, std::vector
< booky_page > > 
booky_map
std::map< TString, std::vector
< TString > > 
booky_setup_map

Function Documentation

bool comparePairs ( const booky_page i,
const booky_page j 
)

Definition at line 85 of file plotGlobalWeightedEvts_Kpipi.C.

References booky_page::mass.

booky_page createBookyPage ( TCanvas *  c,
double  mass = 0.0,
TString  title = "" 
)
void fillDiffvsMassPlot ( const TH1D *  hist,
std::string  dirname,
int  massbins,
double  mass_start,
double  mass_end,
std::map< std::string, std::pair< double, std::pair< double, double > > >  diffbounds,
TFile *  ofile 
)

Definition at line 127 of file plotGlobalWeightedEvts_Kpipi.C.

References createBookyPage(), i, mass, and numbercolors.

void make1DOverviewCanvas ( TFile *  infile,
TFile *  outfile,
TList *  mclist,
std::string  dirname 
)

Definition at line 241 of file plotGlobalWeightedEvts_Kpipi.C.

References atoi(), createBookyPage(), i, and mass.

void make2DOverviewCanvas ( TH2D *  mchist,
TH2D *  datahist,
TH2D *  diffhist,
TH2D *  reldiffhist,
double  mass 
)

Definition at line 170 of file plotGlobalWeightedEvts_Kpipi.C.

References createBookyPage(), mass, and numbercolors.

void makeBookies ( )

Definition at line 89 of file plotGlobalWeightedEvts_Kpipi.C.

References comparePairs(), i, int, mass, and massbinwidth.

void plotGlobalWeightedEvts_Kpipi ( TString  input_filename,
TString  output_filename 
)
void setupBookies ( )

Definition at line 62 of file plotGlobalWeightedEvts_Kpipi.C.

Variable Documentation

std::map<TString, std::vector<booky_page> > booky_map

Definition at line 58 of file plotGlobalWeightedEvts_Kpipi.C.

std::map<TString, std::vector<TString> > booky_setup_map

Definition at line 60 of file plotGlobalWeightedEvts_Kpipi.C.

int massbinwidth = 0

Definition at line 37 of file plotGlobalWeightedEvts_Kpipi.C.

const unsigned int numbercolors = 31

Definition at line 38 of file plotGlobalWeightedEvts_Kpipi.C.