src
Fireworks
ParticleFlow
plugins
FWPFTrack3DProxyBuilder.cc
Go to the documentation of this file.
1
#include "
FWPFTrack3DProxyBuilder.h
"
2
3
//______________________________________________________________________________
4
void
FWPFTrack3DProxyBuilder::build
(
const
reco::Track
&iData,
5
unsigned
int
iIndex,
6
TEveElement &oItemHolder,
7
const
FWViewContext
*vc) {
8
FWPFTrackUtils
*
utils
=
new
FWPFTrackUtils
();
9
TEveTrack *
trk
=
utils
->setupTrack(iData);
10
TEvePointSet *ps =
utils
->getCollisionMarkers(
trk
);
11
setupAddElement
(
trk
, &oItemHolder);
12
if
(ps->GetN() != 0)
13
setupAddElement
(ps, &oItemHolder);
14
else
15
delete
ps;
16
17
delete
utils
;
18
}
19
20
//______________________________________________________________________________
21
REGISTER_FWPROXYBUILDER
(
FWPFTrack3DProxyBuilder
,
reco::Track
,
"PF Tracks"
,
FWViewType::k3DBit
);
REGISTER_FWPROXYBUILDER
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
Definition:
FWProxyBuilderFactory.h:33
FWProxyBuilderBase::setupAddElement
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
Definition:
FWProxyBuilderBase.cc:350
FWPFTrackUtils
Definition:
FWPFTrackUtils.h:68
trk
Trktree trk
Definition:
Trktree.cc:2
FWViewContext
Definition:
FWViewContext.h:32
FWPFTrack3DProxyBuilder
Definition:
FWPFTrack3DProxyBuilder.h:25
FWPFTrack3DProxyBuilder.h
FWProxyBuilderBase::build
void build()
Definition:
FWProxyBuilderBase.cc:110
FWViewType::k3DBit
static constexpr unsigned int k3DBit
Definition:
FWViewType.h:49
reco::Track
Definition:
Track.h:27
utils
Definition:
utils.py:1
Generated for CMSSW Reference Manual by
1.8.14