CMS 3D CMS Logo

Public Member Functions | Private Member Functions

FWSiPixelClusterDetProxyBuilder Class Reference

Inheritance diagram for FWSiPixelClusterDetProxyBuilder:
FWProxyBuilderBase

List of all members.

Public Member Functions

 FWSiPixelClusterDetProxyBuilder ()
 REGISTER_PROXYBUILDER_METHODS ()
virtual ~FWSiPixelClusterDetProxyBuilder ()

Private Member Functions

virtual void build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *)
 FWSiPixelClusterDetProxyBuilder (const FWSiPixelClusterDetProxyBuilder &)
const
FWSiPixelClusterDetProxyBuilder
operator= (const FWSiPixelClusterDetProxyBuilder &)

Detailed Description

Definition at line 21 of file FWSiPixelClusterDetProxyBuilder.cc.


Constructor & Destructor Documentation

FWSiPixelClusterDetProxyBuilder::FWSiPixelClusterDetProxyBuilder ( ) [inline]

Definition at line 24 of file FWSiPixelClusterDetProxyBuilder.cc.

{}
virtual FWSiPixelClusterDetProxyBuilder::~FWSiPixelClusterDetProxyBuilder ( ) [inline, virtual]

Definition at line 25 of file FWSiPixelClusterDetProxyBuilder.cc.

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

Member Function Documentation

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

Reimplemented from FWProxyBuilderBase.

Definition at line 35 of file FWSiPixelClusterDetProxyBuilder.cc.

References edmNew::DetSetVector< T >::begin(), edmNew::DetSet< T >::begin(), FWGeometry::contains(), cond::rpcobgas::detid, edmNew::DetSetVector< T >::end(), edmNew::DetSet< T >::end(), relativeConstraints::geom, FWEventItem::get(), FWGeometry::getEveShape(), FWEventItem::getGeom(), and FWProxyBuilderBase::setupAddElement().

{
  const SiPixelClusterCollectionNew* pixels = 0;
  
  iItem->get(pixels);
  
  if( ! pixels ) 
    return;
  
  const FWGeometry* geom = iItem->getGeom();
  
  for( SiPixelClusterCollectionNew::const_iterator set = pixels->begin(), setEnd = pixels->end();
       set != setEnd; ++set) 
  {
    unsigned int id = set->detId();
    DetId detid(id);
      
    if( geom->contains( detid )) 
    {
      const edmNew::DetSet<SiPixelCluster> & clusters = *set;
      
      for( edmNew::DetSet<SiPixelCluster>::const_iterator itc = clusters.begin(), edc = clusters.end(); 
           itc != edc; ++itc ) 
      {
        TEveGeoShape* shape = geom->getEveShape(detid);
       
        if ( shape )
        {
          shape->SetMainTransparency(50);
          setupAddElement(shape, product);
        }
      }
    }
  }
}
const FWSiPixelClusterDetProxyBuilder& FWSiPixelClusterDetProxyBuilder::operator= ( const FWSiPixelClusterDetProxyBuilder ) [private]
FWSiPixelClusterDetProxyBuilder::REGISTER_PROXYBUILDER_METHODS ( )