Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
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
{
6
public
:
7
FWHBHERecHitProxyBuilder
(
void
) {
invertBox
(
true
); }
8
virtual
~FWHBHERecHitProxyBuilder
(
void
) {}
9
10
REGISTER_PROXYBUILDER_METHODS
();
11
12
private
:
13
FWHBHERecHitProxyBuilder
(
const
FWHBHERecHitProxyBuilder
& );
14
const
FWHBHERecHitProxyBuilder
&
operator=
(
const
FWHBHERecHitProxyBuilder
& );
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
*/
REGISTER_PROXYBUILDER_METHODS
#define REGISTER_PROXYBUILDER_METHODS()
Definition:
register_dataproxybuilder_macro.h:29
REGISTER_FWPROXYBUILDER
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
Definition:
FWProxyBuilderFactory.h:34
FWHBHERecHitProxyBuilder
Definition:
FWHBHERecHitProxyBuilder.cc:4
FWViewType::kISpyBit
Definition:
FWViewType.h:46
edm::SortedCollection
Definition:
SortedCollection.h:48
FWCaloRecHitDigitSetProxyBuilder::invertBox
virtual void invertBox(bool x)
Definition:
FWCaloRecHitDigitSetProxyBuilder.h:22
FWCaloRecHitDigitSetProxyBuilder
Definition:
FWCaloRecHitDigitSetProxyBuilder.h:9
FWHBHERecHitProxyBuilder::operator=
const FWHBHERecHitProxyBuilder & operator=(const FWHBHERecHitProxyBuilder &)
FWCaloRecHitDigitSetProxyBuilder.h
HcalRecHitCollections.h
FWHBHERecHitProxyBuilder::FWHBHERecHitProxyBuilder
FWHBHERecHitProxyBuilder(void)
Definition:
FWHBHERecHitProxyBuilder.cc:7
FWHBHERecHitProxyBuilder::~FWHBHERecHitProxyBuilder
virtual ~FWHBHERecHitProxyBuilder(void)
Definition:
FWHBHERecHitProxyBuilder.cc:8
Generated for CMSSW Reference Manual by
1.8.5