Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:29:38

0001 
0002 // Copyright 2020, Jefferson Science Associates, LLC.
0003 // Subject to the terms in the LICENSE file found in the top-level directory.
0004 
0005 
0006 #include <JANA/JApplication.h>
0007 #include <JANA/JFactoryGenerator.h>
0008 
0009 #include "TutorialProcessor.h"
0010 #include "RandomSource.h"
0011 #include "SimpleClusterFactory.h"
0012 
0013 extern "C" {
0014 void InitPlugin(JApplication* app) {
0015 
0016     InitJANAPlugin(app);
0017 
0018     LOG << "Loading Tutorial" << LOG_END;
0019     app->Add(new TutorialProcessor);
0020     app->Add(new JFactoryGeneratorT<SimpleClusterFactory>);
0021 
0022     // Always use RandomSource
0023     app->Add(new RandomSource());
0024 
0025     // Only use RandomSource when 'random' specified on cmd line
0026     // app->Add(new JEventSourceGeneratorT<RandomSource>); 
0027 
0028 }
0029 }
0030