CMS 3D CMS Logo

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