Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-06-29 07:06:07

0001 // Copyright 2022, David Lawrence
0002 // Subject to the terms in the LICENSE file found in the top-level directory.
0003 //
0004 //
0005 
0006 #include <string>
0007 #include <vector>
0008 
0009 #include "JANA/JApplication.h"
0010 #include "eicrecon_cli.h"
0011 
0012 /// The default plugins
0013 /// Add new default plugin names here and the main() will do JApplication::AddPlugin() for you.
0014 std::vector<std::string> EICRECON_DEFAULT_PLUGINS = {
0015 
0016         "log",
0017         "dd4hep",
0018         "acts",
0019         "algorithms_init",
0020         "evaluator",
0021         "pid_lut",
0022         "richgeo",
0023         "rootfile",
0024         "beam",
0025         "reco",
0026         "tracking",
0027         "pid",
0028         "EEMC",
0029         "BEMC",
0030         "FEMC",
0031         "EHCAL",
0032         "BHCAL",
0033         "FHCAL",
0034         "B0ECAL",
0035         "ZDC",
0036         "BTRK",
0037         "BVTX",
0038         "PFRICH",
0039         "DIRC",
0040         "DRICH",
0041         "ECTRK",
0042         "MPGD",
0043         "B0TRK",
0044         "RPOTS",
0045         "FOFFMTRK",
0046         "BTOF",
0047         "ECTOF",
0048         "LOWQ2",
0049         "LUMISPECCAL",
0050         "podio",
0051         "janatop",
0052 };
0053 
0054 int main( int narg, char **argv)
0055 {
0056     std::vector<std::string> default_plugins = EICRECON_DEFAULT_PLUGINS;
0057 
0058     auto options = jana::GetCliOptions(narg, argv, false);
0059 
0060     if (jana::HasPrintOnlyCliOptions(options, default_plugins))
0061         return -1;
0062 
0063     AddAvailablePluginsToOptionParams(options, default_plugins);
0064 
0065     japp = jana::CreateJApplication(options);
0066 
0067     auto exit_code = jana::Execute(japp, options);
0068 
0069     delete japp;
0070     return exit_code;
0071 }