#include #include #include "TApplication.h" #include "TROOT.h" #include "TSystem.h" #include "TCanvas.h" #include "Processor.h" int main(int argc, char **argv) { //Create the application TApplication myApp("myApp", &argc, argv); //Ask the action while(true) { //Question std::cout << "Which action?" << std::endl; std::string ask; std::cin >> ask; //Answer if(ask == "acquire") //Some action... { } else if(ask == "analyse") { } else if(ask == "process") { //Ask for the folder std::cout << "Folder: Raw/"; std::string folder; std::cin >> folder; //Process Processor processor("Raw/"+folder); //Run the application myApp.Run(true); } else if(ask == "q") { //Exit myApp.SetReturnFromRun(false); myApp.Terminate(); } } return 0; }