Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:17:19

0001 // Copyright 2020, Jefferson Science Associates, LLC.
0002 // Subject to the terms in the LICENSE file found in the top-level directory.
0003 //
0004 // This file is what makes this a plugin. When attached to a JANA process
0005 // it will add a JTestRootEventSource, JTestRootProcessor and a JFactory_Cluster
0006 // factory. The JFactory_Cluster will make Cluster objects that can also be used
0007 // by other plugins.
0008 
0009 #include <JANA/JApplication.h>
0010 #include <JANA/JFactoryGenerator.h>
0011 
0012 #include "JTestRootEventSource.h"
0013 #include "JTestRootProcessor.h"
0014 #include "JFactory_Cluster.h"
0015 
0016 extern "C" {
0017 void InitPlugin(JApplication* app) {
0018 
0019     InitJANAPlugin(app);
0020 
0021     LOG << "Loading RootDatamodelExample" << LOG_END;
0022     app->Add(new JTestRootEventSource);
0023     app->Add(new JTestRootProcessor);
0024     app->Add(new JFactoryGeneratorT<JFactory_Cluster>);
0025 }
0026 }
0027