File indexing completed on 2024-04-06 12:29:39
0001 #ifndef TrackAssociation_h
0002 #define TrackAssociation_h
0003
0004 #include "DataFormats/TrackCandidate/interface/TrackCandidateCollection.h"
0005 #include "DataFormats/TrackReco/interface/Track.h"
0006 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0007 #include "DataFormats/TrajectorySeed/interface/TrajectorySeed.h"
0008 #include "SimDataFormats/TrackingAnalysis/interface/TrackingParticle.h"
0009 #include "SimDataFormats/TrackingAnalysis/interface/TrackingParticleFwd.h"
0010 #include "DataFormats/Common/interface/OneToManyWithQualityGeneric.h"
0011 #include "DataFormats/Common/interface/AssociationMap.h"
0012 #include "DataFormats/Common/interface/View.h"
0013
0014 namespace reco {
0015
0016 template <typename T_TrackColl>
0017 using SimToRecoCollectionT =
0018 edm::AssociationMap<edm::OneToManyWithQualityGeneric<TrackingParticleCollection, T_TrackColl, double>>;
0019
0020 using SimToRecoCollection = SimToRecoCollectionT<edm::View<reco::Track>>;
0021 using SimToRecoCollectionSeed = SimToRecoCollectionT<edm::View<TrajectorySeed>>;
0022 using SimToRecoCollectionTCandidate = SimToRecoCollectionT<TrackCandidateCollection>;
0023
0024 template <typename T_TrackColl>
0025 using RecoToSimCollectionT =
0026 edm::AssociationMap<edm::OneToManyWithQualityGeneric<T_TrackColl, TrackingParticleCollection, double>>;
0027
0028 using RecoToSimCollection = RecoToSimCollectionT<edm::View<reco::Track>>;
0029 using RecoToSimCollectionSeed = RecoToSimCollectionT<edm::View<TrajectorySeed>>;
0030 using RecoToSimCollectionTCandidate = RecoToSimCollectionT<TrackCandidateCollection>;
0031
0032 }
0033
0034 #endif