Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoParticleFlow
PFProducer
plugins
importers
V0TrackImporter.cc
Go to the documentation of this file.
1
#include "
TrackFromParentImporter.h
"
2
#include "
DataFormats/ParticleFlowReco/interface/PFV0Fwd.h
"
3
#include "
DataFormats/ParticleFlowReco/interface/PFV0.h
"
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
22
typedef
pflow::importers::TrackFromParentImporter<reco::PFV0Collection,V0Adaptor>
V0TrackImporter
;
23
24
DEFINE_EDM_PLUGIN
(
BlockElementImporterFactory
,
25
V0TrackImporter,
26
"V0TrackImporter"
);
reco::PFBlockElement
Abstract base class for a PFBlock element (track, cluster...)
Definition:
PFBlockElement.h:28
PFV0Fwd.h
pflow::importers::TrackFromParentImporter
Definition:
TrackFromParentImporter.h:31
lumiQTWidget.t
tuple t
Definition:
lumiQTWidget.py:50
edm::Ref
Definition:
AssociativeIterator.h:51
V0TrackImporter
pflow::importers::TrackFromParentImporter< reco::PFV0Collection, V0Adaptor > V0TrackImporter
Definition:
V0TrackImporter.cc:22
reco::PFBlockElement::T_FROM_V0
Definition:
PFBlockElement.h:55
TrackFromParentImporter.h
PFV0.h
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition:
JetExtendedAssociation.h:30
edmplugin::PluginFactory
Definition:
PluginFactory.h:31
HTMLExport.elem
def elem
Definition:
HTMLExport.py:18
reco::PFBlockElement::setV0Ref
virtual void setV0Ref(const VertexCompositeCandidateRef &v0ref, TrackType trType)
Definition:
PFBlockElement.h:114
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:101
Generated for CMSSW Reference Manual by
1.8.5