Public Member Functions | |
FWPRCaloTowerProxyBuilder (void) | |
REGISTER_PROXYBUILDER_METHODS () | |
virtual | ~FWPRCaloTowerProxyBuilder (void) |
Private Member Functions | |
virtual void | build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) |
FWPRCaloTowerProxyBuilder (const FWPRCaloTowerProxyBuilder &) | |
const FWPRCaloTowerProxyBuilder & | operator= (const FWPRCaloTowerProxyBuilder &) |
Definition at line 7 of file FWPRCaloTowerProxyBuilder.cc.
FWPRCaloTowerProxyBuilder::FWPRCaloTowerProxyBuilder | ( | void | ) | [inline] |
Definition at line 10 of file FWPRCaloTowerProxyBuilder.cc.
{}
virtual FWPRCaloTowerProxyBuilder::~FWPRCaloTowerProxyBuilder | ( | void | ) | [inline, virtual] |
Definition at line 11 of file FWPRCaloTowerProxyBuilder.cc.
{}
FWPRCaloTowerProxyBuilder::FWPRCaloTowerProxyBuilder | ( | const FWPRCaloTowerProxyBuilder & | ) | [private] |
void FWPRCaloTowerProxyBuilder::build | ( | const FWEventItem * | iItem, |
TEveElementList * | product, | ||
const FWViewContext * | |||
) | [private, virtual] |
Reimplemented from FWProxyBuilderBase.
Definition at line 23 of file FWPRCaloTowerProxyBuilder.cc.
References FWDigitSetProxyBuilder::addBox(), FWDigitSetProxyBuilder::addBoxSetToProduct(), edm::SortedCollection< T, SORT >::begin(), runEdmFileComparison::collection, edm::SortedCollection< T, SORT >::end(), fireworks::energyTower3DCorners(), FWEventItem::get(), FWGeometry::getCorners(), FWEventItem::getGeom(), getHLTprescales::index, FWProxyBuilderBase::item(), and FWEventItem::modelInfo().
{ const CaloTowerCollection* collection = 0; iItem->get( collection ); if (! collection) return; TEveBoxSet* boxSet = addBoxSetToProduct(product); int index = 0; for (std::vector<CaloTower>::const_iterator it = collection->begin() ; it != collection->end(); ++it) { const float* corners = item()->getGeom()->getCorners((*it).id().rawId()); if (corners == 0) continue; std::vector<float> scaledCorners(24); fireworks::energyTower3DCorners(corners, (*it).et(), scaledCorners); addBox(boxSet, &scaledCorners[0], iItem->modelInfo(index++).displayProperties()); } }
const FWPRCaloTowerProxyBuilder& FWPRCaloTowerProxyBuilder::operator= | ( | const FWPRCaloTowerProxyBuilder & | ) | [private] |
FWPRCaloTowerProxyBuilder::REGISTER_PROXYBUILDER_METHODS | ( | ) |