CMS 3D CMS Logo

FWHFRecHitProxyBuilder.cc
Go to the documentation of this file.
3 
5 public:
7  ~FWHFRecHitProxyBuilder(void) override {}
8 
10 
13 };
14 
16 
17 // AMT: Reflect box. Previously used energyScaledBox3DCorners(). Scaling and e/et mode added now.
18 
19 /*
20 void
21 FWHFRecHitProxyBuilder::build( const FWEventItem* iItem, TEveElementList* product, const FWViewContext* )
22 {
23  const HFRecHitCollection* collection = 0;
24  iItem->get( collection );
25 
26  if( 0 == collection )
27  {
28  return;
29  }
30 
31  std::vector<HFRecHit>::const_iterator it = collection->begin();
32  std::vector<HFRecHit>::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<HFRecHit>::const_iterator it = collection->begin() ; it != collection->end(); ++it)
42  {
43  unsigned int rawid = ( *it ).detid().rawId();
44  if( ! context().getGeom()->contains( rawid ))
45  {
46  fwLog( fwlog::kInfo ) << "FWHFRecHitProxyBuilder cannot get geometry for DetId: "
47  << rawid << ". Ignored.\n";
48  }
49  const float* corners = context().getGeom()->getCorners( rawid );
50 
51  std::vector<float> scaledCorners(24);
52  if (corners)
53  fireworks::energyScaledBox3DCorners(corners, (*it).energy() / m_maxEnergy, scaledCorners, true);
54 
55  addBox(boxSet, &scaledCorners[0], iItem->modelInfo(index++).displayProperties());
56  }
57 }
58 */
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
const FWHFRecHitProxyBuilder & operator=(const FWHFRecHitProxyBuilder &)=delete
~FWHFRecHitProxyBuilder(void) override
static constexpr unsigned int kISpyBit
Definition: FWViewType.h:50