File indexing completed on 2024-04-06 12:04:23
0001 #ifndef DataFormats_JetMatching_JetFlavourMatching_h
0002 #define DataFormats_JetMatching_JetFlavourMatching_h
0003
0004 #include "DataFormats/JetReco/interface/CaloJetCollection.h"
0005 #include "DataFormats/Common/interface/AssociationVector.h"
0006 #include "DataFormats/Common/interface/RefToBaseProd.h"
0007 #include "DataFormats/JetMatching/interface/JetFlavour.h"
0008 #include <vector>
0009
0010 namespace reco {
0011
0012 typedef edm::AssociationVector<edm::RefToBaseProd<reco::Jet>, std::vector<reco::JetFlavour> >
0013 JetFlavourMatchingCollectionBase;
0014
0015 class JetFlavourMatchingCollection : public JetFlavourMatchingCollectionBase {
0016 public:
0017 JetFlavourMatchingCollection() : JetFlavourMatchingCollectionBase() {}
0018
0019 JetFlavourMatchingCollection(const reco::CaloJetRefProd &ref)
0020 : JetFlavourMatchingCollectionBase(edm::RefToBaseProd<reco::Jet>(ref)) {}
0021
0022 JetFlavourMatchingCollection(const JetFlavourMatchingCollectionBase &v) : JetFlavourMatchingCollectionBase(v) {}
0023 };
0024
0025 typedef JetFlavourMatchingCollection::value_type JetFlavourMatching;
0026
0027 typedef edm::Ref<JetFlavourMatchingCollection> JetFlavourMatchingRef;
0028
0029 typedef edm::RefProd<JetFlavourMatchingCollection> JetFlavourMatchingRefProd;
0030
0031 typedef edm::RefVector<JetFlavourMatchingCollection> JetFlavourMatchingRefVector;
0032
0033 }
0034
0035 #endif