Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-03-24 03:14:41

0001 #ifndef DataFormats_JetMatching_JetMatchedPartons_h
0002 #define DataFormats_JetMatching_JetMatchedPartons_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/MatchedPartons.h"
0008 #include <vector>
0009 
0010 namespace reco {
0011 
0012   typedef edm::AssociationVector<edm::RefToBaseProd<reco::Jet>, std::vector<reco::MatchedPartons> >
0013       JetMatchedPartonsCollectionBase;
0014 
0015   class JetMatchedPartonsCollection : public JetMatchedPartonsCollectionBase {
0016   public:
0017     JetMatchedPartonsCollection() : JetMatchedPartonsCollectionBase() {}
0018 
0019     JetMatchedPartonsCollection(const reco::CaloJetRefProd &ref)
0020         : JetMatchedPartonsCollectionBase(edm::RefToBaseProd<reco::Jet>(ref)) {}
0021 
0022     JetMatchedPartonsCollection(const JetMatchedPartonsCollectionBase &v) : JetMatchedPartonsCollectionBase(v) {}
0023   };
0024 
0025   typedef JetMatchedPartonsCollection::value_type JetMatchedPartons;
0026 
0027   typedef edm::Ref<JetMatchedPartonsCollection> JetMatchedPartonsRef;
0028 
0029   typedef edm::RefProd<JetMatchedPartonsCollection> JetMatchedPartonsRefProd;
0030 
0031   typedef edm::RefVector<JetMatchedPartonsCollection> JetMatchedPartonsRefVector;
0032 
0033 }  // namespace reco
0034 
0035 #endif  // DataFormats_JetMatching_JetMatchedPartons_h