CMS 3D CMS Logo

FWZDCRecHitProxyBuilder.cc
Go to the documentation of this file.
1 /*
2  * FWZDCRecHitProxyBuilder.cc
3  * cmsShow
4  *
5  * Created by Ianna Osborne on 7/8/10.
6  *
7  */
11 
13 public:
15  ~FWZDCRecHitProxyBuilder(void) override {}
16 
18 
19 private:
22 };
23 
25 
26 // AMT scale box round center. Scaling and e/et mode added now. Previusly used energyTower3DCorners().
27 
28 /*
29 void FWZDCRecHitProxyBuilder::build(const FWEventItem* iItem, TEveElementList* product, const FWViewContext*)
30 {
31  const edm::SortedCollection<ZDCRecHit> *collection = 0;
32  iItem->get( collection );
33  if (! collection)
34  return;
35 
36 
37  TEveBoxSet* boxSet = addBoxSetToProduct(product);
38  boxSet->SetAntiFlick(kTRUE);
39  int index = 0;
40  for (std::vector<ZDCRecHit>::const_iterator it = collection->begin() ; it != collection->end(); ++it)
41  {
42  const float* corners = item()->getGeom()->getCorners((*it).detid());
43 
44  std::vector<float> scaledCorners(24);
45  if (corners != 0) {
46  fireworks::energyTower3DCorners(corners, (*it).energy(), scaledCorners);
47  // Invert the normals:
48  // for (int i = 0; i < 12; ++i)
49  // std::swap(scaledCorners[i], scaledCorners[i+12]);
50  }
51 
52  addBox(boxSet, &scaledCorners[0], iItem->modelInfo(index++).displayProperties());
53  }
54  }*/
FWZDCRecHitProxyBuilder::FWZDCRecHitProxyBuilder
FWZDCRecHitProxyBuilder(void)
Definition: FWZDCRecHitProxyBuilder.cc:14
REGISTER_FWPROXYBUILDER
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
Definition: FWProxyBuilderFactory.h:33
ZDCRecHit.h
REGISTER_PROXYBUILDER_METHODS
#define REGISTER_PROXYBUILDER_METHODS()
Definition: register_dataproxybuilder_macro.h:27
edm::SortedCollection
Definition: SortedCollection.h:49
FWZDCRecHitProxyBuilder::~FWZDCRecHitProxyBuilder
~FWZDCRecHitProxyBuilder(void) override
Definition: FWZDCRecHitProxyBuilder.cc:15
FWZDCRecHitProxyBuilder::operator=
const FWZDCRecHitProxyBuilder & operator=(const FWZDCRecHitProxyBuilder &)=delete
FWCaloRecHitDigitSetProxyBuilder.h
FWViewType::kISpyBit
Definition: FWViewType.h:54
SortedCollection.h
FWZDCRecHitProxyBuilder
Definition: FWZDCRecHitProxyBuilder.cc:12
FWCaloRecHitDigitSetProxyBuilder
Definition: FWCaloRecHitDigitSetProxyBuilder.h:9