test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
Fireworks
Calo
plugins
FWHFRecHitProxyBuilder.cc
Go to the documentation of this file.
1
#include "
DataFormats/HcalRecHit/interface/HcalRecHitCollections.h
"
2
#include "
Fireworks/Calo/plugins/FWCaloRecHitDigitSetProxyBuilder.h
"
3
4
class
FWHFRecHitProxyBuilder
:
public
FWCaloRecHitDigitSetProxyBuilder
5
{
6
public
:
7
FWHFRecHitProxyBuilder
(
void
) {
invertBox
(
true
); }
8
virtual
~FWHFRecHitProxyBuilder
(
void
) {}
9
10
REGISTER_PROXYBUILDER_METHODS
();
11
12
private
:
13
FWHFRecHitProxyBuilder
(
const
FWHFRecHitProxyBuilder
& );
14
const
FWHFRecHitProxyBuilder
&
operator=
(
const
FWHFRecHitProxyBuilder
& );
15
};
16
17
18
REGISTER_FWPROXYBUILDER
(
FWHFRecHitProxyBuilder
,
HFRecHitCollection
,
"HF RecHit"
,
FWViewType::kISpyBit
);
19
20
// AMT: Reflect box. Previously used energyScaledBox3DCorners(). Scaling and e/et mode added now.
21
22
/*
23
void
24
FWHFRecHitProxyBuilder::build( const FWEventItem* iItem, TEveElementList* product, const FWViewContext* )
25
{
26
const HFRecHitCollection* collection = 0;
27
iItem->get( collection );
28
29
if( 0 == collection )
30
{
31
return;
32
}
33
34
std::vector<HFRecHit>::const_iterator it = collection->begin();
35
std::vector<HFRecHit>::const_iterator itEnd = collection->end();
36
for( ; it != itEnd; ++it )
37
{
38
if(( *it ).energy() > m_maxEnergy )
39
m_maxEnergy = ( *it ).energy();
40
}
41
42
TEveBoxSet* boxSet = addBoxSetToProduct(product);
43
int index = 0;
44
for (std::vector<HFRecHit>::const_iterator it = collection->begin() ; it != collection->end(); ++it)
45
{
46
unsigned int rawid = ( *it ).detid().rawId();
47
if( ! context().getGeom()->contains( rawid ))
48
{
49
fwLog( fwlog::kInfo ) << "FWHFRecHitProxyBuilder cannot get geometry for DetId: "
50
<< rawid << ". Ignored.\n";
51
}
52
const float* corners = context().getGeom()->getCorners( rawid );
53
54
std::vector<float> scaledCorners(24);
55
if (corners)
56
fireworks::energyScaledBox3DCorners(corners, (*it).energy() / m_maxEnergy, scaledCorners, true);
57
58
addBox(boxSet, &scaledCorners[0], iItem->modelInfo(index++).displayProperties());
59
}
60
}
61
*/
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< HFRecHit >
FWCaloRecHitDigitSetProxyBuilder::invertBox
virtual void invertBox(bool x)
Definition:
FWCaloRecHitDigitSetProxyBuilder.h:22
FWHFRecHitProxyBuilder::operator=
const FWHFRecHitProxyBuilder & operator=(const FWHFRecHitProxyBuilder &)
FWCaloRecHitDigitSetProxyBuilder
Definition:
FWCaloRecHitDigitSetProxyBuilder.h:9
FWCaloRecHitDigitSetProxyBuilder.h
FWHFRecHitProxyBuilder::FWHFRecHitProxyBuilder
FWHFRecHitProxyBuilder(void)
Definition:
FWHFRecHitProxyBuilder.cc:7
FWHFRecHitProxyBuilder::~FWHFRecHitProxyBuilder
virtual ~FWHFRecHitProxyBuilder(void)
Definition:
FWHFRecHitProxyBuilder.cc:8
HcalRecHitCollections.h
FWHFRecHitProxyBuilder
Definition:
FWHFRecHitProxyBuilder.cc:4
Generated for CMSSW Reference Manual by
1.8.5