Main Page
Namespaces
Classes
Package Documentation
src
RecoParticleFlow
PFProducer
plugins
importers
ConversionTrackImporter.cc
Go to the documentation of this file.
1
#include "
TrackFromParentImporter.h
"
2
#include "
DataFormats/ParticleFlowReco/interface/PFConversionFwd.h
"
3
#include "
DataFormats/ParticleFlowReco/interface/PFConversion.h
"
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
,
16
const
edm::Ref<reco::PFConversionCollection>
& parref) {
17
elem->
setConversionRef
(parref->originalConversion(),
18
reco::PFBlockElement::T_FROM_GAMMACONV
);
19
}
20
};
21
}
22
23
typedef
pflow::importers::TrackFromParentImporter<reco::PFConversionCollection,ConversionAdaptor>
ConversionTrackImporter
;
24
25
DEFINE_EDM_PLUGIN
(
BlockElementImporterFactory
,
26
ConversionTrackImporter,
27
"ConversionTrackImporter"
);
reco::PFBlockElement
Abstract base class for a PFBlock element (track, cluster...)
Definition:
PFBlockElement.h:28
pflow::importers::TrackFromParentImporter
Definition:
TrackFromParentImporter.h:31
edm::Ref
Definition:
AssociativeIterator.h:51
PFConversionFwd.h
TrackFromParentImporter.h
reco::PFBlockElement::T_FROM_GAMMACONV
Definition:
PFBlockElement.h:54
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition:
JetExtendedAssociation.h:30
edmplugin::PluginFactory
Definition:
PluginFactory.h:33
protons_cff.t
t
Definition:
protons_cff.py:34
HTMLExport.elem
def elem(elemtype, innerHTML='', html_class='', kwargs)
Definition:
HTMLExport.py:19
reco::PFBlockElement::setConversionRef
virtual void setConversionRef(const ConversionRef &convRef, TrackType trType)
Definition:
PFBlockElement.h:113
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:121
PFConversion.h
ConversionTrackImporter
pflow::importers::TrackFromParentImporter< reco::PFConversionCollection, ConversionAdaptor > ConversionTrackImporter
Definition:
ConversionTrackImporter.cc:23
Generated for CMSSW Reference Manual by
1.8.11