Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-25 08:28:36

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 <string>
0007 #include <vector>
0008 
0009 #include "extensions/jana/JOmniFactoryGeneratorT.h"
0010 // factories
0011 #include "factories/pid/MatchToRICHPID_factory.h"
0012 
0013 extern "C" {
0014 void InitPlugin(JApplication* app) {
0015   InitJANAPlugin(app);
0016 
0017   using namespace eicrecon;
0018 
0019   // wiring between factories and data ///////////////////////////////////////
0020 
0021   // link charged particles to PID and to MC truth
0022   app->Add(new JOmniFactoryGeneratorT<MatchToRICHPID_factory>(
0023       "ChargedParticlesWithAssociations",
0024       {
0025           "ReconstructedChargedWithoutPIDParticles",     // edm4eic::ReconstructedParticle
0026           "ReconstructedChargedWithoutPIDParticleLinks", // edm4eic::MCRecoParticleLinkCollection
0027           "DRICHMergedIrtCherenkovParticleID",           // edm4eic::CherenkovParticleID
0028       },
0029       {
0030           "ReconstructedChargedRealPIDParticles",     // edm4eic::ReconstructedParticle
0031           "ReconstructedChargedRealPIDParticleLinks", // edm4eic::MCRecoParticleLink
0032           "ReconstructedChargedRealPIDParticleAssociations", // edm4eic::MCRecoParticleAssociationCollection
0033           "ReconstructedChargedRealPIDParticleIDs",          // edm4hep::ParticleID
0034       },
0035       app));
0036 }
0037 }