CMS 3D CMS Logo

FWCastorRecHitProxyBuilder.cc
Go to the documentation of this file.
1 /*
2  * FWCastorRecHitProxyBuilder.cc
3  * cmsShow
4  *
5  * Created by Ianna Osborne on 7/8/10.
6  *
7  */
10 
12 public:
14  ~FWCastorRecHitProxyBuilder(void) override {}
15 
16  float scaleFactor(const FWViewContext* vc) override { return 10 * FWCaloRecHitDigitSetProxyBuilder::scaleFactor(vc); }
17 
19 
20 private:
23 };
24 
26 
27 // AMT:: scale box round center. Scaleing and e/et added now. Previously used fireworks::energyTower3DCorners();
28 
29 /*
30 void FWCastorRecHitProxyBuilder::build(const FWEventItem* iItem, TEveElementList* product, const FWViewContext*)
31 {
32  const CastorRecHitCollection* collection = 0;
33  iItem->get( collection );
34  if (! collection)
35  return;
36 
37 
38  TEveBoxSet* boxSet = addBoxSetToProduct(product);
39  int index = 0;
40  for (std::vector<CastorRecHit>::const_iterator it = collection->begin() ; it != collection->end(); ++it)
41  {
42  const float* corners = item()->getGeom()->getCorners((*it).detid());
43  if (corners == 0)
44  continue;
45 
46  std::vector<float> scaledCorners(24);
47  fireworks::energyTower3DCorners(corners, (*it).energy() * 10, scaledCorners);
48 
49  addBox(boxSet, &scaledCorners[0], iItem->modelInfo(index++).displayProperties());
50  }
51 }
52 */
float scaleFactor(const FWViewContext *vc) override
const FWCastorRecHitProxyBuilder & operator=(const FWCastorRecHitProxyBuilder &)=delete
virtual float scaleFactor(const FWViewContext *vc)
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)