CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWHBHERecHitProxyBuilder.cc
Go to the documentation of this file.
3 
5 {
6 public:
8  virtual ~FWHBHERecHitProxyBuilder( void ) {}
9 
11 
12 private:
15 };
16 
18 
19 
20 // AMT: Refelct box. Previously used energyScaledBox3DCorners()
21 
22 /*
23 void
24 FWHBHERecHitProxyBuilder::build( const FWEventItem* iItem, TEveElementList* product, const FWViewContext* vc)
25 {
26  m_plotEt = vc->getEnergyScale()->getPlotEt();
27 
28  const HBHERecHitCollection* collection = 0;
29  iItem->get( collection );
30 
31  if( 0 == collection )
32  {
33  return;
34  }
35  std::vector<HBHERecHit>::const_iterator it = collection->begin();
36  std::vector<HBHERecHit>::const_iterator itEnd = collection->end();
37  std::vector<float> scaledCorners(24);
38 
39  for( ; it != itEnd; ++it )
40  {
41  if(( *it ).energy() > m_maxEnergy )
42  m_maxEnergy = ( *it ).energy();
43  }
44 
45  TEveBoxSet* boxSet = addBoxSetToProduct(product);
46  int index = 0;
47  for (std::vector<HBHERecHit>::const_iterator it = collection->begin() ; it != collection->end(); ++it)
48  {
49  const float* corners = context().getGeom()->getCorners((*it).detid());
50  if (corners)
51  {
52  if (m_plotEt)
53  fireworks::etScaledBox3DCorners(corners, (*it).energy(), m_maxEnergy, scaledCorners, true);
54  else
55  fireworks::energyScaledBox3DCorners(corners, (*it).energy() / m_maxEnergy, scaledCorners, true);
56  }
57  addBox(boxSet, &scaledCorners[0], iItem->modelInfo(index++).displayProperties());
58  }
59 }
60 */
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
const FWHBHERecHitProxyBuilder & operator=(const FWHBHERecHitProxyBuilder &)