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) {
9  return true;
10  }
11  static const std::vector<reco::PFRecTrackRef>&
12  get_track_refs(const reco::PFV0Collection::value_type& t) {
13  return t.pfTracks();
14  }
15  static void set_element_info(reco::PFBlockElement* elem,
16  const edm::Ref<reco::PFV0Collection>& parref) {
17  elem->setV0Ref(parref->originalV0(), reco::PFBlockElement::T_FROM_V0);
18  }
19  };
20 }
21 
23 
25  V0TrackImporter,
26  "V0TrackImporter");
Abstract base class for a PFBlock element (track, cluster...)
pflow::importers::TrackFromParentImporter< reco::PFV0Collection, V0Adaptor > V0TrackImporter
virtual void setV0Ref(const VertexCompositeCandidateRef &v0ref, TrackType trType)
def elem(elemtype, innerHTML='', html_class='', kwargs)
Definition: HTMLExport.py:19
#define DEFINE_EDM_PLUGIN(factory, type, name)