CMS 3D CMS Logo

ConversionTrackImporter.cc
Go to the documentation of this file.
4 
5 namespace {
6  class ConversionAdaptor {
7  public:
8  static bool check_importable(const reco::PFConversionCollection::value_type& t) {
9  return (t.pfTracks().size() >= 2);
10  }
11  static const std::vector<reco::PFRecTrackRef>&
12  get_track_refs(const reco::PFConversionCollection::value_type& t) {
13  return t.pfTracks();
14  }
15  static void set_element_info(reco::PFBlockElement* elem,
17  elem->setConversionRef(parref->originalConversion(),
19  }
20  };
21 }
22 
24 
26  ConversionTrackImporter,
27  "ConversionTrackImporter");
Abstract base class for a PFBlock element (track, cluster...)
def elem(elemtype, innerHTML='', html_class='', kwargs)
Definition: HTMLExport.py:19
virtual void setConversionRef(const ConversionRef &convRef, TrackType trType)
#define DEFINE_EDM_PLUGIN(factory, type, name)
pflow::importers::TrackFromParentImporter< reco::PFConversionCollection, ConversionAdaptor > ConversionTrackImporter