src
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"
);
reco::PFBlockElement
Abstract base class for a PFBlock element (track, cluster...)
Definition:
PFBlockElement.h:26
PFBlockElementGsfTrack.h
pflow::importers::TrackFromParentImporter
Definition:
TrackFromParentImporter.h:27
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:649
edm::Ref
Definition:
AssociativeIterator.h:58
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:35
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:123
ConvBremTrackImporter
pflow::importers::TrackFromParentImporter< reco::GsfPFRecTrackCollection, ConvBremAdaptor > ConvBremTrackImporter
Definition:
ConvBremTrackImporter.cc:17
Generated for CMSSW Reference Manual by
1.8.14