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
Calo
plugins
FWHBHERecHitProxyBuilder.cc
Go to the documentation of this file.
1
#include "
Fireworks/Calo/plugins/FWCaloRecHitDigitSetProxyBuilder.h
"
2
#include "
DataFormats/HcalRecHit/interface/HcalRecHitCollections.h
"
3
4
class
FWHBHERecHitProxyBuilder
:
public
FWCaloRecHitDigitSetProxyBuilder
{
5
public
:
6
FWHBHERecHitProxyBuilder
(
void
) {
invertBox
(
true
); }
7
~FWHBHERecHitProxyBuilder
(
void
)
override
{}
8
9
REGISTER_PROXYBUILDER_METHODS
();
10
11
private
:
12
FWHBHERecHitProxyBuilder
(
const
FWHBHERecHitProxyBuilder
&) =
delete
;
13
const
FWHBHERecHitProxyBuilder
&
operator=
(
const
FWHBHERecHitProxyBuilder
&) =
delete
;
14
};
15
16
REGISTER_FWPROXYBUILDER
(
FWHBHERecHitProxyBuilder
,
HBHERecHitCollection
,
"HBHE RecHit"
,
FWViewType::kISpyBit
);
17
18
// AMT: Refelct box. Previously used energyScaledBox3DCorners()
19
20
/*
21
void
22
FWHBHERecHitProxyBuilder::build( const FWEventItem* iItem, TEveElementList* product, const FWViewContext* vc)
23
{
24
m_plotEt = vc->getEnergyScale()->getPlotEt();
25
26
const HBHERecHitCollection* collection = 0;
27
iItem->get( collection );
28
29
if( 0 == collection )
30
{
31
return;
32
}
33
std::vector<HBHERecHit>::const_iterator it = collection->begin();
34
std::vector<HBHERecHit>::const_iterator itEnd = collection->end();
35
std::vector<float> scaledCorners(24);
36
37
for( ; it != itEnd; ++it )
38
{
39
if(( *it ).energy() > m_maxEnergy )
40
m_maxEnergy = ( *it ).energy();
41
}
42
43
TEveBoxSet* boxSet = addBoxSetToProduct(product);
44
int index = 0;
45
for (std::vector<HBHERecHit>::const_iterator it = collection->begin() ; it != collection->end(); ++it)
46
{
47
const float* corners = context().getGeom()->getCorners((*it).detid());
48
if (corners)
49
{
50
if (m_plotEt)
51
fireworks::etScaledBox3DCorners(corners, (*it).energy(), m_maxEnergy, scaledCorners, true);
52
else
53
fireworks::energyScaledBox3DCorners(corners, (*it).energy() / m_maxEnergy, scaledCorners, true);
54
}
55
addBox(boxSet, &scaledCorners[0], iItem->modelInfo(index++).displayProperties());
56
}
57
}
58
*/
REGISTER_FWPROXYBUILDER
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
Definition:
FWProxyBuilderFactory.h:33
REGISTER_PROXYBUILDER_METHODS
#define REGISTER_PROXYBUILDER_METHODS()
Definition:
register_dataproxybuilder_macro.h:28
FWHBHERecHitProxyBuilder
Definition:
FWHBHERecHitProxyBuilder.cc:4
edm::SortedCollection
Definition:
SortedCollection.h:49
FWHBHERecHitProxyBuilder::FWHBHERecHitProxyBuilder
FWHBHERecHitProxyBuilder(void)
Definition:
FWHBHERecHitProxyBuilder.cc:6
FWHBHERecHitProxyBuilder::~FWHBHERecHitProxyBuilder
~FWHBHERecHitProxyBuilder(void) override
Definition:
FWHBHERecHitProxyBuilder.cc:7
FWCaloRecHitDigitSetProxyBuilder.h
FWViewType::kISpyBit
Definition:
FWViewType.h:54
HcalRecHitCollections.h
FWCaloRecHitDigitSetProxyBuilder::invertBox
virtual void invertBox(bool x)
Definition:
FWCaloRecHitDigitSetProxyBuilder.h:21
FWCaloRecHitDigitSetProxyBuilder
Definition:
FWCaloRecHitDigitSetProxyBuilder.h:9
FWHBHERecHitProxyBuilder::operator=
const FWHBHERecHitProxyBuilder & operator=(const FWHBHERecHitProxyBuilder &)=delete
Generated for CMSSW Reference Manual by
1.8.16