Fireworks
Calo
plugins
FWZDCRecHitProxyBuilder.cc
Go to the documentation of this file.
1
/*
2
* FWZDCRecHitProxyBuilder.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/ZDCRecHit.h
"
10
#include "
DataFormats/Common/interface/SortedCollection.h
"
11
12
class
FWZDCRecHitProxyBuilder
:
public
FWCaloRecHitDigitSetProxyBuilder
{
13
public
:
14
FWZDCRecHitProxyBuilder
(
void
) {}
15
~FWZDCRecHitProxyBuilder
(
void
)
override
{}
16
17
REGISTER_PROXYBUILDER_METHODS
();
18
19
FWZDCRecHitProxyBuilder
(
const
FWZDCRecHitProxyBuilder
&) =
delete
;
20
const
FWZDCRecHitProxyBuilder
&
operator=
(
const
FWZDCRecHitProxyBuilder
&) =
delete
;
21
};
22
23
REGISTER_FWPROXYBUILDER
(
FWZDCRecHitProxyBuilder
,
edm::SortedCollection<ZDCRecHit>
,
"ZDC RecHit"
,
FWViewType::kISpyBit
);
24
25
// AMT scale box round center. Scaling and e/et mode added now. Previusly used energyTower3DCorners().
26
27
/*
28
void FWZDCRecHitProxyBuilder::build(const FWEventItem* iItem, TEveElementList* product, const FWViewContext*)
29
{
30
const edm::SortedCollection<ZDCRecHit> *collection = 0;
31
iItem->get( collection );
32
if (! collection)
33
return;
34
35
36
TEveBoxSet* boxSet = addBoxSetToProduct(product);
37
boxSet->SetAntiFlick(kTRUE);
38
int index = 0;
39
for (std::vector<ZDCRecHit>::const_iterator it = collection->begin() ; it != collection->end(); ++it)
40
{
41
const float* corners = item()->getGeom()->getCorners((*it).detid());
42
43
std::vector<float> scaledCorners(24);
44
if (corners != 0) {
45
fireworks::energyTower3DCorners(corners, (*it).energy(), scaledCorners);
46
// Invert the normals:
47
// for (int i = 0; i < 12; ++i)
48
// std::swap(scaledCorners[i], scaledCorners[i+12]);
49
}
50
51
addBox(boxSet, &scaledCorners[0], iItem->modelInfo(index++).displayProperties());
52
}
53
}*/
FWZDCRecHitProxyBuilder::FWZDCRecHitProxyBuilder
FWZDCRecHitProxyBuilder(void)
Definition:
FWZDCRecHitProxyBuilder.cc:14
REGISTER_PROXYBUILDER_METHODS
#define REGISTER_PROXYBUILDER_METHODS()
Definition:
register_dataproxybuilder_macro.h:31
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
FWZDCRecHitProxyBuilder::~FWZDCRecHitProxyBuilder
~FWZDCRecHitProxyBuilder(void) override
Definition:
FWZDCRecHitProxyBuilder.cc:15
SortedCollection.h
FWCaloRecHitDigitSetProxyBuilder
Definition:
FWCaloRecHitDigitSetProxyBuilder.h:9
FWZDCRecHitProxyBuilder::operator=
const FWZDCRecHitProxyBuilder & operator=(const FWZDCRecHitProxyBuilder &)=delete
FWCaloRecHitDigitSetProxyBuilder.h
ZDCRecHit.h
FWZDCRecHitProxyBuilder
Definition:
FWZDCRecHitProxyBuilder.cc:12
Generated for CMSSW Reference Manual by
1.8.14