Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
FWViewType::k3DBit
Definition:
FWViewType.h:50
FWPFTrackUtils
Definition:
FWPFTrackUtils.h:68
FWPFTrackUtils::getCollisionMarkers
TEvePointSet * getCollisionMarkers(const TEveTrack *)
Definition:
FWPFTrackUtils.cc:246
FWPFTrackUtils::setupTrack
TEveTrack * setupTrack(const reco::Track &)
Definition:
FWPFTrackUtils.cc:231
FWProxyBuilderBase::setupAddElement
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
Definition:
FWProxyBuilderBase.cc:350
FWViewContext
Definition:
FWViewContext.h:32
FWPFTrack3DProxyBuilder
Definition:
FWPFTrack3DProxyBuilder.h:25
FWPFTrack3DProxyBuilder.h
FWProxyBuilderBase::build
void build()
Definition:
FWProxyBuilderBase.cc:110
reco::Track
Definition:
Track.h:27
Generated for CMSSW Reference Manual by
1.8.5