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
) {
return
true
; }
8
static
const
std::vector<reco::PFRecTrackRef>& get_track_refs(
const
reco::GsfPFRecTrackCollection::value_type
&
t
) {
9
return
t.convBremPFRecTrackRef();
10
}
11
static
void
set_element_info(
reco::PFBlockElement
*
elem
,
const
edm::Ref<reco::GsfPFRecTrackCollection>
& parref) {
12
elem->
setTrackType
(
reco::PFBlockElement::T_FROM_GAMMACONV
,
true
);
13
}
14
};
15
}
// namespace
16
17
typedef
pflow::importers::TrackFromParentImporter<reco::GsfPFRecTrackCollection, ConvBremAdaptor>
ConvBremTrackImporter
;
18
19
DEFINE_EDM_PLUGIN
(
BlockElementImporterFactory
, ConvBremTrackImporter,
"ConvBremTrackImporter"
);
OrderedSet.t
t
Definition:
OrderedSet.py:90
reco::PFBlockElement
Abstract base class for a PFBlock element (track, cluster...)
Definition:
PFBlockElement.h:26
PFBlockElementGsfTrack.h
pflow::importers::TrackFromParentImporter
Definition:
TrackFromParentImporter.h:26
edm::Ref
Definition:
AssociativeIterator.h:57
TrackFromParentImporter.h
reco::PFBlockElement::T_FROM_GAMMACONV
Definition:
PFBlockElement.h:47
reco::PFBlockElement::setTrackType
virtual void setTrackType(TrackType trType, bool value)
the trackType
Definition:
PFBlockElement.h:75
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition:
JetExtendedAssociation.h:30
edmplugin::PluginFactory
Definition:
PluginFactory.h:34
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:124
ConvBremTrackImporter
pflow::importers::TrackFromParentImporter< reco::GsfPFRecTrackCollection, ConvBremAdaptor > ConvBremTrackImporter
Definition:
ConvBremTrackImporter.cc:17
Generated for CMSSW Reference Manual by
1.8.11