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