GooFit
v2.1.3
|
#include <Application.h>
Public Member Functions | |
Application (std::string discription, int argc, char **argv) | |
Make a new Application. More... | |
Application (int argc, char **argv) | |
Shortcut for the lazy. More... | |
int | get_device () const |
Get the set GPU device. More... | |
void | run () |
simple run since argc and argv are stored More... | |
void | pre_callback () override |
Gets called in parse. More... | |
int | exit (const CLI::Error &e) |
Exit. More... | |
void | set_device () const |
~Application () override | |
Cleanup MPI if needed. More... | |
std::string | get_filename (const std::string &input_str, std::string base="") const |
Protected Attributes | |
int | gpuDev_ = 0 |
bool | show_gpus_ |
bool | quiet_ |
bool | splash_ |
int | argc_ |
char ** | argv_ |
struct sigaction | sigIntHandler |
Handle control-c codes. More... | |
Definition at line 42 of file Application.h.
GooFit::Application::Application | ( | std::string | discription, |
int | argc, | ||
char ** | argv | ||
) |
Make a new Application.
Definition at line 124 of file Application.cpp.
References argc_, argv_, gpuDev_, quiet_, GooFit::reset, show_gpus_, sigIntHandler, GooFit::signal_handler(), and splash_.
|
inline |
Shortcut for the lazy.
Definition at line 59 of file Application.h.
|
overridedefault |
int GooFit::Application::exit | ( | const CLI::Error & | e | ) |
Exit.
Definition at line 216 of file Application.cpp.
References GooFit::blue, GooFit::red, GooFit::reset, and ~Application().
Referenced by run().
|
inline |
std::string GooFit::Application::get_filename | ( | const std::string & | input_str, |
std::string | base = "" |
||
) | const |
Get a file from the current directory, looks up one and in the true current directory Base gives a relative path from the source directory
Definition at line 240 of file Application.cpp.
References argv_.
Referenced by getToyData(), makeBackgroundHistogram(), makeBkg2DalitzPdf(), makeBkg3Eff(), makeOverallSignal(), makeSigmaHists(), run(), runBackgroundDalitzFit(), runBackgroundSigmaFit(), runEfficiencyFit(), runGeneratedMCFit(), runToyFit(), and writeBackgroundHistograms().
|
override |
Gets called in parse.
Definition at line 198 of file Application.cpp.
References gpuDev_, GooFit::print_goofit_info(), GooFit::print_splash(), quiet_, set_device(), and splash_.
Referenced by run().
|
inline |
simple run since argc and argv are stored
Definition at line 66 of file Application.h.
References exit(), get_filename(), pre_callback(), set_device(), and ~Application().
void GooFit::Application::set_device | ( | ) | const |
Call if the application might fork, otherwise automatic For example, if explicitly using omp
Definition at line 208 of file Application.cpp.
References gpuDev_.
Referenced by pre_callback(), and run().
|
protected |
Definition at line 48 of file Application.h.
Referenced by Application().
|
protected |
Definition at line 49 of file Application.h.
Referenced by Application(), and get_filename().
|
protected |
Definition at line 44 of file Application.h.
Referenced by Application(), get_device(), pre_callback(), and set_device().
|
protected |
Definition at line 46 of file Application.h.
Referenced by Application(), and pre_callback().
|
protected |
Definition at line 45 of file Application.h.
Referenced by Application().
|
protected |
|
protected |
Definition at line 47 of file Application.h.
Referenced by Application(), and pre_callback().