CMS 3D CMS Logo

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