CMS 3D CMS Logo

ConversionTrackImporter.cc
Go to the documentation of this file.
3 
4 namespace {
5  class ConversionAdaptor {
6  public:
7  static bool check_importable(const reco::PFConversionCollection::value_type& t) {
8  return (t.pfTracks().size() >= 2);
9  }
10  static const std::vector<reco::PFRecTrackRef>& get_track_refs(const reco::PFConversionCollection::value_type& t) {
11  return t.pfTracks();
12  }
13  static void set_element_info(reco::PFBlockElement* elem, const edm::Ref<reco::PFConversionCollection>& parref) {
14  elem->setConversionRef(parref->originalConversion(), reco::PFBlockElement::T_FROM_GAMMACONV);
15  }
16  };
17 } // namespace
18 
21 
Abstract base class for a PFBlock element (track, cluster...)
pflow::importers::TrackFromParentImporter< reco::PFConversionCollection, ConversionAdaptor > ConversionTrackImporter
virtual void setConversionRef(const ConversionRef &convRef, TrackType trType)
#define DEFINE_EDM_PLUGIN(factory, type, name)