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