JetMatchedPartonsCollection

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
#ifndef DataFormats_JetMatching_JetMatchedPartons_h
#define DataFormats_JetMatching_JetMatchedPartons_h

#include "DataFormats/JetReco/interface/CaloJetCollection.h"
#include "DataFormats/Common/interface/AssociationVector.h"
#include "DataFormats/Common/interface/RefToBaseProd.h"
#include "DataFormats/JetMatching/interface/MatchedPartons.h"
#include <vector>

namespace reco {

  typedef edm::AssociationVector<edm::RefToBaseProd<reco::Jet>, std::vector<reco::MatchedPartons> >
      JetMatchedPartonsCollectionBase;

  class JetMatchedPartonsCollection : public JetMatchedPartonsCollectionBase {
  public:
    JetMatchedPartonsCollection() : JetMatchedPartonsCollectionBase() {}

    JetMatchedPartonsCollection(const reco::CaloJetRefProd &ref)
        : JetMatchedPartonsCollectionBase(edm::RefToBaseProd<reco::Jet>(ref)) {}

    JetMatchedPartonsCollection(const JetMatchedPartonsCollectionBase &v) : JetMatchedPartonsCollectionBase(v) {}
  };

  typedef JetMatchedPartonsCollection::value_type JetMatchedPartons;

  typedef edm::Ref<JetMatchedPartonsCollection> JetMatchedPartonsRef;

  typedef edm::RefProd<JetMatchedPartonsCollection> JetMatchedPartonsRefProd;

  typedef edm::RefVector<JetMatchedPartonsCollection> JetMatchedPartonsRefVector;

}  // namespace reco

#endif  // DataFormats_JetMatching_JetMatchedPartons_h