File indexing completed on 2025-01-18 10:17:41
0001
0002
0003
0004
0005 #include <memory>
0006
0007 #include <JANA/JApplication.h>
0008 #include <JANA/JFactoryGenerator.h>
0009
0010 #include "JTestParser.h"
0011 #include "JTestPlotter.h"
0012 #include "JTestDisentangler.h"
0013 #include "JTestTracker.h"
0014
0015
0016 extern "C"{
0017 void InitPlugin(JApplication *app){
0018
0019 InitJANAPlugin(app);
0020 app->Add(new JTestParser);
0021 app->Add(new JTestPlotter);
0022 app->Add(new JFactoryGeneratorT<JTestDisentangler>());
0023 app->Add(new JFactoryGeneratorT<JTestTracker>());
0024
0025 bool except_on_loading = app->RegisterParameter("jtest:except_on_loading", false);
0026 if (except_on_loading) {
0027 throw JException("Planned exception on loading!");
0028 }
0029
0030
0031 app->ProvideService(std::make_shared<JTestCalibrationService>());
0032
0033 }
0034 }
0035