Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert RecoParticleVertexAssociation and MCRecoTrackParticleAssociation #62

Merged
merged 1 commit into from
Mar 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion k4MarlinWrapper/k4MarlinWrapper/converters/IEDMConverter.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@
#include <edm4hep/MCRecoCaloParticleAssociationCollection.h>
#include <edm4hep/MCRecoParticleAssociation.h>
#include <edm4hep/MCRecoParticleAssociationCollection.h>
#include <edm4hep/MCRecoTrackParticleAssociation.h>
#include <edm4hep/MCRecoTrackParticleAssociationCollection.h>
#include <edm4hep/MCRecoTrackerAssociation.h>
#include <edm4hep/MCRecoTrackerAssociationCollection.h>
#include <edm4hep/ParticleIDCollection.h>
#include <edm4hep/RawCalorimeterHit.h>
#include <edm4hep/RawCalorimeterHitCollection.h>
#include <edm4hep/RecoParticleVertexAssociation.h>
#include <edm4hep/RecoParticleVertexAssociationCollection.h>
#include <edm4hep/ReconstructedParticle.h>
#include <edm4hep/ReconstructedParticleCollection.h>
#include <edm4hep/ReconstructedParticleData.h>
Expand Down Expand Up @@ -70,4 +74,4 @@ class IEDMConverter : virtual public IAlgTool {
virtual StatusCode convertCollections(lcio::LCEventImpl* lcio_event) = 0;
};

#endif
#endif
6 changes: 6 additions & 0 deletions k4MarlinWrapper/src/components/Lcio2EDM4hep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@ StatusCode Lcio2EDM4hepTool::convertCollections(lcio::LCEventImpl* the_event) {
} else if (e4h_coll_type_str == "edm4hep::MCRecoCaloParticleAssociation") {
convertRegister<edm4hep::MCRecoCaloParticleAssociationCollection>(m_params[i + 1], m_params[i],
lcio_converter, lcio_coll);
} else if (e4h_coll_type_str == "edm4hep::MCRecoTrackParticleAssociation") {
convertRegister<edm4hep::MCRecoTrackParticleAssociationCollection>(m_params[i + 1], m_params[i],
lcio_converter, lcio_coll);
} else if (e4h_coll_type_str == "edm4hep::RecoParticleVertexAssociation") {
convertRegister<edm4hep::RecoParticleVertexAssociationCollection>(m_params[i + 1], m_params[i],
lcio_converter, lcio_coll);
} else {
error() << "Unsuported LCRelation for collection " << m_params[i] << std::endl;
}
Expand Down