Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-17 08:07:30

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           "ReconstructedChargedWithoutPIDParticleAssociations", // edm4eic::MCRecoParticleAssociationCollection
0027           "DRICHMergedIrtCherenkovParticleID",                  // edm4eic::CherenkovParticleID
0028       },
0029       {
0030           "ReconstructedChargedRealPIDParticles",            // edm4eic::ReconstructedParticle
0031           "ReconstructedChargedRealPIDParticleAssociations", // edm4eic::MCRecoParticleAssociationCollection
0032           "ReconstructedChargedRealPIDParticleIDs",          // edm4hep::ParticleID
0033       },
0034       app));
0035 }
0036 }