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"
);
pflow::importers::TrackFromParentImporter
Definition:
TrackFromParentImporter.h:27
TrackFromParentImporter.h
ConvBremTrackImporter
pflow::importers::TrackFromParentImporter< reco::GsfPFRecTrackCollection, ConvBremAdaptor > ConvBremTrackImporter
Definition:
ConvBremTrackImporter.cc:17
edm::Ref
Definition:
AssociativeIterator.h:58
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:124
edmplugin::PluginFactory
Definition:
PluginFactory.h:34
reco::PFBlockElement::T_FROM_GAMMACONV
Definition:
PFBlockElement.h:47
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition:
JetExtendedAssociation.h:30
reco::PFBlockElement
Abstract base class for a PFBlock element (track, cluster...)
Definition:
PFBlockElement.h:26
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:644
PFBlockElementGsfTrack.h
reco::PFBlockElement::setTrackType
virtual void setTrackType(TrackType trType, bool value)
\set the trackType
Definition:
PFBlockElement.h:75
Generated for CMSSW Reference Manual by
1.8.16