Main Page
Namespaces
Classes
Package Documentation
Fireworks
Calo
plugins
FWHORecHitProxyBuilder.cc
Go to the documentation of this file.
1
#include "
Fireworks/Calo/plugins/FWCaloRecHitDigitSetProxyBuilder.h
"
2
#include "
DataFormats/HcalRecHit/interface/HcalRecHitCollections.h
"
3
4
5
class
FWHORecHitProxyBuilder
:
public
FWCaloRecHitDigitSetProxyBuilder
6
{
7
public
:
8
FWHORecHitProxyBuilder
(
void
) {
invertBox
(
true
); }
9
~FWHORecHitProxyBuilder
(
void
)
override
{}
10
11
REGISTER_PROXYBUILDER_METHODS
();
12
13
private
:
14
FWHORecHitProxyBuilder
(
const
FWHORecHitProxyBuilder
& ) =
delete
;
15
const
FWHORecHitProxyBuilder
&
operator=
(
const
FWHORecHitProxyBuilder
& ) =
delete
;
16
};
17
18
REGISTER_FWPROXYBUILDER
(
FWHORecHitProxyBuilder
,
HORecHitCollection
,
"HO RecHit"
,
FWViewType::kISpyBit
);
19
20
// AMT scale around center, box is inverted. Scaling and e/et mode added now. Previously used fireworks::energyScaledBox3DCorners().
21
22
/*
23
void
24
FWHORecHitProxyBuilder::build( const FWEventItem* iItem, TEveElementList* product, const FWViewContext* )
25
{
26
const HORecHitCollection* collection = 0;
27
iItem->get( collection );
28
29
if( 0 == collection )
30
{
31
return;
32
}
33
std::vector<HORecHit>::const_iterator it = collection->begin();
34
std::vector<HORecHit>::const_iterator itEnd = collection->end();
35
for( ; it != itEnd; ++it )
36
{
37
if(( *it ).energy() > m_maxEnergy)
38
m_maxEnergy = ( *it ).energy();
39
}
40
41
TEveBoxSet* boxSet = addBoxSetToProduct(product);
42
int index = 0;
43
for (std::vector<HORecHit>::const_iterator it = collection->begin() ; it != collection->end(); ++it)
44
{
45
const float* corners = item()->getGeom()->getCorners((*it).detid());
46
std::vector<float> scaledCorners(24);
47
if (corners)
48
fireworks::energyScaledBox3DCorners(corners, (*it).energy() / m_maxEnergy, scaledCorners, true);
49
50
addBox(boxSet, &scaledCorners[0], iItem->modelInfo(index++).displayProperties());
51
}
52
}
53
*/
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
FWViewType::kISpyBit
Definition:
FWViewType.h:45
edm::SortedCollection< HORecHit >
FWCaloRecHitDigitSetProxyBuilder::invertBox
virtual void invertBox(bool x)
Definition:
FWCaloRecHitDigitSetProxyBuilder.h:22
FWCaloRecHitDigitSetProxyBuilder
Definition:
FWCaloRecHitDigitSetProxyBuilder.h:9
FWCaloRecHitDigitSetProxyBuilder.h
FWHORecHitProxyBuilder::operator=
const FWHORecHitProxyBuilder & operator=(const FWHORecHitProxyBuilder &)=delete
FWHORecHitProxyBuilder::~FWHORecHitProxyBuilder
~FWHORecHitProxyBuilder(void) override
Definition:
FWHORecHitProxyBuilder.cc:9
FWHORecHitProxyBuilder::FWHORecHitProxyBuilder
FWHORecHitProxyBuilder(void)
Definition:
FWHORecHitProxyBuilder.cc:8
HcalRecHitCollections.h
FWHORecHitProxyBuilder
Definition:
FWHORecHitProxyBuilder.cc:5
Generated for CMSSW Reference Manual by
1.8.11