Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
lumiQTWidget.t
tuple t
Definition:
lumiQTWidget.py:50
edm::Ref
Definition:
AssociativeIterator.h:51
TrackFromParentImporter.h
reco::PFBlockElement::T_FROM_GAMMACONV
Definition:
PFBlockElement.h:53
reco::PFBlockElement::setTrackType
virtual void setTrackType(TrackType trType, bool value)
the trackType
Definition:
PFBlockElement.h:89
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition:
JetExtendedAssociation.h:30
edmplugin::PluginFactory
Definition:
PluginFactory.h:31
HTMLExport.elem
def elem
Definition:
HTMLExport.py:18
ConvBremTrackImporter
pflow::importers::TrackFromParentImporter< reco::GsfPFRecTrackCollection, ConvBremAdaptor > ConvBremTrackImporter
Definition:
ConvBremTrackImporter.cc:21
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:101
Generated for CMSSW Reference Manual by
1.8.5