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