Main Page
Namespaces
Classes
Package Documentation
Fireworks
Calo
plugins
FWHGCRecHitProxyBuilder.cc
Go to the documentation of this file.
1
#include "
Fireworks/Calo/plugins/FWCaloRecHitDigitSetProxyBuilder.h
"
2
#include "
DataFormats/HGCRecHit/interface/HGCRecHitCollections.h
"
3
4
class
FWHGCRecHitProxyBuilder
:
public
FWCaloRecHitDigitSetProxyBuilder
5
{
6
public
:
7
FWHGCRecHitProxyBuilder
(
void
) {
invertBox
(
true
); }
8
~FWHGCRecHitProxyBuilder
(
void
)
override
{}
9
10
REGISTER_PROXYBUILDER_METHODS
();
11
12
private
:
13
FWHGCRecHitProxyBuilder
(
const
FWHGCRecHitProxyBuilder
& ) =
delete
;
14
const
FWHGCRecHitProxyBuilder
&
operator=
(
const
FWHGCRecHitProxyBuilder
& ) =
delete
;
15
};
16
17
REGISTER_FWPROXYBUILDER
(
FWHGCRecHitProxyBuilder
,
HGCRecHitCollection
,
"HGC 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
*/
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
FWHGCRecHitProxyBuilder
Definition:
FWHGCRecHitProxyBuilder.cc:4
FWViewType::kISpyBit
Definition:
FWViewType.h:45
edm::SortedCollection
Definition:
SortedCollection.h:50
FWCaloRecHitDigitSetProxyBuilder::invertBox
virtual void invertBox(bool x)
Definition:
FWCaloRecHitDigitSetProxyBuilder.h:22
HGCRecHitCollections.h
FWCaloRecHitDigitSetProxyBuilder
Definition:
FWCaloRecHitDigitSetProxyBuilder.h:9
FWHGCRecHitProxyBuilder::~FWHGCRecHitProxyBuilder
~FWHGCRecHitProxyBuilder(void) override
Definition:
FWHGCRecHitProxyBuilder.cc:8
FWHGCRecHitProxyBuilder::operator=
const FWHGCRecHitProxyBuilder & operator=(const FWHGCRecHitProxyBuilder &)=delete
FWCaloRecHitDigitSetProxyBuilder.h
FWHGCRecHitProxyBuilder::FWHGCRecHitProxyBuilder
FWHGCRecHitProxyBuilder(void)
Definition:
FWHGCRecHitProxyBuilder.cc:7
Generated for CMSSW Reference Manual by
1.8.11