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 */
FWCastorRecHitProxyBuilder::scaleFactor
float scaleFactor(const FWViewContext *vc) override
Definition: FWCastorRecHitProxyBuilder.cc:16
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
FWCastorRecHitProxyBuilder::~FWCastorRecHitProxyBuilder
~FWCastorRecHitProxyBuilder(void) override
Definition: FWCastorRecHitProxyBuilder.cc:14
FWCastorRecHitProxyBuilder::FWCastorRecHitProxyBuilder
FWCastorRecHitProxyBuilder(void)
Definition: FWCastorRecHitProxyBuilder.cc:13
FWCaloRecHitDigitSetProxyBuilder.h
FWCastorRecHitProxyBuilder
Definition: FWCastorRecHitProxyBuilder.cc:11
FWViewContext
Definition: FWViewContext.h:32
FWViewType::kISpyBit
Definition: FWViewType.h:54
FWCaloRecHitDigitSetProxyBuilder::scaleFactor
virtual float scaleFactor(const FWViewContext *vc)
Definition: FWCaloRecHitDigitSetProxyBuilder.cc:92
HcalRecHitCollections.h
FWCaloRecHitDigitSetProxyBuilder
Definition: FWCaloRecHitDigitSetProxyBuilder.h:9
FWCastorRecHitProxyBuilder::operator=
const FWCastorRecHitProxyBuilder & operator=(const FWCastorRecHitProxyBuilder &)=delete