test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoParticleFlow
PFProducer
plugins
importers
ConversionTrackImporter.cc
Go to the documentation of this file.
1
#include "
TrackFromParentImporter.h
"
2
#include "
DataFormats/ParticleFlowReco/interface/PFConversionFwd.h
"
3
#include "
DataFormats/ParticleFlowReco/interface/PFConversion.h
"
4
5
namespace
{
6
class
ConversionAdaptor {
7
public
:
8
static
bool
check_importable(
const
reco::PFConversionCollection::value_type
&
t
) {
9
return
(t.pfTracks().size() >= 2);
10
}
11
static
const
std::vector<reco::PFRecTrackRef>&
12
get_track_refs(
const
reco::PFConversionCollection::value_type
& t) {
13
return
t.pfTracks();
14
}
15
static
void
set_element_info(
reco::PFBlockElement
*
elem
,
16
const
edm::Ref<reco::PFConversionCollection>
& parref) {
17
elem->
setConversionRef
(parref->originalConversion(),
18
reco::PFBlockElement::T_FROM_GAMMACONV
);
19
}
20
};
21
}
22
23
typedef
pflow::importers::TrackFromParentImporter<reco::PFConversionCollection,ConversionAdaptor>
ConversionTrackImporter
;
24
25
DEFINE_EDM_PLUGIN
(
BlockElementImporterFactory
,
26
ConversionTrackImporter,
27
"ConversionTrackImporter"
);
reco::PFBlockElement
Abstract base class for a PFBlock element (track, cluster...)
Definition:
PFBlockElement.h:28
pflow::importers::TrackFromParentImporter
Definition:
TrackFromParentImporter.h:31
lumiQTWidget.t
tuple t
Definition:
lumiQTWidget.py:50
edm::Ref< reco::PFConversionCollection >
PFConversionFwd.h
TrackFromParentImporter.h
reco::PFBlockElement::T_FROM_GAMMACONV
Definition:
PFBlockElement.h:53
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
reco::PFBlockElement::setConversionRef
virtual void setConversionRef(const ConversionRef &convRef, TrackType trType)
Definition:
PFBlockElement.h:110
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:101
PFConversion.h
ConversionTrackImporter
pflow::importers::TrackFromParentImporter< reco::PFConversionCollection, ConversionAdaptor > ConversionTrackImporter
Definition:
ConversionTrackImporter.cc:23
Generated for CMSSW Reference Manual by
1.8.5