CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions
FWSiPixelClusterDetProxyBuilder Class Reference
Inheritance diagram for FWSiPixelClusterDetProxyBuilder:
FWProxyBuilderBase

Public Member Functions

 FWSiPixelClusterDetProxyBuilder ()
 
const std::string & purpose () const
 
const std::string & typeName () const
 
const std::string & view () const
 
virtual ~FWSiPixelClusterDetProxyBuilder ()
 
- Public Member Functions inherited from FWProxyBuilderBase
void build ()
 
virtual bool canHandle (const FWEventItem &)
 
const fireworks::Contextcontext () const
 
TEveElementList * createProduct (FWViewType::EType, const FWViewContext *)
 
 FWProxyBuilderBase ()
 
bool getHaveWindow () const
 
virtual bool havePerViewProduct (FWViewType::EType) const
 
virtual bool haveSingleProduct () const
 
const FWEventItemitem () const
 
virtual void itemBeingDestroyed (const FWEventItem *)
 
void itemChanged (const FWEventItem *)
 
int layer () const
 
void modelChanges (const FWModelIds &)
 
void removePerViewProduct (FWViewType::EType, const FWViewContext *vc)
 
void scaleChanged (const FWViewContext *)
 
void setHaveWindow (bool iFlag)
 
virtual void setInteractionList (FWInteractionList *, const std::string &)
 
virtual void setItem (const FWEventItem *iItem)
 
void setupAddElement (TEveElement *el, TEveElement *parent, bool set_color=true) const
 
void setupElement (TEveElement *el, bool color=true) const
 
virtual bool willHandleInteraction () const
 
virtual ~FWProxyBuilderBase ()
 

Static Public Member Functions

static const std::string & classPurpose ()
 
static const std::string & classRegisterTypeName ()
 
static const std::string & classTypeName ()
 
static const std::string & classView ()
 
- Static Public Member Functions inherited from FWProxyBuilderBase
static bool representsSubPart ()
 
static std::string typeOfBuilder ()
 Used by the plugin system to determine how the proxy uses the data from FWEventItem. More...
 

Private Member Functions

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

Additional Inherited Members

- Protected Types inherited from FWProxyBuilderBase
typedef std::vector< Product * >
::iterator 
Product_it
 
- Protected Member Functions inherited from FWProxyBuilderBase
virtual void buildViewType (const FWEventItem *iItem, TEveElementList *, FWViewType::EType, const FWViewContext *)
 
virtual void clean ()
 
virtual void cleanLocal ()
 
TEveCompound * createCompound (bool set_color=true, bool propagate_color_to_all_children=false) const
 
 FWProxyBuilderBase (const FWProxyBuilderBase &)
 
void increaseComponentTransparency (unsigned int index, TEveElement *holder, const std::string &name, Char_t transpOffset)
 
virtual void localModelChanges (const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc)
 
virtual void modelChanges (const FWModelIds &, Product *)
 
const FWProxyBuilderBaseoperator= (const FWProxyBuilderBase &)
 
virtual void scaleProduct (TEveElementList *parent, FWViewType::EType, const FWViewContext *vc)
 
virtual bool visibilityModelChanges (const FWModelId &, TEveElement *, FWViewType::EType, const FWViewContext *)
 
- Protected Attributes inherited from FWProxyBuilderBase
std::vector< Product * > m_products
 

Detailed Description

Definition at line 20 of file FWSiPixelClusterDetProxyBuilder.cc.

Constructor & Destructor Documentation

FWSiPixelClusterDetProxyBuilder::FWSiPixelClusterDetProxyBuilder ( )
inline

Definition at line 23 of file FWSiPixelClusterDetProxyBuilder.cc.

23 {}
virtual FWSiPixelClusterDetProxyBuilder::~FWSiPixelClusterDetProxyBuilder ( )
inlinevirtual

Definition at line 24 of file FWSiPixelClusterDetProxyBuilder.cc.

24 {}
FWSiPixelClusterDetProxyBuilder::FWSiPixelClusterDetProxyBuilder ( const FWSiPixelClusterDetProxyBuilder )
private

Member Function Documentation

void FWSiPixelClusterDetProxyBuilder::build ( const FWEventItem iItem,
TEveElementList *  product,
const FWViewContext  
)
overrideprivatevirtual

Reimplemented from FWProxyBuilderBase.

Definition at line 35 of file FWSiPixelClusterDetProxyBuilder.cc.

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

36 {
37  const SiPixelClusterCollectionNew* pixels = 0;
38 
39  iItem->get(pixels);
40 
41  if( ! pixels )
42  return;
43 
44  const FWGeometry* geom = iItem->getGeom();
45 
46  for( SiPixelClusterCollectionNew::const_iterator set = pixels->begin(), setEnd = pixels->end();
47  set != setEnd; ++set)
48  {
49  unsigned int id = set->detId();
50  DetId detid(id);
51 
52  if( geom->contains( detid ))
53  {
55 
56  for( edmNew::DetSet<SiPixelCluster>::const_iterator itc = clusters.begin(), edc = clusters.end();
57  itc != edc; ++itc )
58  {
59  TEveGeoShape* shape = geom->getEveShape(detid);
60 
61  if ( shape )
62  {
63  shape->SetMainTransparency(50);
64  setupAddElement(shape, product);
65  }
66  }
67  }
68  }
69 }
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
const_iterator end(bool update=false) const
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
void get(const T *&oData) const
Definition: FWEventItem.h:84
data_type const * const_iterator
Definition: DetSetNew.h:30
TEveGeoShape * getEveShape(unsigned int id) const
Definition: FWGeometry.cc:253
bool contains(unsigned int id) const
Definition: FWGeometry.h:109
Definition: DetId.h:18
iterator end()
Definition: DetSetNew.h:70
const FWGeometry * getGeom() const
Definition: FWEventItem.cc:681
const_iterator begin(bool update=false) const
iterator begin()
Definition: DetSetNew.h:67
const std::string & FWSiPixelClusterDetProxyBuilder::classPurpose ( )
static

Definition at line 71 of file FWSiPixelClusterDetProxyBuilder.cc.

const std::string & FWSiPixelClusterDetProxyBuilder::classRegisterTypeName ( )
static

Definition at line 71 of file FWSiPixelClusterDetProxyBuilder.cc.

const std::string & FWSiPixelClusterDetProxyBuilder::classTypeName ( )
static

Definition at line 71 of file FWSiPixelClusterDetProxyBuilder.cc.

const std::string & FWSiPixelClusterDetProxyBuilder::classView ( )
static

Definition at line 71 of file FWSiPixelClusterDetProxyBuilder.cc.

const FWSiPixelClusterDetProxyBuilder& FWSiPixelClusterDetProxyBuilder::operator= ( const FWSiPixelClusterDetProxyBuilder )
private
const std::string& FWSiPixelClusterDetProxyBuilder::purpose ( ) const
inline

Definition at line 26 of file FWSiPixelClusterDetProxyBuilder.cc.

const std::string& FWSiPixelClusterDetProxyBuilder::typeName ( ) const
inline

Definition at line 26 of file FWSiPixelClusterDetProxyBuilder.cc.

const std::string& FWSiPixelClusterDetProxyBuilder::view ( ) const
inline

Definition at line 26 of file FWSiPixelClusterDetProxyBuilder.cc.