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