CMS 3D CMS Logo

FWHBHERecHitProxyBuilder.cc
Go to the documentation of this file.
3 
5 public:
7  ~FWHBHERecHitProxyBuilder(void) override {}
8 
10 
13 };
14 
16 
17 // AMT: Refelct box. Previously used energyScaledBox3DCorners()
18 
19 /*
20 void
21 FWHBHERecHitProxyBuilder::build( const FWEventItem* iItem, TEveElementList* product, const FWViewContext* vc)
22 {
23  m_plotEt = vc->getEnergyScale()->getPlotEt();
24 
25  const HBHERecHitCollection* collection = 0;
26  iItem->get( collection );
27 
28  if( 0 == collection )
29  {
30  return;
31  }
32  std::vector<HBHERecHit>::const_iterator it = collection->begin();
33  std::vector<HBHERecHit>::const_iterator itEnd = collection->end();
34  std::vector<float> scaledCorners(24);
35 
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<HBHERecHit>::const_iterator it = collection->begin() ; it != collection->end(); ++it)
45  {
46  const float* corners = context().getGeom()->getCorners((*it).detid());
47  if (corners)
48  {
49  if (m_plotEt)
50  fireworks::etScaledBox3DCorners(corners, (*it).energy(), m_maxEnergy, scaledCorners, true);
51  else
52  fireworks::energyScaledBox3DCorners(corners, (*it).energy() / m_maxEnergy, scaledCorners, true);
53  }
54  addBox(boxSet, &scaledCorners[0], iItem->modelInfo(index++).displayProperties());
55  }
56 }
57 */
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
const FWHBHERecHitProxyBuilder & operator=(const FWHBHERecHitProxyBuilder &)=delete