CMS 3D CMS Logo

V0TrackImporter.cc
Go to the documentation of this file.
4 
5 namespace {
6  class V0Adaptor {
7  public:
8  static bool check_importable(const reco::PFV0Collection::value_type& t) { return true; }
9  static const std::vector<reco::PFRecTrackRef>& get_track_refs(const reco::PFV0Collection::value_type& t) {
10  return t.pfTracks();
11  }
12  static void set_element_info(reco::PFBlockElement* elem, const edm::Ref<reco::PFV0Collection>& parref) {
13  elem->setV0Ref(parref->originalV0(), reco::PFBlockElement::T_FROM_V0);
14  }
15  };
16 } // namespace
17 
19 
20 DEFINE_EDM_PLUGIN(BlockElementImporterFactory, V0TrackImporter, "V0TrackImporter");
Abstract base class for a PFBlock element (track, cluster...)
virtual void setV0Ref(const VertexCompositeCandidateRef &v0ref, TrackType trType)
def elem(elemtype, innerHTML='', html_class='', kwargs)
Definition: HTMLExport.py:19
pflow::importers::TrackFromParentImporter< reco::PFV0Collection, V0Adaptor > V0TrackImporter
#define DEFINE_EDM_PLUGIN(factory, type, name)