Main Page
Namespaces
Classes
Package Documentation
RecoParticleFlow
PFProducer
plugins
importers
ConvBremTrackImporter.cc
Go to the documentation of this file.
1
#include "
TrackFromParentImporter.h
"
2
#include "
DataFormats/ParticleFlowReco/interface/PFBlockElementGsfTrack.h
"
3
4
namespace
{
5
class
ConvBremAdaptor {
6
public
:
7
static
bool
check_importable(
const
reco::GsfPFRecTrackCollection::value_type
&
t
) {
8
return
true
;
9
}
10
static
const
std::vector<reco::PFRecTrackRef>&
11
get_track_refs(
const
reco::GsfPFRecTrackCollection::value_type
&
t
) {
12
return
t.convBremPFRecTrackRef();
13
}
14
static
void
set_element_info(
reco::PFBlockElement
*
elem
,
15
const
edm::Ref<reco::GsfPFRecTrackCollection>
& parref) {
16
elem->
setTrackType
(
reco::PFBlockElement::T_FROM_GAMMACONV
,
true
);
17
}
18
};
19
}
20
21
typedef
pflow::importers::TrackFromParentImporter<reco::GsfPFRecTrackCollection,ConvBremAdaptor>
ConvBremTrackImporter
;
22
23
DEFINE_EDM_PLUGIN
(
BlockElementImporterFactory
,
24
ConvBremTrackImporter,
25
"ConvBremTrackImporter"
);
reco::PFBlockElement
Abstract base class for a PFBlock element (track, cluster...)
Definition:
PFBlockElement.h:28
PFBlockElementGsfTrack.h
pflow::importers::TrackFromParentImporter
Definition:
TrackFromParentImporter.h:31
edm::Ref
Definition:
AssociativeIterator.h:51
TrackFromParentImporter.h
reco::PFBlockElement::T_FROM_GAMMACONV
Definition:
PFBlockElement.h:54
reco::PFBlockElement::setTrackType
virtual void setTrackType(TrackType trType, bool value)
the trackType
Definition:
PFBlockElement.h:92
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
ConvBremTrackImporter
pflow::importers::TrackFromParentImporter< reco::GsfPFRecTrackCollection, ConvBremAdaptor > ConvBremTrackImporter
Definition:
ConvBremTrackImporter.cc:21
HTMLExport.elem
def elem(elemtype, innerHTML='', html_class='', kwargs)
Definition:
HTMLExport.py:19
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:121
Generated for CMSSW Reference Manual by
1.8.11