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