File indexing completed on 2025-01-30 10:29:38
0001
0002 #include <JANA/JApplication.h>
0003 #include <JANA/Components/JOmniFactoryGeneratorT.h>
0004 #include "PodioClusteringFactory.h"
0005 #include "PodioProtoclusteringFactory.h"
0006
0007 extern "C"{
0008 void InitPlugin(JApplication *app) {
0009
0010 InitJANAPlugin(app);
0011
0012 auto cluster_gen = new JOmniFactoryGeneratorT<PodioClusteringFactory>();
0013
0014 cluster_gen->AddWiring("clusterizer",
0015 {"protoclusters"},
0016 {"clusters"},
0017 {.offset=1000});
0018
0019 app->Add(cluster_gen);
0020
0021
0022
0023 auto protocluster_gen = new JOmniFactoryGeneratorT<PodioProtoclusteringFactory>();
0024
0025 protocluster_gen->AddWiring("protoclusterizer",
0026 {"hits"},
0027 {"protoclusters"});
0028
0029 app->Add(protocluster_gen);
0030
0031 }
0032 }