Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-09-27 07:03:06

0001 // SPDX-License-Identifier: LGPL-3.0-or-later
0002 // Copyright (C) 2022, 2023, Christopher Dilks
0003 
0004 
0005 #include <JANA/JApplication.h>
0006 #include <string>
0007 
0008 #include "algorithms/interfaces/WithPodConfig.h"
0009 #include "extensions/jana/JOmniFactoryGeneratorT.h"
0010 // factories
0011 #include "global/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     // clang-format off
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             "ReconstructedChargedRealPIDParticleAssociations", // edm4eic::MCRecoParticleAssociationCollection
0033             "ReconstructedChargedRealPIDParticleIDs",          // edm4hep::ParticleID
0034           },
0035           app
0036           ));
0037   }
0038 }