|
ATLAS Offline Software
|
Go to the documentation of this file.
13 #include "TDirectoryFile.h"
98 int xbins,
double xstart,
double xend,
99 int ybins,
double ystart,
double yend)
const {
106 ybins, ystart, yend);
111 ybins, ystart, yend);
122 int xbins,
double* xbinArray,
123 int ybins,
double* ybinArray)
const {
146 int xbins,
double* xbinArray,
147 int ybins,
double ystart,
double yend)
const {
154 ybins, ystart, yend);
159 ybins, ystart, yend);
171 throw std::runtime_error(
"PlotManager::hist: Histogram " +
name +
" does not exist.");
179 it->second->Scale(
sf);
184 throw std::runtime_error(
"PlotManager::addHist: Histogram " +
hname +
" to add already exists.");
JetConstituentVector::iterator iterator
void addOutput(TObject *output_swallow) final override
effects: add an object to the output.
TopConfig A simple configuration that is NOT a singleton.
std::unordered_map< std::string, TH1 * > m_histograms
A map that's hopefully quick to search because it'll be used a lot per event.
void scaleHistograms(double sf=1.) const
Save the histograms in alphabetical order.
TH1 * hist(const std::string &name) const
Recover an existing histogram, to fill it for example.
void checkDuplicate(const std::string &hname) const
Helper method to check for duplicates when adding histogram.
void addHist(const std::string &hname, const std::string &title, int bins, double start, double end) const
Add a 1D histogram to the output file.
PlotManager(const std::string &name, TFile *outputFile=nullptr, EL::Worker *wk=nullptr)
A name for the selection.
std::string m_name
Name of the folder to store the plots in, in the output file.