Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-07-06 07:55:53

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 <JANA/JApplicationFwd.h>
0007 #include <JANA/JEventSourceGeneratorT.h>
0008 
0009 #include "JEventProcessorPODIO.h"
0010 #include "JEventSourcePODIO.h"
0011 
0012 // Make this a JANA plugin
0013 extern "C" {
0014 void InitPlugin(JApplication* app) {
0015   InitJANAPlugin(app);
0016   app->Add(new JEventSourceGeneratorT<JEventSourcePODIO>());
0017 
0018   // Disable this behavior for now so one can run eicrecon with only the
0019   // input file as an argument.
0020   // Only add a EICRootWriter if the user has specified a configuration parameter relevant to writing
0021   //    if( app->GetJParameterManager()->Exists("podio:output_file")
0022   //        ||  app->GetJParameterManager()->Exists("podio:output_file_copy_dir")
0023   //        ||  app->GetJParameterManager()->Exists("podio:output_include_collections")
0024   //        ||  app->GetJParameterManager()->Exists("podio:output_exclude_collections")        ){
0025   app->Add(new JEventProcessorPODIO());
0026   //    }
0027 }
0028 }