ATLAS Offline Software
|
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include "SetAttributes.h"
Go to the source code of this file.
Macros | |
#define | DrawATLASLabels_Func |
Functions | |
int | DrawLabels (float xstart, float ystart, string label, bool isbold=true) |
int | DrawATLASLabels (float xstart, float ystart, int labelstyle) |
int | DrawCMEAndLumi (float xstart, float ystart, string lumiInFb, string CME) |
bool | sort_by_histmax (TH1F *hist1, TH1F *hist2) |
bool | sort_by_vechistmax (std::pair< TH1F *, bool > p1, std::pair< TH1F *, bool > p2) |
TH1F * | bookTH1F (const std::string &name, const std::string &title, const std::string &xlabel, const std::string &ylabel, int xbins, double xlow, double xhigh, bool sumw2=true, bool overflow=true) |
TH1F * | bookTH1F (string name, string title, string xlabel, string ylabel, int nbins, float *bininterval, bool sumw2=true) |
TH1F * | bookTH1F (const string &name, const string &title, const string &xlabel, const string &ylabel, TH1F *hist, bool sumw2=true) |
TH1I * | bookTH1I (const std::string &name, const std::string &title, const std::string &xlabel, const std::string &ylabel, int xbins, double xlow, double xhigh, bool sumw2=true) |
TH1F * | getEffectiveEntriesHistogram (TH1F *hist, string name="hee") |
TH1F * | getDataLikeHist (TH1F *eff, TH1F *scaled, string name, int jobSeed=10) |
int | GetNumberOfEvents (const std::string &filename, std::map< string, int > *channelvsbumber) |
int | DrawSingleHistOnCanvas (string canvasname, TH1F *hist, string drawoption="PE", bool logx=false, bool logy=true, bool isrectangle=false, string label="") |
int | SetHistDrawOption (TH1F *hist, TLegend *leg, bool DrawHistorNot=false) |
int | SetHistDrawOption (std::vector< std::pair< TH1F *, bool > > histvec, TLegend *leg) |
int | DrawTwoHistsOnCanvas (string canvasname, TH1F *hist1, TH1F *hist2, string drawoption1="HIST", string drawoption2="HISTSame", bool logx=false, bool logy=true, bool isrectangle=true) |
int | DrawThreeHistsOnCanvas (string canvasname, TH1F *hist1, TH1F *hist2, TH1F *hist3, string drawopt1="PE", string drawopt2="PESame", string drawopt3="PESame", bool logx=false, bool logy=true, bool isrectangle=true, string header="", string label="") |
int | DrawFourHistsOnCanvas (string canvasname, TH1F *hist1, TH1F *hist2, TH1F *hist3, TH1F *hist4, string drawopt1="PE", string drawopt2="PESame", string drawopt3="PESame", string drawopt4="PESame", bool logx=false, bool logy=true, bool isrectangle=false, string header="", string label="") |
int | DrawFiveHistsOnCanvas (string canvasname, TH1F *hist1, TH1F *hist2, TH1F *hist3, TH1F *hist4, TH1F *hist5, string drawopt1="PE", string drawopt2="PESame", string drawopt3="PESame", string drawopt4="PESame", string drawopt5="PESame", bool logx=false, bool logy=true, bool isrectangle=true, string header="", string label="") |
int | DrawTopFiveHistsAndBottomFourHistsOnCanvas (string canvasname, TH1F *top1, TH1F *top2, TH1F *top3, TH1F *top4, TH1F *top5, TH1F *bottom1, TH1F *bottom2, TH1F *bottom3, TH1F *bottom4, string topdrawopt1="PE", string topdrawopt2="PESAME", string topdrawopt3="PE", string topdrawopt4="PESAME", string topdrawopt5="PESAME", string bottomdrawopt1="PE", string bottomdrawopt2="PESame", string bottomdrawopt3="PESame", string bottomdrawopt4="PESame", bool logx=false, bool toplogy=true, bool bottomlogy=false, bool isrectangle=false, string header="", string label="") |
int | DrawTwelveHistsOnCanvas (string canvasname, TH1F *hist1, TH1F *hist2, TH1F *hist3, TH1F *hist4, TH1F *hist5, TH1F *hist6, TH1F *hist7, TH1F *hist8, TH1F *hist9, TH1F *hist10, TH1F *hist11, TH1F *hist12, string drawopt1="PE", string drawopt2="PESame", string drawopt3="PESame", string drawopt4="PESame", string drawopt5="PESame", string drawopt6="PESame", string drawopt7="PESame", string drawopt8="PESame", string drawopt9="PESame", string drawopt10="PESame", string drawopt11="PESame", string drawopt12="PESame", bool logx=false, bool logy=true, bool isrectangle=true) |
int | DrawTopTwoHistsAndBottomOneHistOnCanvas (string canvasname, TH1F *top1, TH1F *top2, TH1F *bottom1, string topdrawopt1="HIST", string topdrawopt2="PESAME", string bottomdrawopt="PE", bool logx=false, bool toplogy=true, bool bottomlogy=false) |
int | DrawTopTwoHistsAndBottomTwoHistsOnCanvas (string canvasname, TH1F *top1, TH1F *top2, TH1F *bottom1, TH1F *bottom2, bool TFirstDrawHistorNot=true, bool TSecondDrawHistorNot=false, bool DFirstDrawHistorNot=true, bool BSecondDrawHistorNot=false, bool logx=false, bool toplogy=true, bool bottomlogy=false) |
int | DrawTwoHistsinHStackOnCanvas (string canvasname, TH1F *top1, TH1F *top2, bool logx=false, bool logy=false, bool drawlabel=true, string label="", bool drawcmeandlumi=false, bool isrectangle=true) |
int | DrawThreeHistsinHStackOnCanvas (string canvasname, TH1F *top1, TH1F *top2, TH1F *top3, bool logx=false, bool logy=false, bool isrectangle=true, bool drawlabel=true, string label="", bool drawcmeandlumi=false) |
int | DrawFourHistsinHStackOnCanvas (string canvasname, TH1F *top1, TH1F *top2, TH1F *top3, TH1F *top4, bool logx=false, bool logy=false, bool isrectangle=true, bool drawlabel=true, string label="", bool drawcmeandlumi=false) |
int | DrawTwoHistsinStackAndOneHistOnCanvas (string canvasname, TH1F *top1, TH1F *top2, TH1F *hist, bool logx=false, bool logy=false, bool isrectangle=true, bool drawlabel=true, string label="", bool drawcmeandlumi=false) |
int | DrawThreeHistsinHStackAndOneHistOnCanvas (string canvasname, TH1F *top1, TH1F *top2, TH1F *top3, TH1F *hist, bool logx=false, bool logy=false, bool isrectangle=true, bool drawlabel=true, string label="", bool drawcmeandlumi=false) |
int | DrawFourHistsinHStackAndOneHistOnCanvas (string canvasname, TH1F *top1, TH1F *top2, TH1F *top3, TH1F *top4, TH1F *hist, bool logx=false, bool logy=false, bool isrectangle=true, bool drawlabel=true, string label="", bool drawcmeandlumi=false) |
int | DrawTopTwoHistsinHStackAndOneHistBottomOneHistOnCanvas (string canvasname, TH1F *top1, TH1F *top2, TH1F *hist, TH1F *bottom, bool logx=false, bool toplogy=false, bool bottomlogy=false, bool drawlabel=true, string label="", bool drawcmeandlumi=false) |
int | DrawTopThreeHistsinHStackAndOneHistBottomOneHistOnCanvas (string canvasname, TH1F *top1, TH1F *top2, TH1F *top3, TH1F *hist, TH1F *bottom, bool logx=false, bool toplogy=false, bool bottomlogy=false, bool drawlabel=true, string label="", bool drawcmeandlumi=false) |
int | DrawTopFourHistsinHStacksAndOneHistBottomOneHistOnCanvas (string canvasname, TH1F *top1, TH1F *top2, TH1F *top3, TH1F *top4, TH1F *hist, TH1F *bottom, bool logx=false, bool toplogy=false, bool bottomlogy=false, bool drawlabel=true, string label="", bool drawcmeandlumi=false) |
TH1F * | GetRatioHistOfTwoHists (string name, string title, string xaxistitle, string yaxistitle, TH1F *numeratorhist, TH1F *denominatorhist) |
TH1F * | GetErrorBarRatioHistOfTwoHists (string name, string title, string xaxistitle, string yaxistitle, TH1F *numeratorhist, TH1F *denominatorhist) |
#define DrawATLASLabels_Func |
Definition at line 1386 of file HistToolKit.h.
TH1F* bookTH1F | ( | const std::string & | name, |
const std::string & | title, | ||
const std::string & | xlabel, | ||
const std::string & | ylabel, | ||
int | xbins, | ||
double | xlow, | ||
double | xhigh, | ||
bool | sumw2 = true , |
||
bool | overflow = true |
||
) |
Definition at line 27 of file HistToolKit.h.
TH1F* bookTH1F | ( | const string & | name, |
const string & | title, | ||
const string & | xlabel, | ||
const string & | ylabel, | ||
TH1F * | hist, | ||
bool | sumw2 = true |
||
) |
Definition at line 52 of file HistToolKit.h.
TH1F* bookTH1F | ( | string | name, |
string | title, | ||
string | xlabel, | ||
string | ylabel, | ||
int | nbins, | ||
float * | bininterval, | ||
bool | sumw2 = true |
||
) |
int DrawATLASLabels | ( | float | xstart, |
float | ystart, | ||
int | labelstyle | ||
) |
Definition at line 1387 of file HistToolKit.h.
int DrawCMEAndLumi | ( | float | xstart, |
float | ystart, | ||
string | lumiInFb, | ||
string | CME | ||
) |
Definition at line 1422 of file HistToolKit.h.
int DrawFiveHistsOnCanvas | ( | string | canvasname, |
TH1F * | hist1, | ||
TH1F * | hist2, | ||
TH1F * | hist3, | ||
TH1F * | hist4, | ||
TH1F * | hist5, | ||
string | drawopt1 = "PE" , |
||
string | drawopt2 = "PESame" , |
||
string | drawopt3 = "PESame" , |
||
string | drawopt4 = "PESame" , |
||
string | drawopt5 = "PESame" , |
||
bool | logx = false , |
||
bool | logy = true , |
||
bool | isrectangle = true , |
||
string | header = "" , |
||
string | label = "" |
||
) |
Definition at line 414 of file HistToolKit.h.
int DrawFourHistsinHStackAndOneHistOnCanvas | ( | string | canvasname, |
TH1F * | top1, | ||
TH1F * | top2, | ||
TH1F * | top3, | ||
TH1F * | top4, | ||
TH1F * | hist, | ||
bool | logx = false , |
||
bool | logy = false , |
||
bool | isrectangle = true , |
||
bool | drawlabel = true , |
||
string | label = "" , |
||
bool | drawcmeandlumi = false |
||
) |
Definition at line 1106 of file HistToolKit.h.
int DrawFourHistsinHStackOnCanvas | ( | string | canvasname, |
TH1F * | top1, | ||
TH1F * | top2, | ||
TH1F * | top3, | ||
TH1F * | top4, | ||
bool | logx = false , |
||
bool | logy = false , |
||
bool | isrectangle = true , |
||
bool | drawlabel = true , |
||
string | label = "" , |
||
bool | drawcmeandlumi = false |
||
) |
Definition at line 908 of file HistToolKit.h.
int DrawFourHistsOnCanvas | ( | string | canvasname, |
TH1F * | hist1, | ||
TH1F * | hist2, | ||
TH1F * | hist3, | ||
TH1F * | hist4, | ||
string | drawopt1 = "PE" , |
||
string | drawopt2 = "PESame" , |
||
string | drawopt3 = "PESame" , |
||
string | drawopt4 = "PESame" , |
||
bool | logx = false , |
||
bool | logy = true , |
||
bool | isrectangle = false , |
||
string | header = "" , |
||
string | label = "" |
||
) |
Definition at line 339 of file HistToolKit.h.
int DrawLabels | ( | float | xstart, |
float | ystart, | ||
string | label = "" , |
||
bool | isbold = true |
||
) |
Definition at line 1374 of file HistToolKit.h.
int DrawSingleHistOnCanvas | ( | string | canvasname, |
TH1F * | hist, | ||
string | drawoption = "PE" , |
||
bool | logx = false , |
||
bool | logy = true , |
||
bool | isrectangle = false , |
||
string | label = "" |
||
) |
Definition at line 153 of file HistToolKit.h.
int DrawThreeHistsinHStackAndOneHistOnCanvas | ( | string | canvasname, |
TH1F * | top1, | ||
TH1F * | top2, | ||
TH1F * | top3, | ||
TH1F * | hist, | ||
bool | logx = false , |
||
bool | logy = false , |
||
bool | isrectangle = true , |
||
bool | drawlabel = true , |
||
string | label = "" , |
||
bool | drawcmeandlumi = false |
||
) |
Definition at line 1040 of file HistToolKit.h.
int DrawThreeHistsinHStackOnCanvas | ( | string | canvasname, |
TH1F * | top1, | ||
TH1F * | top2, | ||
TH1F * | top3, | ||
bool | logx = false , |
||
bool | logy = false , |
||
bool | isrectangle = true , |
||
bool | drawlabel = true , |
||
string | label = "" , |
||
bool | drawcmeandlumi = false |
||
) |
Definition at line 844 of file HistToolKit.h.
int DrawThreeHistsOnCanvas | ( | string | canvasname, |
TH1F * | hist1, | ||
TH1F * | hist2, | ||
TH1F * | hist3, | ||
string | drawopt1 = "PE" , |
||
string | drawopt2 = "PESame" , |
||
string | drawopt3 = "PESame" , |
||
bool | logx = false , |
||
bool | logy = true , |
||
bool | isrectangle = true , |
||
string | header = "" , |
||
string | label = "" |
||
) |
Definition at line 268 of file HistToolKit.h.
int DrawTopFiveHistsAndBottomFourHistsOnCanvas | ( | string | canvasname, |
TH1F * | top1, | ||
TH1F * | top2, | ||
TH1F * | top3, | ||
TH1F * | top4, | ||
TH1F * | top5, | ||
TH1F * | bottom1, | ||
TH1F * | bottom2, | ||
TH1F * | bottom3, | ||
TH1F * | bottom4, | ||
string | topdrawopt1 = "PE" , |
||
string | topdrawopt2 = "PESAME" , |
||
string | topdrawopt3 = "PE" , |
||
string | topdrawopt4 = "PESAME" , |
||
string | topdrawopt5 = "PESAME" , |
||
string | bottomdrawopt1 = "PE" , |
||
string | bottomdrawopt2 = "PESame" , |
||
string | bottomdrawopt3 = "PESame" , |
||
string | bottomdrawopt4 = "PESame" , |
||
bool | logx = false , |
||
bool | toplogy = true , |
||
bool | bottomlogy = false , |
||
bool | isrectangle = false , |
||
string | header = "" , |
||
string | label = "" |
||
) |
Definition at line 492 of file HistToolKit.h.
int DrawTopFourHistsinHStacksAndOneHistBottomOneHistOnCanvas | ( | string | canvasname, |
TH1F * | top1, | ||
TH1F * | top2, | ||
TH1F * | top3, | ||
TH1F * | top4, | ||
TH1F * | hist, | ||
TH1F * | bottom, | ||
bool | logx = false , |
||
bool | toplogy = false , |
||
bool | bottomlogy = false , |
||
bool | drawlabel = true , |
||
string | label = "" , |
||
bool | drawcmeandlumi = false |
||
) |
Definition at line 1306 of file HistToolKit.h.
int DrawTopThreeHistsinHStackAndOneHistBottomOneHistOnCanvas | ( | string | canvasname, |
TH1F * | top1, | ||
TH1F * | top2, | ||
TH1F * | top3, | ||
TH1F * | hist, | ||
TH1F * | bottom, | ||
bool | logx = false , |
||
bool | toplogy = false , |
||
bool | bottomlogy = false , |
||
bool | drawlabel = true , |
||
string | label = "" , |
||
bool | drawcmeandlumi = false |
||
) |
Definition at line 1240 of file HistToolKit.h.
int DrawTopTwoHistsAndBottomOneHistOnCanvas | ( | string | canvasname, |
TH1F * | top1, | ||
TH1F * | top2, | ||
TH1F * | bottom1, | ||
string | topdrawopt1 = "HIST" , |
||
string | topdrawopt2 = "PESAME" , |
||
string | bottomdrawopt = "PE" , |
||
bool | logx = false , |
||
bool | toplogy = true , |
||
bool | bottomlogy = false |
||
) |
Definition at line 659 of file HistToolKit.h.
int DrawTopTwoHistsAndBottomTwoHistsOnCanvas | ( | string | canvasname, |
TH1F * | top1, | ||
TH1F * | top2, | ||
TH1F * | bottom1, | ||
TH1F * | bottom2, | ||
bool | TFirstDrawHistorNot = true , |
||
bool | TSecondDrawHistorNot = false , |
||
bool | DFirstDrawHistorNot = true , |
||
bool | BSecondDrawHistorNot = false , |
||
bool | logx = false , |
||
bool | toplogy = true , |
||
bool | bottomlogy = false |
||
) |
Definition at line 723 of file HistToolKit.h.
int DrawTopTwoHistsinHStackAndOneHistBottomOneHistOnCanvas | ( | string | canvasname, |
TH1F * | top1, | ||
TH1F * | top2, | ||
TH1F * | hist, | ||
TH1F * | bottom, | ||
bool | logx = false , |
||
bool | toplogy = false , |
||
bool | bottomlogy = false , |
||
bool | drawlabel = true , |
||
string | label = "" , |
||
bool | drawcmeandlumi = false |
||
) |
Definition at line 1176 of file HistToolKit.h.
int DrawTwelveHistsOnCanvas | ( | string | canvasname, |
TH1F * | hist1, | ||
TH1F * | hist2, | ||
TH1F * | hist3, | ||
TH1F * | hist4, | ||
TH1F * | hist5, | ||
TH1F * | hist6, | ||
TH1F * | hist7, | ||
TH1F * | hist8, | ||
TH1F * | hist9, | ||
TH1F * | hist10, | ||
TH1F * | hist11, | ||
TH1F * | hist12, | ||
string | drawopt1 = "PE" , |
||
string | drawopt2 = "PESame" , |
||
string | drawopt3 = "PESame" , |
||
string | drawopt4 = "PESame" , |
||
string | drawopt5 = "PESame" , |
||
string | drawopt6 = "PESame" , |
||
string | drawopt7 = "PESame" , |
||
string | drawopt8 = "PESame" , |
||
string | drawopt9 = "PESame" , |
||
string | drawopt10 = "PESame" , |
||
string | drawopt11 = "PESame" , |
||
string | drawopt12 = "PESame" , |
||
bool | logx = false , |
||
bool | logy = true , |
||
bool | isrectangle = true |
||
) |
Definition at line 582 of file HistToolKit.h.
int DrawTwoHistsinHStackOnCanvas | ( | string | canvasname, |
TH1F * | top1, | ||
TH1F * | top2, | ||
bool | logx = false , |
||
bool | logy = false , |
||
bool | drawlabel = true , |
||
string | label = "" , |
||
bool | drawcmeandlumi = false , |
||
bool | isrectangle = true |
||
) |
Definition at line 782 of file HistToolKit.h.
int DrawTwoHistsinStackAndOneHistOnCanvas | ( | string | canvasname, |
TH1F * | top1, | ||
TH1F * | top2, | ||
TH1F * | hist, | ||
bool | logx = false , |
||
bool | logy = false , |
||
bool | isrectangle = true , |
||
bool | drawlabel = true , |
||
string | label = "" , |
||
bool | drawcmeandlumi = false |
||
) |
Definition at line 976 of file HistToolKit.h.
int DrawTwoHistsOnCanvas | ( | string | canvasname, |
TH1F * | hist1, | ||
TH1F * | hist2, | ||
string | drawoption1 = "HIST" , |
||
string | drawoption2 = "HISTSame" , |
||
bool | logx = false , |
||
bool | logy = true , |
||
bool | isrectangle = true |
||
) |
Definition at line 217 of file HistToolKit.h.
TH1F* getDataLikeHist | ( | TH1F * | eff, |
TH1F * | scaled, | ||
string | name, | ||
int | jobSeed = 10 |
||
) |
Definition at line 98 of file HistToolKit.h.
TH1F* getEffectiveEntriesHistogram | ( | TH1F * | hist, |
string | name = "hee" |
||
) |
Definition at line 79 of file HistToolKit.h.
TH1F* GetErrorBarRatioHistOfTwoHists | ( | string | name, |
string | title, | ||
string | xaxistitle, | ||
string | yaxistitle, | ||
TH1F * | numeratorhist, | ||
TH1F * | denominatorhist | ||
) |
int GetNumberOfEvents | ( | const std::string & | filename, |
std::map< string, int > * | channelvsbumber | ||
) |
Definition at line 130 of file HistToolKit.h.
TH1F* GetRatioHistOfTwoHists | ( | string | name, |
string | title, | ||
string | xaxistitle, | ||
string | yaxistitle, | ||
TH1F * | numeratorhist, | ||
TH1F * | denominatorhist | ||
) |
Definition at line 1446 of file HistToolKit.h.
int SetHistDrawOption | ( | std::vector< std::pair< TH1F *, bool > > | histvec, |
TLegend * | leg | ||
) |
Definition at line 199 of file HistToolKit.h.
int SetHistDrawOption | ( | TH1F * | hist, |
TLegend * | leg, | ||
bool | DrawHistorNot = false |
||
) |
Definition at line 184 of file HistToolKit.h.
bool sort_by_histmax | ( | TH1F * | hist1, |
TH1F * | hist2 | ||
) |
Definition at line 1481 of file HistToolKit.h.
bool sort_by_vechistmax | ( | std::pair< TH1F *, bool > | p1, |
std::pair< TH1F *, bool > | p2 | ||
) |
Definition at line 1485 of file HistToolKit.h.