Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
FWCastorRecHitProxyBuilder
(
const
FWCastorRecHitProxyBuilder
&) =
delete
;
21
const
FWCastorRecHitProxyBuilder
&
operator=
(
const
FWCastorRecHitProxyBuilder
&) =
delete
;
22
};
23
24
REGISTER_FWPROXYBUILDER
(
FWCastorRecHitProxyBuilder
,
CastorRecHitCollection
,
"Castor RecHit"
,
FWViewType::kISpyBit
);
25
26
// AMT:: scale box round center. Scaleing and e/et added now. Previously used fireworks::energyTower3DCorners();
27
28
/*
29
void FWCastorRecHitProxyBuilder::build(const FWEventItem* iItem, TEveElementList* product, const FWViewContext*)
30
{
31
const CastorRecHitCollection* collection = 0;
32
iItem->get( collection );
33
if (! collection)
34
return;
35
36
37
TEveBoxSet* boxSet = addBoxSetToProduct(product);
38
int index = 0;
39
for (std::vector<CastorRecHit>::const_iterator it = collection->begin() ; it != collection->end(); ++it)
40
{
41
const float* corners = item()->getGeom()->getCorners((*it).detid());
42
if (corners == 0)
43
continue;
44
45
std::vector<float> scaledCorners(24);
46
fireworks::energyTower3DCorners(corners, (*it).energy() * 10, scaledCorners);
47
48
addBox(boxSet, &scaledCorners[0], iItem->modelInfo(index++).displayProperties());
49
}
50
}
51
*/
FWCastorRecHitProxyBuilder
Definition:
FWCastorRecHitProxyBuilder.cc:11
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
FWViewType::kISpyBit
Definition:
FWViewType.h:54
edm::SortedCollection
Definition:
SortedCollection.h:49
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
HcalRecHitCollections.h
Generated for CMSSW Reference Manual by
1.8.5