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