Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Fireworks
Tracks
plugins
FWTracksRecHitsProxyBuilder.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
// $Id: FWTracksRecHitsProxyBuilder.cc,v 1.1 2009/01/16 10:37:00 Tom Danielson
3
//
4
5
// user include files
6
#include "TEveGeoShape.h"
7
#include "TEvePointSet.h"
8
9
#include "
Fireworks/Core/interface/FWSimpleProxyBuilderTemplate.h
"
10
#include "
Fireworks/Core/interface/FWGeometry.h
"
11
#include "
Fireworks/Core/interface/FWEventItem.h
"
12
#include "
Fireworks/Tracks/interface/TrackUtils.h
"
13
14
#include "
DataFormats/TrackReco/interface/Track.h
"
15
16
#include "
Fireworks/Core/interface/fwLog.h
"
17
18
class
FWTracksRecHitsProxyBuilder
:
public
FWSimpleProxyBuilderTemplate
<reco::Track> {
19
public
:
20
FWTracksRecHitsProxyBuilder
(
void
) {}
21
~FWTracksRecHitsProxyBuilder
(
void
)
override
{}
22
23
REGISTER_PROXYBUILDER_METHODS
();
24
25
static
bool
representsSubPart
(
void
);
26
27
private
:
28
using
FWSimpleProxyBuilderTemplate<reco::Track>::build
;
29
void
build
(
const
reco::Track
& iData,
unsigned
int
iIndex, TEveElement& oItemHolder,
const
FWViewContext
*)
override
;
30
31
FWTracksRecHitsProxyBuilder
(
const
FWTracksRecHitsProxyBuilder
&) =
delete
;
// stop default
32
const
FWTracksRecHitsProxyBuilder
&
operator=
(
const
FWTracksRecHitsProxyBuilder
&) =
delete
;
// stop default
33
};
34
35
void
FWTracksRecHitsProxyBuilder::build
(
const
reco::Track
&
track
,
36
unsigned
int
iIndex,
37
TEveElement& oItemHolder,
38
const
FWViewContext
*) {
39
if
(
track
.extra().isAvailable()) {
40
std::vector<TVector3>
points
;
41
const
FWEventItem
& iItem = *
item
();
42
fireworks::pushPixelHits
(
points
, iItem,
track
);
43
44
TEvePointSet* pointSet =
new
TEvePointSet();
45
for
(std::vector<TVector3>::const_iterator it =
points
.begin(), itEnd =
points
.end(); it != itEnd; ++it) {
46
pointSet->SetNextPoint(it->x(), it->y(), it->z());
47
}
48
setupAddElement
(pointSet, &oItemHolder);
49
50
fireworks::addSiStripClusters
(
item
(),
track
, &oItemHolder,
false
,
true
);
51
}
52
}
53
54
bool
FWTracksRecHitsProxyBuilder::representsSubPart
(
void
) {
return
true
; }
55
56
REGISTER_FWPROXYBUILDER
(
FWTracksRecHitsProxyBuilder
,
57
reco::Track
,
58
"TrackHits"
,
59
FWViewType::kAll3DBits
|
FWViewType::kAllRPZBits
);
HLT_FULL_cff.track
track
Definition:
HLT_FULL_cff.py:11713
FWSimpleProxyBuilderTemplate.h
FWTracksRecHitsProxyBuilder::FWTracksRecHitsProxyBuilder
FWTracksRecHitsProxyBuilder(void)
Definition:
FWTracksRecHitsProxyBuilder.cc:20
HLT_FULL_cff.points
points
Definition:
HLT_FULL_cff.py:21453
FWViewType::kAllRPZBits
static const int kAllRPZBits
Definition:
FWViewType.h:67
REGISTER_FWPROXYBUILDER
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
Definition:
FWProxyBuilderFactory.h:33
FWTracksRecHitsProxyBuilder::operator=
const FWTracksRecHitsProxyBuilder & operator=(const FWTracksRecHitsProxyBuilder &)=delete
fireworks::pushPixelHits
void pushPixelHits(std::vector< TVector3 > &pixelPoints, const FWEventItem &iItem, const reco::Track &t)
Definition:
TrackUtils.cc:533
REGISTER_PROXYBUILDER_METHODS
#define REGISTER_PROXYBUILDER_METHODS()
Definition:
register_dataproxybuilder_macro.h:28
TrackUtils.h
FWViewType::kAll3DBits
static const int kAll3DBits
Definition:
FWViewType.h:68
fireworks::addSiStripClusters
void addSiStripClusters(const FWEventItem *iItem, const reco::Track &t, class TEveElement *tList, bool addNearbyClusters, bool master)
Definition:
TrackUtils.cc:336
Track.h
FWTracksRecHitsProxyBuilder::~FWTracksRecHitsProxyBuilder
~FWTracksRecHitsProxyBuilder(void) override
Definition:
FWTracksRecHitsProxyBuilder.cc:21
FWTracksRecHitsProxyBuilder::representsSubPart
static bool representsSubPart(void)
Definition:
FWTracksRecHitsProxyBuilder.cc:54
reco::Track
Definition:
Track.h:27
FWGeometry.h
FWTracksRecHitsProxyBuilder
Definition:
FWTracksRecHitsProxyBuilder.cc:18
FWProxyBuilderBase::setupAddElement
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
Definition:
FWProxyBuilderBase.cc:350
fwLog.h
FWProxyBuilderBase::build
void build()
Definition:
FWProxyBuilderBase.cc:110
FWEventItem.h
FWViewContext
Definition:
FWViewContext.h:32
FWProxyBuilderBase::item
const FWEventItem * item() const
Definition:
FWProxyBuilderBase.h:64
FWEventItem
Definition:
FWEventItem.h:56
FWSimpleProxyBuilderTemplate
Definition:
FWSimpleProxyBuilderTemplate.h:30
Generated for CMSSW Reference Manual by
1.8.16