Fireworks
SimData
plugins
FWTrackingVertexProxyBuilder.cc
Go to the documentation of this file.
1
/*
2
* FWTrackingVertexProxyBuilder.cc
3
* FWorks
4
*
5
* Created by Ianna Osborne on 10/6/10.
6
*
7
*/
8
9
#include "
Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h
"
10
#include "
Fireworks/Core/interface/Context.h
"
11
#include "
Fireworks/Core/interface/FWEventItem.h
"
12
#include "
SimDataFormats/TrackingAnalysis/interface/TrackingVertex.h
"
13
14
#include "TEveTrack.h"
15
16
class
FWTrackingVertexProxyBuilder
:
public
FWSimpleProxyBuilderTemplate
<TrackingVertex> {
17
public
:
18
FWTrackingVertexProxyBuilder
(
void
) {}
19
~FWTrackingVertexProxyBuilder
(
void
)
override
{}
20
21
REGISTER_PROXYBUILDER_METHODS
();
22
23
private
:
24
// Disable default copy constructor
25
FWTrackingVertexProxyBuilder
(
const
FWTrackingVertexProxyBuilder
&) =
delete
;
26
// Disable default assignment operator
27
const
FWTrackingVertexProxyBuilder
&
operator=
(
const
FWTrackingVertexProxyBuilder
&) =
delete
;
28
29
using
FWSimpleProxyBuilderTemplate<TrackingVertex>::build
;
30
void
build
(
const
TrackingVertex
& iData,
unsigned
int
iIndex, TEveElement& oItemHolder,
const
FWViewContext
*)
override
;
31
};
32
33
void
FWTrackingVertexProxyBuilder::build
(
const
TrackingVertex
& iData,
34
unsigned
int
iIndex,
35
TEveElement& oItemHolder,
36
const
FWViewContext
*) {
37
TEvePointSet* pointSet =
new
TEvePointSet;
38
setupAddElement
(pointSet, &oItemHolder);
39
pointSet->SetNextPoint(iData.
position
().x(), iData.
position
().y(), iData.
position
().z());
40
}
41
42
REGISTER_FWPROXYBUILDER
(
FWTrackingVertexProxyBuilder
,
43
TrackingVertex
,
44
"TrackingVertices"
,
45
FWViewType::kAll3DBits
|
FWViewType::kAllRPZBits
);
FWTrackingVertexProxyBuilder::FWTrackingVertexProxyBuilder
FWTrackingVertexProxyBuilder(void)
Definition:
FWTrackingVertexProxyBuilder.cc:18
FWSimpleProxyBuilderTemplate.h
FWViewType::kAllRPZBits
static const int kAllRPZBits
Definition:
FWViewType.h:67
REGISTER_FWPROXYBUILDER
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
Definition:
FWProxyBuilderFactory.h:33
TrackingVertex::position
const LorentzVector & position() const
Definition:
TrackingVertex.h:71
REGISTER_PROXYBUILDER_METHODS
#define REGISTER_PROXYBUILDER_METHODS()
Definition:
register_dataproxybuilder_macro.h:28
TrackingVertex.h
FWViewType::kAll3DBits
static const int kAll3DBits
Definition:
FWViewType.h:68
FWTrackingVertexProxyBuilder
Definition:
FWTrackingVertexProxyBuilder.cc:16
TrackingVertex
Definition:
TrackingVertex.h:22
FWProxyBuilderBase::setupAddElement
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
Definition:
FWProxyBuilderBase.cc:350
FWProxyBuilderBase::build
void build()
Definition:
FWProxyBuilderBase.cc:110
FWEventItem.h
FWViewContext
Definition:
FWViewContext.h:32
FWTrackingVertexProxyBuilder::operator=
const FWTrackingVertexProxyBuilder & operator=(const FWTrackingVertexProxyBuilder &)=delete
FWSimpleProxyBuilderTemplate
Definition:
FWSimpleProxyBuilderTemplate.h:30
FWTrackingVertexProxyBuilder::~FWTrackingVertexProxyBuilder
~FWTrackingVertexProxyBuilder(void) override
Definition:
FWTrackingVertexProxyBuilder.cc:19
Context.h
Generated for CMSSW Reference Manual by
1.8.16