Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-07-01 07:56:32

0001 // SPDX-License-Identifier: LGPL-3.0-or-later
0002 // Copyright (C) 2022, 2023, Christopher Dilks
0003 
0004 #include <JANA/JApplicationFwd.h>
0005 #include <string>
0006 
0007 #include "algorithms/interfaces/WithPodConfig.h"
0008 #include "extensions/jana/JOmniFactoryGeneratorT.h"
0009 // factories
0010 #include "factories/pid/MatchToRICHPID_factory.h"
0011 
0012 extern "C" {
0013 void InitPlugin(JApplication* app) {
0014   InitJANAPlugin(app);
0015 
0016   using namespace eicrecon;
0017 
0018   // wiring between factories and data ///////////////////////////////////////
0019 
0020   // link charged particles to PID and to MC truth
0021   app->Add(new JOmniFactoryGeneratorT<MatchToRICHPID_factory>(
0022       "ChargedParticlesWithAssociations",
0023       {
0024           "ReconstructedChargedWithoutPIDParticles",            // edm4eic::ReconstructedParticle
0025           "ReconstructedChargedWithoutPIDParticleAssociations", // edm4eic::MCRecoParticleAssociationCollection
0026           "DRICHMergedIrtCherenkovParticleID",                  // edm4eic::CherenkovParticleID
0027       },
0028       {
0029           "ReconstructedChargedRealPIDParticles",            // edm4eic::ReconstructedParticle
0030           "ReconstructedChargedRealPIDParticleAssociations", // edm4eic::MCRecoParticleAssociationCollection
0031           "ReconstructedChargedRealPIDParticleIDs",          // edm4hep::ParticleID
0032       },
0033       app));
0034 }
0035 }