CMS 3D CMS Logo

V0TrackImporter.cc
Go to the documentation of this file.
3 
4 namespace {
5  class V0Adaptor {
6  public:
7  static bool check_importable(const reco::PFV0Collection::value_type& t) { return true; }
8  static const std::vector<reco::PFRecTrackRef>& get_track_refs(const reco::PFV0Collection::value_type& t) {
9  return t.pfTracks();
10  }
11  static void set_element_info(reco::PFBlockElement* elem, const edm::Ref<reco::PFV0Collection>& parref) {
12  elem->setV0Ref(parref->originalV0(), reco::PFBlockElement::T_FROM_V0);
13  }
14  };
15 } // namespace
16 
18 
pflow::importers::TrackFromParentImporter
Definition: TrackFromParentImporter.h:25
TrackFromParentImporter.h
edm::Ref
Definition: AssociativeIterator.h:58
OrderedSet.t
t
Definition: OrderedSet.py:90
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: PluginFactory.h:124
reco::PFBlockElement::T_FROM_V0
Definition: PFBlockElement.h:47
V0TrackImporter
pflow::importers::TrackFromParentImporter< reco::PFV0Collection, V0Adaptor > V0TrackImporter
Definition: V0TrackImporter.cc:17
edmplugin::PluginFactory
Definition: PluginFactory.h:34
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition: JetExtendedAssociation.h:30
reco::PFBlockElement
Abstract base class for a PFBlock element (track, cluster...)
Definition: PFBlockElement.h:26
PFV0.h
reco::PFBlockElement::setV0Ref
virtual void setV0Ref(const VertexCompositeCandidateRef &v0ref, TrackType trType)
Definition: PFBlockElement.h:105