|
Crombie Tools
|
This class has everything needed to draw a plot. More...
#include <Plotter.h>
Classes | |
| struct | PlotInfo |
Public Member Functions | |
| void | add (unsigned isub, const FileConfig::DirectoryInfo &info, const Hist::Hist &hist) |
| Add a plot to the inner store. Processes are merged together. More... | |
| void | draw (const std::string &filebase) |
| One of the messier functions which draws the plot at the desired location. More... | |
| void | scale (double lumi) |
| Scale the MC plots to match the given luminosity. More... | |
Private Attributes | |
| double | currentlumi {0.0} |
| The last luminosity scaled to. 0 if not set yet. More... | |
| Types::map< Types::map< PlotInfo > > | plotstore {} |
| First key is directory, then label. More... | |
This class has everything needed to draw a plot.
Definition at line 29 of file src/include/crombie/Plotter.h.
| void crombie::Plotter::Plot::add | ( | unsigned | isub, |
| const FileConfig::DirectoryInfo & | info, | ||
| const Hist::Hist & | hist | ||
| ) |
Add a plot to the inner store. Processes are merged together.
Definition at line 291 of file src/include/crombie/Plotter.h.
References crombie::FileConfig::Background, crombie::FileConfig::Data, Debug::Debug(), crombie_completion::dir, crombie::Hist::Hist::get_maxbin_outof(), crombie::Plotter::Plot::PlotInfo::hist, crombie::FileConfig::DirectoryInfo::name, plotstore, crombie::FileConfig::DirectoryInfo::processes, crombie::FileConfig::Signal, crombie::Plotter::Plot::PlotInfo::style, crombie::Plotter::Plot::PlotInfo::type, crombie::FileConfig::DirectoryInfo::type, and crombie::FileConfig::DirectoryInfo::xs.
| void crombie::Plotter::Plot::draw | ( | const std::string & | filebase | ) |
One of the messier functions which draws the plot at the desired location.
Definition at line 362 of file src/include/crombie/Plotter.h.
References crombie::Hist::Hist::add(), crombie::FileConfig::Background, currentlumi, crombie::FileConfig::Data, Debug::Debug(), crombie_completion::dir, crombie::Misc::env(), crombie::Plotter::Plot::PlotInfo::hist, plotstore, crombie::FileConfig::Signal, crombie::Plotter::Plot::PlotInfo::style, and crombie::Plotter::Plot::PlotInfo::type.
| void crombie::Plotter::Plot::scale | ( | double | lumi | ) |
Scale the MC plots to match the given luminosity.
Definition at line 346 of file src/include/crombie/Plotter.h.
References currentlumi, crombie::FileConfig::Data, crombie_completion::dir, and plotstore.
|
private |
The last luminosity scaled to. 0 if not set yet.
Definition at line 52 of file src/include/crombie/Plotter.h.
|
private |
First key is directory, then label.
Definition at line 50 of file src/include/crombie/Plotter.h.