ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Helpers.hpp File Reference
#include <string>
#include "TEfficiency.h"
#include "TFitResult.h"
#include "TFitResultPtr.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TProfile.h"
#include "TROOT.h"
+ Include dependency graph for Helpers.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FW::PlotHelpers::Binning
 Nested binning struct for booking plots. More...
 

Namespaces

namespace  FW
 
namespace  FW::PlotHelpers
 

Functions

TH1F * FW::PlotHelpers::bookHisto (const char *histName, const char *histTitle, const Binning &varBinning)
 book a 1D histogram
 
TH2F * FW::PlotHelpers::bookHisto (const char *histName, const char *histTitle, const Binning &varXBinning, const Binning &varYBinning)
 book a 2D histogram
 
void FW::PlotHelpers::fillHisto (TH1F *hist, float value, float weight=1.0)
 fill a 1D histogram
 
void FW::PlotHelpers::fillHisto (TH2F *hist, float xValue, float yValue, float weight=1.0)
 fill a 2D histogram
 
void FW::PlotHelpers::anaHisto (TH1D *inputHist, int j, TH1F *meanHist, TH1F *widthHist)
 extract details, i.e. mean and width of a 1D histogram and fill them into histograms
 
TEfficiency * FW::PlotHelpers::bookEff (const char *effName, const char *effTitle, const Binning &varBinning)
 book a 1D efficiency plot
 
TEfficiency * FW::PlotHelpers::bookEff (const char *effName, const char *effTitle, const Binning &varXBinning, const Binning &varYBinning)
 book a 2D efficiency plot
 
void FW::PlotHelpers::fillEff (TEfficiency *efficiency, float value, bool status)
 fill a 1D efficiency plot
 
void FW::PlotHelpers::fillEff (TEfficiency *efficiency, float xValue, float yValue, bool status)
 fill a 2D efficiency plot
 
TProfile * FW::PlotHelpers::bookProf (const char *profName, const char *profTitle, const Binning &varXBinning, const Binning &varYBinning)
 book a TProfile plot
 
void FW::PlotHelpers::fillProf (TProfile *profile, float xValue, float yValue, float weight=1.0)
 fill a TProfile plot