CMS 3D CMS Logo

Public Member Functions | Private Member Functions

FWPCaloHitProxyBuilder Class Reference

Inheritance diagram for FWPCaloHitProxyBuilder:
FWDigitSetProxyBuilder FWProxyBuilderBase

List of all members.

Public Member Functions

 FWPCaloHitProxyBuilder (void)
 REGISTER_PROXYBUILDER_METHODS ()
virtual ~FWPCaloHitProxyBuilder (void)

Private Member Functions

virtual void build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *)
 FWPCaloHitProxyBuilder (const FWPCaloHitProxyBuilder &)
const FWPCaloHitProxyBuilderoperator= (const FWPCaloHitProxyBuilder &)

Detailed Description

Definition at line 17 of file FWPCaloHitProxyBuilder.cc.


Constructor & Destructor Documentation

FWPCaloHitProxyBuilder::FWPCaloHitProxyBuilder ( void  ) [inline]

Definition at line 20 of file FWPCaloHitProxyBuilder.cc.

{} 
virtual FWPCaloHitProxyBuilder::~FWPCaloHitProxyBuilder ( void  ) [inline, virtual]

Definition at line 21 of file FWPCaloHitProxyBuilder.cc.

{}
FWPCaloHitProxyBuilder::FWPCaloHitProxyBuilder ( const FWPCaloHitProxyBuilder ) [private]

Member Function Documentation

void FWPCaloHitProxyBuilder::build ( const FWEventItem iItem,
TEveElementList *  product,
const FWViewContext  
) [private, virtual]

Reimplemented from FWProxyBuilderBase.

Definition at line 32 of file FWPCaloHitProxyBuilder.cc.

References FWDigitSetProxyBuilder::addBox(), FWDigitSetProxyBuilder::addBoxSetToProduct(), runEdmFileComparison::collection, fireworks::energyTower3DCorners(), FWEventItem::get(), FWGeometry::getCorners(), FWEventItem::getGeom(), getHLTprescales::index, FWProxyBuilderBase::item(), and FWEventItem::modelInfo().

{
   const edm::PCaloHitContainer *collection = 0;
   iItem->get( collection );
   if (! collection)
      return;


   TEveBoxSet* boxSet = addBoxSetToProduct(product);
   int index = 0;
   for (std::vector<PCaloHit>::const_iterator it = collection->begin() ; it != collection->end(); ++it)
   {  
      const float* corners = item()->getGeom()->getCorners((*it).id());

      std::vector<float> scaledCorners(24);
      if (corners)
         fireworks::energyTower3DCorners(corners, (*it).energy() * 10, scaledCorners);

      addBox(boxSet, &scaledCorners[0], iItem->modelInfo(index++).displayProperties());
   }
}
const FWPCaloHitProxyBuilder& FWPCaloHitProxyBuilder::operator= ( const FWPCaloHitProxyBuilder ) [private]
FWPCaloHitProxyBuilder::REGISTER_PROXYBUILDER_METHODS ( )