/** * @file main.cpp * @brief File with the main() function that created an instance saffron and * passes command line options. * @author Dan Saunders, on behalf of the SoLid collaboration. * @date 16 Feb 2016 */ // Doxygen welcome spash /*! \mainpage Saffron2 Doxygen * * \section intro_sec Welcome * * These webpages provide the doxygen documentation for the Saffron2 repository. * This includes documentation on the classes and methods used. For more general * documentation, including conventions, commit instructions, worked examples * etc. see the Saffron2 wiki: https://bitbucket.org/solidexperiment/saffron2/wiki/Home * * This doxygen documentation is re-generated for each release of Saffron2 * (AKA tagged version of the master branch). The webpages are hosted on bitbucket * (in a separate repository for convenience). * * D. Saunders */ #include #include "TFile.h" #include "TH1F.h" #include #include "SSaffron.h" #include "SRunStatus/SRunStatus.h" int main(int argc, char *argv[]) { std::cout<<"\n\n==============================================================================="<ProcessLine("#include "); // Needed to read sm1 data. // gROOT->ProcessLine("gErrorIgnoreLevel = kFatal;"); // For sanity. // Get options file name. std::string opsFileName; std::vector commandLineOps; if (argc == 1) SRunStatus(SStatusType::InstantFinishError, __FUNCTION__, "Options file not passed. Killing."); else { for (int i=1; i