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