Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-03-29 07:49:40

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