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