Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /EICrecon/src/services/io/podio/podio.cc was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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