CMS 3D CMS Logo

FWHORecHitProxyBuilder.cc
Go to the documentation of this file.
3 
5 public:
7  ~FWHORecHitProxyBuilder(void) override {}
8 
10 
11 private:
14 };
15 
17 
18 // AMT scale around center, box is inverted. Scaling and e/et mode added now. Previously used fireworks::energyScaledBox3DCorners().
19 
20 /*
21 void
22 FWHORecHitProxyBuilder::build( const FWEventItem* iItem, TEveElementList* product, const FWViewContext* )
23 {
24  const HORecHitCollection* collection = 0;
25  iItem->get( collection );
26 
27  if( 0 == collection )
28  {
29  return;
30  }
31  std::vector<HORecHit>::const_iterator it = collection->begin();
32  std::vector<HORecHit>::const_iterator itEnd = collection->end();
33  for( ; it != itEnd; ++it )
34  {
35  if(( *it ).energy() > m_maxEnergy)
36  m_maxEnergy = ( *it ).energy();
37  }
38 
39  TEveBoxSet* boxSet = addBoxSetToProduct(product);
40  int index = 0;
41  for (std::vector<HORecHit>::const_iterator it = collection->begin() ; it != collection->end(); ++it)
42  {
43  const float* corners = item()->getGeom()->getCorners((*it).detid());
44  std::vector<float> scaledCorners(24);
45  if (corners)
46  fireworks::energyScaledBox3DCorners(corners, (*it).energy() / m_maxEnergy, scaledCorners, true);
47 
48  addBox(boxSet, &scaledCorners[0], iItem->modelInfo(index++).displayProperties());
49  }
50 }
51 */
const FWHORecHitProxyBuilder & operator=(const FWHORecHitProxyBuilder &)=delete
~FWHORecHitProxyBuilder(void) override
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)