Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Helpers.hpp File Reference
#include <string>
#include <utility>
#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

class  ActsExamples::PlotHelpers::Binning
 Nested binning struct for booking plots. More...
 

Namespaces

namespace  ActsExamples
 
namespace  ActsExamples::PlotHelpers
 

Functions

TH1F * ActsExamples::PlotHelpers::bookHisto (const char *histName, const char *histTitle, const Binning &varBinning)
 book a 1D histogram
 
TH2F * ActsExamples::PlotHelpers::bookHisto (const char *histName, const char *histTitle, const Binning &varXBinning, const Binning &varYBinning)
 book a 2D histogram
 
void ActsExamples::PlotHelpers::fillHisto (TH1F *hist, float value, float weight=1.0)
 fill a 1D histogram
 
void ActsExamples::PlotHelpers::fillHisto (TH2F *hist, float xValue, float yValue, float weight=1.0)
 fill a 2D histogram
 
void ActsExamples::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 * ActsExamples::PlotHelpers::bookEff (const char *effName, const char *effTitle, const Binning &varBinning)
 book a 1D efficiency plot
 
TEfficiency * ActsExamples::PlotHelpers::bookEff (const char *effName, const char *effTitle, const Binning &varXBinning, const Binning &varYBinning)
 book a 2D efficiency plot
 
void ActsExamples::PlotHelpers::fillEff (TEfficiency *efficiency, float value, bool status)
 fill a 1D efficiency plot
 
void ActsExamples::PlotHelpers::fillEff (TEfficiency *efficiency, float xValue, float yValue, bool status)
 fill a 2D efficiency plot
 
TProfile * ActsExamples::PlotHelpers::bookProf (const char *profName, const char *profTitle, const Binning &varXBinning, const Binning &varYBinning)
 book a TProfile plot
 
void ActsExamples::PlotHelpers::fillProf (TProfile *profile, float xValue, float yValue, float weight=1.0)
 fill a TProfile plot