CMS 3D CMS Logo

Public Member Functions | Private Member Functions

FWCastorRecHitProxyBuilder Class Reference

Inheritance diagram for FWCastorRecHitProxyBuilder:
FWDigitSetProxyBuilder FWProxyBuilderBase

List of all members.

Public Member Functions

 FWCastorRecHitProxyBuilder (void)
 REGISTER_PROXYBUILDER_METHODS ()
virtual ~FWCastorRecHitProxyBuilder (void)

Private Member Functions

virtual void build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *)
 FWCastorRecHitProxyBuilder (const FWCastorRecHitProxyBuilder &)
const FWCastorRecHitProxyBuilderoperator= (const FWCastorRecHitProxyBuilder &)

Detailed Description

Definition at line 16 of file FWCastorRecHitProxyBuilder.cc.


Constructor & Destructor Documentation

FWCastorRecHitProxyBuilder::FWCastorRecHitProxyBuilder ( void  ) [inline]

Definition at line 19 of file FWCastorRecHitProxyBuilder.cc.

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

Definition at line 20 of file FWCastorRecHitProxyBuilder.cc.

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

Member Function Documentation

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

Reimplemented from FWProxyBuilderBase.

Definition at line 31 of file FWCastorRecHitProxyBuilder.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 CastorRecHitCollection* collection = 0;
   iItem->get( collection );
   if (! collection)
      return;


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

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

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