test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWHFRecHitProxyBuilder.cc
Go to the documentation of this file.
3 
5 {
6 public:
7  FWHFRecHitProxyBuilder( void ) {invertBox(true); }
8  virtual ~FWHFRecHitProxyBuilder( void ) {}
9 
11 
12 private:
15 };
16 
17 
19 
20 // AMT: Reflect box. Previously used energyScaledBox3DCorners(). Scaling and e/et mode added now.
21 
22 /*
23 void
24 FWHFRecHitProxyBuilder::build( const FWEventItem* iItem, TEveElementList* product, const FWViewContext* )
25 {
26  const HFRecHitCollection* collection = 0;
27  iItem->get( collection );
28 
29  if( 0 == collection )
30  {
31  return;
32  }
33 
34  std::vector<HFRecHit>::const_iterator it = collection->begin();
35  std::vector<HFRecHit>::const_iterator itEnd = collection->end();
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<HFRecHit>::const_iterator it = collection->begin() ; it != collection->end(); ++it)
45  {
46  unsigned int rawid = ( *it ).detid().rawId();
47  if( ! context().getGeom()->contains( rawid ))
48  {
49  fwLog( fwlog::kInfo ) << "FWHFRecHitProxyBuilder cannot get geometry for DetId: "
50  << rawid << ". Ignored.\n";
51  }
52  const float* corners = context().getGeom()->getCorners( rawid );
53 
54  std::vector<float> scaledCorners(24);
55  if (corners)
56  fireworks::energyScaledBox3DCorners(corners, (*it).energy() / m_maxEnergy, scaledCorners, true);
57 
58  addBox(boxSet, &scaledCorners[0], iItem->modelInfo(index++).displayProperties());
59  }
60 }
61 */
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
const FWHFRecHitProxyBuilder & operator=(const FWHFRecHitProxyBuilder &)