CMS 3D CMS Logo

FWHBHERecHitProxyBuilder.cc
Go to the documentation of this file.
3 
5 public:
7  ~FWHBHERecHitProxyBuilder(void) override {}
8 
10 
11 private:
14 };
15 
17 
18 // AMT: Refelct box. Previously used energyScaledBox3DCorners()
19 
20 /*
21 void
22 FWHBHERecHitProxyBuilder::build( const FWEventItem* iItem, TEveElementList* product, const FWViewContext* vc)
23 {
24  m_plotEt = vc->getEnergyScale()->getPlotEt();
25 
26  const HBHERecHitCollection* collection = 0;
27  iItem->get( collection );
28 
29  if( 0 == collection )
30  {
31  return;
32  }
33  std::vector<HBHERecHit>::const_iterator it = collection->begin();
34  std::vector<HBHERecHit>::const_iterator itEnd = collection->end();
35  std::vector<float> scaledCorners(24);
36 
37  for( ; it != itEnd; ++it )
38  {
39  if(( *it ).energy() > m_maxEnergy )
40  m_maxEnergy = ( *it ).energy();
41  }
42 
43  TEveBoxSet* boxSet = addBoxSetToProduct(product);
44  int index = 0;
45  for (std::vector<HBHERecHit>::const_iterator it = collection->begin() ; it != collection->end(); ++it)
46  {
47  const float* corners = context().getGeom()->getCorners((*it).detid());
48  if (corners)
49  {
50  if (m_plotEt)
51  fireworks::etScaledBox3DCorners(corners, (*it).energy(), m_maxEnergy, scaledCorners, true);
52  else
53  fireworks::energyScaledBox3DCorners(corners, (*it).energy() / m_maxEnergy, scaledCorners, true);
54  }
55  addBox(boxSet, &scaledCorners[0], iItem->modelInfo(index++).displayProperties());
56  }
57 }
58 */
REGISTER_FWPROXYBUILDER
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
Definition: FWProxyBuilderFactory.h:33
REGISTER_PROXYBUILDER_METHODS
#define REGISTER_PROXYBUILDER_METHODS()
Definition: register_dataproxybuilder_macro.h:27
FWHBHERecHitProxyBuilder
Definition: FWHBHERecHitProxyBuilder.cc:4
edm::SortedCollection
Definition: SortedCollection.h:49
FWHBHERecHitProxyBuilder::FWHBHERecHitProxyBuilder
FWHBHERecHitProxyBuilder(void)
Definition: FWHBHERecHitProxyBuilder.cc:6
FWHBHERecHitProxyBuilder::~FWHBHERecHitProxyBuilder
~FWHBHERecHitProxyBuilder(void) override
Definition: FWHBHERecHitProxyBuilder.cc:7
FWCaloRecHitDigitSetProxyBuilder.h
FWViewType::kISpyBit
Definition: FWViewType.h:54
HcalRecHitCollections.h
FWCaloRecHitDigitSetProxyBuilder::invertBox
virtual void invertBox(bool x)
Definition: FWCaloRecHitDigitSetProxyBuilder.h:21
FWCaloRecHitDigitSetProxyBuilder
Definition: FWCaloRecHitDigitSetProxyBuilder.h:9
FWHBHERecHitProxyBuilder::operator=
const FWHBHERecHitProxyBuilder & operator=(const FWHBHERecHitProxyBuilder &)=delete