/* EVBApp.cpp Class which represents the API of the event building environment. Wraps together the core concepts of the event builder, from conversion to plotting. Even intended to be able to archive data. Currently under development. Written by G.W. McCann Oct. 2020 */ #include #include "EVBApp.h" #include "RunCollector.h" #include "CompassRun.h" #include "SlowSort.h" #include "FastSort.h" #include "SFPAnalyzer.h" #include "SFPPlotter.h" namespace EventBuilder { EVBApp::EVBApp() : m_rmin(0), m_rmax(0), m_ZT(0), m_AT(0), m_ZP(0), m_AP(0), m_ZE(0), m_AE(0), m_ZR(0), m_AR(0), m_B(0), m_Theta(0), m_BKE(0), m_workspace("none"), m_mapfile("none"), m_shiftfile("none"), m_cutList("none"), m_SlowWindow(0), m_FastWindowIonCh(0), m_FastWindowSABRE(0), m_pb(nullptr) { } EVBApp::~EVBApp() { } bool EVBApp::ReadConfigFile(const std::string& fullpath) { std::cout<<"Reading in configuration from file: "<>junk>>m_workspace; input>>junk; std::getline(input, junk); std::getline(input, junk); input>>junk>>m_mapfile; input>>junk>>m_scalerfile; input>>junk>>m_cutList; input>>junk>>m_ZT>>junk>>m_AT; input>>junk>>m_ZP>>junk>>m_AP; input>>junk>>m_ZE>>junk>>m_AE; input>>junk>>m_B; input>>junk>>m_BKE; input>>junk>>m_Theta; input>>junk; std::getline(input, junk); std::getline(input, junk); input>>junk>>m_shiftfile; input>>junk>>m_SlowWindow; input>>junk>>m_FastWindowIonCh; input>>junk>>m_FastWindowSABRE; input>>junk; std::getline(input, junk); std::getline(input, junk); input>>junk>>m_rmin; input>>junk>>m_rmax; input.close(); std::cout<<"Completed."<