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 
22 };
23 
25 
26 // AMT:: scale box round center. Scaleing and e/et added now. Previously used fireworks::energyTower3DCorners();
27 
28 /*
29 void FWCastorRecHitProxyBuilder::build(const FWEventItem* iItem, TEveElementList* product, const FWViewContext*)
30 {
31  const CastorRecHitCollection* collection = 0;
32  iItem->get( collection );
33  if (! collection)
34  return;
35 
36 
37  TEveBoxSet* boxSet = addBoxSetToProduct(product);
38  int index = 0;
39  for (std::vector<CastorRecHit>::const_iterator it = collection->begin() ; it != collection->end(); ++it)
40  {
41  const float* corners = item()->getGeom()->getCorners((*it).detid());
42  if (corners == 0)
43  continue;
44 
45  std::vector<float> scaledCorners(24);
46  fireworks::energyTower3DCorners(corners, (*it).energy() * 10, scaledCorners);
47 
48  addBox(boxSet, &scaledCorners[0], iItem->modelInfo(index++).displayProperties());
49  }
50 }
51 */
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
float scaleFactor(const FWViewContext *vc) override
const FWCastorRecHitProxyBuilder & operator=(const FWCastorRecHitProxyBuilder &)=delete
virtual float scaleFactor(const FWViewContext *vc)